Provides v7 drawing facilities for TObject types (TGraph etc).
Definition at line 30 of file TObjectDrawable.hxx.
Public Types | |
| enum | EKind { kColors = 4 , kStyle = 5 , kPalette = 6 } |
Public Types inherited from ROOT::Experimental::RDrawable | |
| using | Version_t = uint64_t |
Public Member Functions | |
| TObjectDrawable () | |
| TObjectDrawable (const std::shared_ptr< TObject > &obj, const std::string &opt="") | |
| TObjectDrawable (EKind kind, bool persistent=false) | |
| virtual | ~TObjectDrawable ()=default |
Public Member Functions inherited from ROOT::Experimental::RDrawable | |
| 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 | |
| void | CollectShared (Internal::RIOSharedVector_t &vect) final |
| std::unique_ptr< RDisplayItem > | Display (const RDisplayContext &) override |
| Create display item which will be delivered to the client. | |
| void | Execute (const std::string &) final |
| void | PopulateMenu (RMenuItems &) final |
Protected Member Functions inherited from ROOT::Experimental::RDrawable | |
| RDrawable (const RDrawable &)=delete | |
| 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. | |
| virtual void | OnDisplayItemDestroyed (RDisplayItem *) const |
| RDrawable & | operator= (const RDrawable &)=delete |
| virtual void | SetDrawableVersion (Version_t vers) |
Private Types | |
| enum | { kNone = 0 , kObject = 1 } |
Private Member Functions | |
| std::unique_ptr< TObject > | CreateSpecials (int kind) |
| Create instance of requested special object. | |
| const char * | GetColorCode (TColor *col) |
| Convert TColor to RGB string for using with SVG. | |
Private Attributes | |
| int | fKind {kNone} |
| object kind | |
| Internal::RIOShared< TObject > | fObj |
| The object to be painted. | |
| std::string | fOpts |
| drawing options | |
#include <ROOT/TObjectDrawable.hxx>
|
private |
| Enumerator | |
|---|---|
| kNone | empty container |
| kObject | plain object |
Definition at line 33 of file TObjectDrawable.hxx.
| Enumerator | |
|---|---|
| kColors | list of ROOT colors |
| kStyle | instance of TStyle object |
| kPalette | list of colors from palette |
Definition at line 58 of file TObjectDrawable.hxx.
|
inline |
Definition at line 64 of file TObjectDrawable.hxx.
|
inline |
Definition at line 66 of file TObjectDrawable.hxx.
Definition at line 28 of file TObjectDrawable.cxx.
|
virtualdefault |
|
inlinefinalprotectedvirtual |
Reimplemented from ROOT::Experimental::RDrawable.
Definition at line 48 of file TObjectDrawable.hxx.
Create instance of requested special object.
Definition at line 54 of file TObjectDrawable.cxx.
|
overrideprotectedvirtual |
Create display item which will be delivered to the client.
Reimplemented from ROOT::Experimental::RDrawable.
Definition at line 96 of file TObjectDrawable.cxx.
|
finalprotectedvirtual |
Reimplemented from ROOT::Experimental::RDrawable.
Definition at line 116 of file TObjectDrawable.cxx.
|
private |
Convert TColor to RGB string for using with SVG.
Definition at line 39 of file TObjectDrawable.cxx.
|
finalprotectedvirtual |
Reimplemented from ROOT::Experimental::RDrawable.
Definition at line 109 of file TObjectDrawable.cxx.
object kind
Definition at line 38 of file TObjectDrawable.hxx.
|
private |
The object to be painted.
Definition at line 39 of file TObjectDrawable.hxx.
|
private |
drawing options
Definition at line 40 of file TObjectDrawable.hxx.