Base class for drawable entities: objects that can be painted on a RPad
.
Definition at line 99 of file RDrawable.hxx.
Public Member Functions | |
RDrawable (const std::string &type) | |
virtual | ~RDrawable () |
void | ClearStyle () |
virtual void | Execute (const std::string &) |
const std::string & | GetCssClass () const |
const std::string & | GetCssType () const |
const std::string & | GetId () const |
virtual void | PopulateMenu (RMenuItems &) |
Method can be used to provide menu items for the drawn object. More... | |
void | SetCssClass (const std::string &cl) |
void | SetId (const std::string &id) |
virtual void | UseStyle (const std::shared_ptr< RStyle > &style) |
Protected Member Functions | |
virtual void | CollectShared (Internal::RIOSharedVector_t &) |
virtual std::unique_ptr< RDisplayItem > | Display () const |
Creates display item for drawable By default item contains drawble data itself. More... | |
RAttrMap & | GetAttrMap () |
const RAttrMap & | GetAttrMap () 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... | |
Private Attributes | |
RAttrMap | fAttr |
attributes values More... | |
std::string | fCssClass |
user defined drawable class, can later go inside map More... | |
std::string | fCssType |
! drawable type, not stored in the root file, must be initialized in constructor More... | |
std::string | fId |
optional object identifier, may be used in CSS as well More... | |
std::weak_ptr< RStyle > | fStyle |
! style applied for RDrawable More... | |
Friends | |
class | RAttrBase |
class | RLegend |
class | RPadBase |
class | RStyle |
#include <ROOT/RDrawable.hxx>
|
inlineexplicit |
Definition at line 126 of file RDrawable.hxx.
|
virtual |
Definition at line 18 of file RDrawable.cxx.
|
inline |
Definition at line 138 of file RDrawable.hxx.
|
inlineprotectedvirtual |
Reimplemented in ROOT::Experimental::RPadBase, ROOT::Experimental::RObjectDrawable, and ROOT::Experimental::RHistDrawable< DIMENSIONS >.
Definition at line 115 of file RDrawable.hxx.
|
protectedvirtual |
Creates display item for drawable By default item contains drawble data itself.
Reimplemented in ROOT::Experimental::RPad, and ROOT::Experimental::RObjectDrawable.
Definition at line 42 of file RDrawable.cxx.
|
virtual |
Reimplemented in ROOT::Experimental::RObjectDrawable, and ROOT::Experimental::RHistDrawable< DIMENSIONS >.
Definition at line 20 of file RDrawable.cxx.
|
inlineprotected |
Definition at line 117 of file RDrawable.hxx.
|
inlineprotected |
Definition at line 118 of file RDrawable.hxx.
|
inline |
Definition at line 141 of file RDrawable.hxx.
|
inline |
Definition at line 143 of file RDrawable.hxx.
|
inline |
Definition at line 145 of file RDrawable.hxx.
|
protected |
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 33 of file RDrawable.cxx.
|
inlinevirtual |
Method can be used to provide menu items for the drawn object.
Reimplemented in ROOT::Experimental::RObjectDrawable, and ROOT::Experimental::RHistDrawable< DIMENSIONS >.
Definition at line 133 of file RDrawable.hxx.
|
inline |
Definition at line 140 of file RDrawable.hxx.
|
inline |
Definition at line 146 of file RDrawable.hxx.
|
inlinevirtual |
Reimplemented in ROOT::Experimental::RPadBase.
Definition at line 137 of file RDrawable.hxx.
|
friend |
Definition at line 102 of file RDrawable.hxx.
|
friend |
Definition at line 104 of file RDrawable.hxx.
|
friend |
Definition at line 101 of file RDrawable.hxx.
|
friend |
Definition at line 103 of file RDrawable.hxx.
|
private |
attributes values
Definition at line 107 of file RDrawable.hxx.
|
private |
user defined drawable class, can later go inside map
Definition at line 110 of file RDrawable.hxx.
|
private |
! drawable type, not stored in the root file, must be initialized in constructor
Definition at line 109 of file RDrawable.hxx.
|
private |
optional object identifier, may be used in CSS as well
Definition at line 111 of file RDrawable.hxx.
|
private |
! style applied for RDrawable
Definition at line 108 of file RDrawable.hxx.