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 Member Functions

 RAxisDrawable ()
 
 RAxisDrawable (const RPadPos &pos, bool vertical, const RPadLength &len)
 
const std::vector< std::string > & GetLabels () const
 
const RPadLengthGetLength () const
 
const RPadPosGetPos () const
 
bool IsVertical () const
 
RAxisDrawableSetLabels (const std::vector< std::string > &lbls)
 
RAxisDrawableSetLength (const RPadLength &len)
 
RAxisDrawableSetPos (const RPadPos &pos)
 
RAxisDrawableSetVertical (bool vertical=true)
 
- Public Member Functions inherited from ROOT::Experimental::RDrawable
 RDrawable (const char *csstype)
 
virtual ~RDrawable ()
 
void ClearStyle ()
 
const std::string & GetCssClass () const
 
const char * 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)
 

Public Attributes

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

Private Attributes

std::vector< std::string > fLabels
 axis labels
 
RPadLength fLength
 axis length
 
RPadPos fPos
 axis start point
 
bool fVertical {false}
 is vertical axis
 

Additional Inherited Members

- Public Types inherited from ROOT::Experimental::RDrawable
using Version_t = uint64_t
 
- 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.
 
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
 
RDrawableoperator= (const RDrawable &)=delete
 
virtual void PopulateMenu (RMenuItems &)
 
void SetCssType (const char *csstype)
 
virtual void SetDrawableVersion (Version_t vers)
 

#include <ROOT/RAxisDrawable.hxx>

Inheritance diagram for ROOT::Experimental::RAxisDrawable:
[legend]

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

◆ 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.

◆ IsVertical()

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

Definition at line 57 of file RAxisDrawable.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.

Member Data Documentation

◆ axis

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

! axis attributes

Definition at line 41 of file RAxisDrawable.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.

◆ fVertical

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

is vertical axis

Definition at line 35 of file RAxisDrawable.hxx.

Libraries for ROOT::Experimental::RAxisDrawable:

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