Base class for drawable entities: objects that can be painted on a RPad
.
Definition at line 102 of file RDrawable.hxx.
Classes | |
class | RDisplayContext |
Public Types | |
using | Version_t = uint64_t |
Public Member Functions | |
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 | |
RDrawable (const RDrawable &)=delete | |
virtual void | CollectShared (Internal::RIOSharedVector_t &) |
virtual std::unique_ptr< RDisplayItem > | Display (const RDisplayContext &) |
Creates display item for drawable By default item contains drawable data itself. More... | |
virtual void | Execute (const std::string &) |
RAttrMap & | GetAttrMap () |
const RAttrMap & | GetAttrMap () 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. More... | |
RDrawable & | operator= (const RDrawable &)=delete |
virtual void | PopulateMenu (RMenuItems &) |
virtual void | SetDrawableVersion (Version_t vers) |
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, not stored when canvas is saved More... | |
Version_t | fVersion {1} |
! drawable version, changed from the canvas More... | |
Friends | |
class | RAttrBase |
class | RChangeAttrRequest |
class | RDrawableExecRequest |
class | RDrawableMenuRequest |
class | RIndirectDisplayItem |
class | RLegend |
class | RPadBase |
class | RStyle |
#include <ROOT/RDrawable.hxx>
using ROOT::Experimental::RDrawable::Version_t = uint64_t |
Definition at line 115 of file RDrawable.hxx.
|
protecteddelete |
|
inlineexplicit |
Definition at line 196 of file RDrawable.hxx.
|
virtualdefault |
|
inline |
Definition at line 201 of file RDrawable.hxx.
|
inlineprotectedvirtual |
Reimplemented in ROOT::Experimental::RPadBase, ROOT::Experimental::RObjectDrawable, ROOT::Experimental::RHistDrawable< DIMENSIONS >, ROOT::Experimental::RHistDrawable< 1 >, ROOT::Experimental::RHistDrawable< 2 >, ROOT::Experimental::RHistStatBox< DIMENSIONS >, ROOT::Experimental::RHistStatBox< 1 >, ROOT::Experimental::RHistStatBox< 2 >, and ROOT::Experimental::RHistStatBox< 3 >.
Definition at line 173 of file RDrawable.hxx.
|
protectedvirtual |
Creates display item for drawable By default item contains drawable data itself.
Reimplemented in ROOT::Experimental::RPad, ROOT::Experimental::RObjectDrawable, and ROOT::Experimental::RHistStatBoxBase.
Definition at line 68 of file RDrawable.cxx.
|
protectedvirtual |
Reimplemented in ROOT::Experimental::RObjectDrawable.
Definition at line 40 of file RDrawable.cxx.
|
inlineprotected |
Definition at line 177 of file RDrawable.hxx.
|
inlineprotected |
Definition at line 178 of file RDrawable.hxx.
|
inline |
Definition at line 204 of file RDrawable.hxx.
|
inline |
Definition at line 206 of file RDrawable.hxx.
|
inline |
Definition at line 208 of file RDrawable.hxx.
|
inlineprotected |
Definition at line 185 of file RDrawable.hxx.
|
inlineprotectedvirtual |
Reimplemented in ROOT::Experimental::RPaletteDrawable, ROOT::Experimental::RHistDrawable< DIMENSIONS >, ROOT::Experimental::RHistDrawable< 1 >, ROOT::Experimental::RHistDrawable< 2 >, and ROOT::Experimental::RHistStatBoxBase.
Definition at line 175 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 59 of file RDrawable.cxx.
|
protectedvirtual |
Reimplemented in ROOT::Experimental::RObjectDrawable, ROOT::Experimental::RFrame, ROOT::Experimental::RHistDrawable< DIMENSIONS >, ROOT::Experimental::RHistDrawable< 1 >, and ROOT::Experimental::RHistDrawable< 2 >.
Definition at line 30 of file RDrawable.cxx.
|
inline |
Definition at line 203 of file RDrawable.hxx.
|
inlineprotectedvirtual |
Reimplemented in ROOT::Experimental::RPadBase.
Definition at line 184 of file RDrawable.hxx.
|
inline |
Definition at line 209 of file RDrawable.hxx.
|
inlinevirtual |
Reimplemented in ROOT::Experimental::RPadBase.
Definition at line 200 of file RDrawable.hxx.
|
friend |
Definition at line 105 of file RDrawable.hxx.
|
friend |
Definition at line 109 of file RDrawable.hxx.
|
friend |
Definition at line 111 of file RDrawable.hxx.
|
friend |
Definition at line 110 of file RDrawable.hxx.
|
friend |
Definition at line 108 of file RDrawable.hxx.
|
friend |
Definition at line 107 of file RDrawable.hxx.
|
friend |
Definition at line 104 of file RDrawable.hxx.
|
friend |
Definition at line 106 of file RDrawable.hxx.
|
private |
attributes values
Definition at line 164 of file RDrawable.hxx.
|
private |
user defined drawable class, can later go inside map
Definition at line 167 of file RDrawable.hxx.
|
private |
! drawable type, not stored in the root file, must be initialized in constructor
Definition at line 166 of file RDrawable.hxx.
|
private |
optional object identifier, may be used in CSS as well
Definition at line 168 of file RDrawable.hxx.
|
private |
! style applied for RDrawable, not stored when canvas is saved
Definition at line 165 of file RDrawable.hxx.
|
private |
! drawable version, changed from the canvas
Definition at line 169 of file RDrawable.hxx.