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

Base class for paves with text, statistic, legends, placed relative to RFrame position and adjustable height.

Author
Sergey Linev s.lin.nosp@m.ev@g.nosp@m.si.de
Date
2020-06-18
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 RPave.hxx.

Public Types

enum  ECorner { kTopLeft = 1 , kTopRight = 2 , kBottomLeft = 3 , kBottomRight = 4 }
 
- Public Types inherited from ROOT::Experimental::RDrawable
using Version_t = uint64_t
 

Public Member Functions

 RPave ()
 
- 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

RAttrBorder border {this, "border"}
 ! border attributes
 
RAttrValue< ECornercorner {this, "corner", kTopRight}
 ! frame/pad corner to which pave is bound
 
RAttrFill fill {this, "fill"}
 ! fill attributes
 
RAttrValue< RPadLengthheight {this, "height", 0.2}
 ! pave height
 
RAttrValue< RPadLengthoffsetX {this, "offsetX", 0.02}
 ! offset X relative to selected frame or pad corner
 
RAttrValue< RPadLengthoffsetY {this, "offsetY", 0.02}
 ! offset Y relative to selected frame or pad corner
 
RAttrValue< boolonFrame {this, "onFrame", true}
 ! is pave assigned to frame (true) or to pad corner (false)
 
RAttrText text {this, "text"}
 ! text attributes
 
RAttrValue< RPadLengthwidth {this, "width", 0.4}
 ! pave width
 

Protected Member Functions

 RPave (const char *csstype)
 
- 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/RPave.hxx>

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

Member Enumeration Documentation

◆ ECorner

Enumerator
kTopLeft 
kTopRight 
kBottomLeft 
kBottomRight 

Definition at line 40 of file RPave.hxx.

Constructor & Destructor Documentation

◆ RPave() [1/2]

ROOT::Experimental::RPave::RPave ( const char *  csstype)
inlineprotected

Definition at line 36 of file RPave.hxx.

◆ RPave() [2/2]

ROOT::Experimental::RPave::RPave ( )
inline

Definition at line 57 of file RPave.hxx.

Member Data Documentation

◆ border

RAttrBorder ROOT::Experimental::RPave::border {this, "border"}

! border attributes

Definition at line 47 of file RPave.hxx.

◆ corner

RAttrValue<ECorner> ROOT::Experimental::RPave::corner {this, "corner", kTopRight}

! frame/pad corner to which pave is bound

Definition at line 53 of file RPave.hxx.

◆ fill

RAttrFill ROOT::Experimental::RPave::fill {this, "fill"}

! fill attributes

Definition at line 48 of file RPave.hxx.

◆ height

RAttrValue<RPadLength> ROOT::Experimental::RPave::height {this, "height", 0.2}

! pave height

Definition at line 51 of file RPave.hxx.

◆ offsetX

RAttrValue<RPadLength> ROOT::Experimental::RPave::offsetX {this, "offsetX", 0.02}

! offset X relative to selected frame or pad corner

Definition at line 54 of file RPave.hxx.

◆ offsetY

RAttrValue<RPadLength> ROOT::Experimental::RPave::offsetY {this, "offsetY", 0.02}

! offset Y relative to selected frame or pad corner

Definition at line 55 of file RPave.hxx.

◆ onFrame

RAttrValue<bool> ROOT::Experimental::RPave::onFrame {this, "onFrame", true}

! is pave assigned to frame (true) or to pad corner (false)

Definition at line 52 of file RPave.hxx.

◆ text

RAttrText ROOT::Experimental::RPave::text {this, "text"}

! text attributes

Definition at line 49 of file RPave.hxx.

◆ width

RAttrValue<RPadLength> ROOT::Experimental::RPave::width {this, "width", 0.4}

! pave width

Definition at line 50 of file RPave.hxx.

Libraries for ROOT::Experimental::RPave:

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