Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ROOT::Experimental::RAxisDrawable Class Reference

Axis drawing.

Author
Sergey Linev S.Lin.nosp@m.ev@g.nosp@m.si.de
Date
2020-11-03
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 32 of file RAxisDrawable.hxx.

Public Types

using Version_t = uint64_t

Public Member Functions

 RAxisDrawable ()
 RAxisDrawable (const RPadPos &pos, bool vertical, const RPadLength &len)
void ClearStyle ()
const std::string & GetCssClass () const
const char * GetCssType () const
const std::string & GetId () const
const std::vector< std::string > & GetLabels () const
const RPadLengthGetLength () const
const RPadPosGetPos () const
bool IsVertical () const
void SetCssClass (const std::string &cl)
void SetId (const std::string &id)
RAxisDrawableSetLabels (const std::vector< std::string > &lbls)
RAxisDrawableSetLength (const RPadLength &len)
RAxisDrawableSetPos (const RPadPos &pos)
RAxisDrawableSetVertical (bool vertical=true)
virtual void UseStyle (const std::shared_ptr< RStyle > &style)

Public Attributes

RAttrAxis axis {this, "axis"}
 ! axis attributes

Protected Member Functions

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.
virtual void Execute (const std::string &)
RAttrMapGetAttrMap ()
const RAttrMapGetAttrMap () const
Version_t GetVersion () const
virtual bool IsFrameRequired () 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.
virtual void OnDisplayItemDestroyed (RDisplayItem *) const
virtual void PopulateMenu (RMenuItems &)
void SetCssType (const char *csstype)
virtual void SetDrawableVersion (Version_t vers)

Private Attributes

RAttrMap fAttr
 attributes values
std::string fCssClass
 user-defined CSS class, used for RStyle
const char * fCssType {nullptr}
 ! drawable type, not stored in the root file, must be initialized in constructor
std::string fId
 user-defined CSS id, used for RStyle
std::vector< std::string > fLabels
 axis labels
RPadLength fLength
 axis length
RPadPos fPos
 axis start point
std::weak_ptr< RStylefStyle
 ! style applied for RDrawable, not stored when canvas is saved
Version_t fVersion {1}
 ! drawable version, changed from the canvas
bool fVertical {false}
 is vertical axis

#include <ROOT/RAxisDrawable.hxx>

Inheritance diagram for ROOT::Experimental::RAxisDrawable:
ROOT::Experimental::RDrawable

Member Typedef Documentation

◆ Version_t

using ROOT::Experimental::RDrawable::Version_t = uint64_t
inherited

Definition at line 123 of file RDrawable.hxx.

Constructor & Destructor Documentation

◆ RAxisDrawable() [1/2]

ROOT::Experimental::RAxisDrawable::RAxisDrawable ( )
inline

Definition at line 43 of file RAxisDrawable.hxx.

◆ RAxisDrawable() [2/2]

ROOT::Experimental::RAxisDrawable::RAxisDrawable ( const RPadPos & pos,
bool vertical,
const RPadLength & len )
inline

Definition at line 45 of file RAxisDrawable.hxx.

Member Function Documentation

◆ ClearStyle()

void ROOT::Experimental::RDrawable::ClearStyle ( )
inlineinherited

Definition at line 213 of file RDrawable.hxx.

◆ CollectShared()

virtual void ROOT::Experimental::RDrawable::CollectShared ( Internal::RIOSharedVector_t & )
inlineprotectedvirtualinherited

Reimplemented in ROOT::Experimental::RPadBase, and ROOT::Experimental::TObjectDrawable.

Definition at line 181 of file RDrawable.hxx.

◆ Display()

std::unique_ptr< RDisplayItem > RDrawable::Display ( const RDisplayContext & ctxt)
protectedvirtualinherited

Creates display item for drawable By default item contains drawable data itself.

Reimplemented in ROOT::Experimental::RPad, and ROOT::Experimental::TObjectDrawable.

Definition at line 68 of file RDrawable.cxx.

◆ Execute()

void RDrawable::Execute ( const std::string & exec)
protectedvirtualinherited

Reimplemented in ROOT::Experimental::TObjectDrawable.

Definition at line 40 of file RDrawable.cxx.

◆ GetAttrMap() [1/2]

RAttrMap & ROOT::Experimental::RDrawable::GetAttrMap ( )
inlineprotectedinherited

Definition at line 185 of file RDrawable.hxx.

◆ GetAttrMap() [2/2]

const RAttrMap & ROOT::Experimental::RDrawable::GetAttrMap ( ) const
inlineprotectedinherited

Definition at line 186 of file RDrawable.hxx.

◆ GetCssClass()

const std::string & ROOT::Experimental::RDrawable::GetCssClass ( ) const
inlineinherited

Definition at line 218 of file RDrawable.hxx.

◆ GetCssType()

const char * ROOT::Experimental::RDrawable::GetCssType ( ) const
inlineinherited

Definition at line 215 of file RDrawable.hxx.

◆ GetId()

const std::string & ROOT::Experimental::RDrawable::GetId ( ) const
inlineinherited

Definition at line 221 of file RDrawable.hxx.

◆ GetLabels()

const std::vector< std::string > & ROOT::Experimental::RAxisDrawable::GetLabels ( ) const
inline

Definition at line 60 of file RAxisDrawable.hxx.

◆ GetLength()

const RPadLength & ROOT::Experimental::RAxisDrawable::GetLength ( ) const
inline

Definition at line 59 of file RAxisDrawable.hxx.

◆ GetPos()

const RPadPos & ROOT::Experimental::RAxisDrawable::GetPos ( ) const
inline

Definition at line 58 of file RAxisDrawable.hxx.

◆ GetVersion()

Version_t ROOT::Experimental::RDrawable::GetVersion ( ) const
inlineprotectedinherited

Definition at line 197 of file RDrawable.hxx.

◆ IsFrameRequired()

virtual bool ROOT::Experimental::RDrawable::IsFrameRequired ( ) const
inlineprotectedvirtualinherited

Reimplemented in ROOT::Experimental::RPaletteDrawable.

Definition at line 183 of file RDrawable.hxx.

◆ IsVertical()

bool ROOT::Experimental::RAxisDrawable::IsVertical ( ) const
inline

Definition at line 57 of file RAxisDrawable.hxx.

◆ MatchSelector()

bool RDrawable::MatchSelector ( const std::string & selector) const
protectedinherited

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.

Definition at line 59 of file RDrawable.cxx.

◆ OnDisplayItemDestroyed()

virtual void ROOT::Experimental::RDrawable::OnDisplayItemDestroyed ( RDisplayItem * ) const
inlineprotectedvirtualinherited

Definition at line 194 of file RDrawable.hxx.

◆ PopulateMenu()

void RDrawable::PopulateMenu ( RMenuItems & items)
protectedvirtualinherited

Reimplemented in ROOT::Experimental::RFrame, and ROOT::Experimental::TObjectDrawable.

Definition at line 30 of file RDrawable.cxx.

◆ SetCssClass()

void ROOT::Experimental::RDrawable::SetCssClass ( const std::string & cl)
inlineinherited

Definition at line 217 of file RDrawable.hxx.

◆ SetCssType()

void ROOT::Experimental::RDrawable::SetCssType ( const char * csstype)
inlineprotectedinherited

Definition at line 192 of file RDrawable.hxx.

◆ SetDrawableVersion()

virtual void ROOT::Experimental::RDrawable::SetDrawableVersion ( Version_t vers)
inlineprotectedvirtualinherited

Reimplemented in ROOT::Experimental::RPadBase.

Definition at line 196 of file RDrawable.hxx.

◆ SetId()

void ROOT::Experimental::RDrawable::SetId ( const std::string & id)
inlineinherited

Definition at line 220 of file RDrawable.hxx.

◆ SetLabels()

RAxisDrawable & ROOT::Experimental::RAxisDrawable::SetLabels ( const std::vector< std::string > & lbls)
inline

Definition at line 55 of file RAxisDrawable.hxx.

◆ SetLength()

RAxisDrawable & ROOT::Experimental::RAxisDrawable::SetLength ( const RPadLength & len)
inline

Definition at line 54 of file RAxisDrawable.hxx.

◆ SetPos()

RAxisDrawable & ROOT::Experimental::RAxisDrawable::SetPos ( const RPadPos & pos)
inline

Definition at line 52 of file RAxisDrawable.hxx.

◆ SetVertical()

RAxisDrawable & ROOT::Experimental::RAxisDrawable::SetVertical ( bool vertical = true)
inline

Definition at line 53 of file RAxisDrawable.hxx.

◆ UseStyle()

virtual void ROOT::Experimental::RDrawable::UseStyle ( const std::shared_ptr< RStyle > & style)
inlinevirtualinherited

Reimplemented in ROOT::Experimental::RPadBase.

Definition at line 212 of file RDrawable.hxx.

Member Data Documentation

◆ axis

RAttrAxis ROOT::Experimental::RAxisDrawable::axis {this, "axis"}

! axis attributes

Definition at line 41 of file RAxisDrawable.hxx.

◆ fAttr

RAttrMap ROOT::Experimental::RDrawable::fAttr
privateinherited

attributes values

Definition at line 172 of file RDrawable.hxx.

◆ fCssClass

std::string ROOT::Experimental::RDrawable::fCssClass
privateinherited

user-defined CSS class, used for RStyle

Definition at line 175 of file RDrawable.hxx.

◆ fCssType

const char* ROOT::Experimental::RDrawable::fCssType {nullptr}
privateinherited

! drawable type, not stored in the root file, must be initialized in constructor

Definition at line 174 of file RDrawable.hxx.

◆ fId

std::string ROOT::Experimental::RDrawable::fId
privateinherited

user-defined CSS id, used for RStyle

Definition at line 176 of file RDrawable.hxx.

◆ fLabels

std::vector<std::string> ROOT::Experimental::RAxisDrawable::fLabels
private

axis labels

Definition at line 37 of file RAxisDrawable.hxx.

◆ fLength

RPadLength ROOT::Experimental::RAxisDrawable::fLength
private

axis length

Definition at line 36 of file RAxisDrawable.hxx.

◆ fPos

RPadPos ROOT::Experimental::RAxisDrawable::fPos
private

axis start point

Definition at line 34 of file RAxisDrawable.hxx.

◆ fStyle

std::weak_ptr<RStyle> ROOT::Experimental::RDrawable::fStyle
privateinherited

! style applied for RDrawable, not stored when canvas is saved

Definition at line 173 of file RDrawable.hxx.

◆ fVersion

Version_t ROOT::Experimental::RDrawable::fVersion {1}
privateinherited

! drawable version, changed from the canvas

Definition at line 177 of file RDrawable.hxx.

◆ fVertical

bool ROOT::Experimental::RAxisDrawable::fVertical {false}
private

is vertical axis

Definition at line 35 of file RAxisDrawable.hxx.


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