Logo ROOT  
Reference Guide
ROOT::Experimental::RPaletteDrawable Class Referencefinal

A color palette draw near the frame.

Sergey Linev s.lin.nosp@m.ev@g.nosp@m.si.de
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 33 of file RPaletteDrawable.hxx.

Public Member Functions

 RPaletteDrawable (const RPalette &palette)
 RPaletteDrawable (const RPalette &palette, bool visible)
RAttrAxisAttrAxis ()
const RAttrAxisGetAttrAxis () const
RPadLength GetMargin () const
const RPaletteGetPalette () const
RPadLength GetSize () const
bool GetVisible () const
RPaletteDrawableSetAttrAxis (const RAttrAxis &attr)
RPaletteDrawableSetMargin (const RPadLength &pos)
RPaletteDrawableSetSize (const RPadLength &sz)
RPaletteDrawableSetVisible (bool on=true)
- Public Member Functions inherited from ROOT::Experimental::RDrawable
 RDrawable (const std::string &type)
virtual ~RDrawable ()
void ClearStyle ()
const std::string & GetCssClass () const
const std::string & GetCssType () const
const std::string & GetId () const
void SetCssClass (const std::string &cl)
void SetId (const std::string &id)
virtual void UseStyle (const std::shared_ptr< RStyle > &style)

Protected Member Functions

 RPaletteDrawable ()
bool IsFrameRequired () const final
- Protected Member Functions inherited from ROOT::Experimental::RDrawable
 RDrawable (const RDrawable &)=delete
virtual void CollectShared (Internal::RIOSharedVector_t &)
virtual std::unique_ptr< RDisplayItemDisplay (const RDisplayContext &)
 Creates display item for drawable By default item contains drawable data itself. More...
virtual void Execute (const std::string &)
RAttrMapGetAttrMap ()
const RAttrMapGetAttrMap () const
Version_t GetVersion () const
bool MatchSelector (const std::string &selector) const
 Preliminary method which checks if drawable matches with given selector Following selector are allowed: "type" or "#id" or ".class_name" Here type is drawable kind like 'rect' or 'pad' id is drawable identifier, specified with RDrawable::SetId() method class_name is drawable class name, specified with RDrawable::SetCssClass() method. More...
virtual void OnDisplayItemDestroyed (RDisplayItem *) const
RDrawableoperator= (const RDrawable &)=delete
virtual void PopulateMenu (RMenuItems &)
virtual void SetDrawableVersion (Version_t vers)

Private Attributes

RAttrAxis fAttrAxis {this, "axis_"}
 ! axis attributes More...
RAttrValue< RPadLengthfMargin {this, "margin", 0.02_normal}
 ! margin More...
RPalette fPalette
 color palette to draw More...
RAttrValue< RPadLengthfSize {this, "size", 0.05_normal}
 ! margin More...
RAttrValue< boolfVisible {this, "visible", true}
 ! visibility flag More...

Additional Inherited Members

- Public Types inherited from ROOT::Experimental::RDrawable
using Version_t = uint64_t

#include <ROOT/RPaletteDrawable.hxx>

Inheritance diagram for ROOT::Experimental::RPaletteDrawable:

Constructor & Destructor Documentation

◆ RPaletteDrawable() [1/3]

ROOT::Experimental::RPaletteDrawable::RPaletteDrawable ( )

Definition at line 45 of file RPaletteDrawable.hxx.

◆ RPaletteDrawable() [2/3]

ROOT::Experimental::RPaletteDrawable::RPaletteDrawable ( const RPalette palette)

Definition at line 49 of file RPaletteDrawable.hxx.

◆ RPaletteDrawable() [3/3]

ROOT::Experimental::RPaletteDrawable::RPaletteDrawable ( const RPalette palette,
bool  visible 

Definition at line 50 of file RPaletteDrawable.hxx.

Member Function Documentation

◆ AttrAxis()

RAttrAxis& ROOT::Experimental::RPaletteDrawable::AttrAxis ( )

Definition at line 64 of file RPaletteDrawable.hxx.

◆ GetAttrAxis()

const RAttrAxis& ROOT::Experimental::RPaletteDrawable::GetAttrAxis ( ) const

Definition at line 62 of file RPaletteDrawable.hxx.

◆ GetMargin()

RPadLength ROOT::Experimental::RPaletteDrawable::GetMargin ( ) const

Definition at line 57 of file RPaletteDrawable.hxx.

◆ GetPalette()

const RPalette& ROOT::Experimental::RPaletteDrawable::GetPalette ( ) const

Definition at line 51 of file RPaletteDrawable.hxx.

◆ GetSize()

RPadLength ROOT::Experimental::RPaletteDrawable::GetSize ( ) const

Definition at line 60 of file RPaletteDrawable.hxx.

◆ GetVisible()

bool ROOT::Experimental::RPaletteDrawable::GetVisible ( ) const

Definition at line 54 of file RPaletteDrawable.hxx.

◆ IsFrameRequired()

bool ROOT::Experimental::RPaletteDrawable::IsFrameRequired ( ) const

Reimplemented from ROOT::Experimental::RDrawable.

Definition at line 43 of file RPaletteDrawable.hxx.

◆ SetAttrAxis()

RPaletteDrawable& ROOT::Experimental::RPaletteDrawable::SetAttrAxis ( const RAttrAxis attr)

Definition at line 63 of file RPaletteDrawable.hxx.

◆ SetMargin()

RPaletteDrawable& ROOT::Experimental::RPaletteDrawable::SetMargin ( const RPadLength pos)

Definition at line 56 of file RPaletteDrawable.hxx.

◆ SetSize()

RPaletteDrawable& ROOT::Experimental::RPaletteDrawable::SetSize ( const RPadLength sz)

Definition at line 59 of file RPaletteDrawable.hxx.

◆ SetVisible()

RPaletteDrawable& ROOT::Experimental::RPaletteDrawable::SetVisible ( bool  on = true)

Definition at line 53 of file RPaletteDrawable.hxx.

Member Data Documentation

◆ fAttrAxis

RAttrAxis ROOT::Experimental::RPaletteDrawable::fAttrAxis {this, "axis_"}

! axis attributes

Definition at line 36 of file RPaletteDrawable.hxx.

◆ fMargin

RAttrValue<RPadLength> ROOT::Experimental::RPaletteDrawable::fMargin {this, "margin", 0.02_normal}

! margin

Definition at line 38 of file RPaletteDrawable.hxx.

◆ fPalette

RPalette ROOT::Experimental::RPaletteDrawable::fPalette

color palette to draw

Definition at line 35 of file RPaletteDrawable.hxx.

◆ fSize

RAttrValue<RPadLength> ROOT::Experimental::RPaletteDrawable::fSize {this, "size", 0.05_normal}

! margin

Definition at line 39 of file RPaletteDrawable.hxx.

◆ fVisible

RAttrValue<bool> ROOT::Experimental::RPaletteDrawable::fVisible {this, "visible", true}

! visibility flag

Definition at line 37 of file RPaletteDrawable.hxx.

The documentation for this class was generated from the following file: