Loading [MathJax]/extensions/tex2jax.js
Logo ROOT  
Reference Guide
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ROOT::Experimental::RObjectDrawable Class Referencefinal

Provides v7 drawing facilities for TObject types (TGraph etc).

Author
Sergey Linev
Date
2017-05-31
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 29 of file RObjectDrawable.hxx.

Public Member Functions

 RObjectDrawable ()
 
 RObjectDrawable (const std::shared_ptr< TObject > &obj, const std::string &opt)
 
void Execute (const std::string &) final
 Executes menu item. More...
 
void PopulateMenu (RMenuItems &) final
 Fill menu items for the object. More...
 
- Public Member Functions inherited from ROOT::Experimental::RDrawable
 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

void CollectShared (Internal::RIOSharedVector_t &vect) final
 
std::unique_ptr< RDisplayItemDisplay () const override
 Creates display item for drawable By default item contains drawble data itself. More...
 
- Protected Member Functions inherited from ROOT::Experimental::RDrawable
virtual void CollectShared (Internal::RIOSharedVector_t &)
 
virtual std::unique_ptr< RDisplayItemDisplay () const
 Creates display item for drawable By default item contains drawble data itself. More...
 
RAttrMapGetAttrMap ()
 
const RAttrMapGetAttrMap () 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

Internal::RIOShared< TObjectfObj
 The object to be painted. More...
 
std::string fOpts
 drawing options More...
 

#include <ROOT/RObjectDrawable.hxx>

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

Constructor & Destructor Documentation

◆ RObjectDrawable() [1/2]

ROOT::Experimental::RObjectDrawable::RObjectDrawable ( )
inline

Definition at line 42 of file RObjectDrawable.hxx.

◆ RObjectDrawable() [2/2]

ROOT::Experimental::RObjectDrawable::RObjectDrawable ( const std::shared_ptr< TObject > &  obj,
const std::string &  opt 
)
inline

Definition at line 44 of file RObjectDrawable.hxx.

Member Function Documentation

◆ CollectShared()

void ROOT::Experimental::RObjectDrawable::CollectShared ( Internal::RIOSharedVector_t vect)
inlinefinalprotectedvirtual

Reimplemented from ROOT::Experimental::RDrawable.

Definition at line 37 of file RObjectDrawable.hxx.

◆ Display()

std::unique_ptr< ROOT::Experimental::RDisplayItem > ROOT::Experimental::RObjectDrawable::Display ( ) const
overrideprotectedvirtual

Creates display item for drawable By default item contains drawble data itself.

Reimplemented from ROOT::Experimental::RDrawable.

Definition at line 23 of file RObjectDrawable.cxx.

◆ Execute()

void ROOT::Experimental::RObjectDrawable::Execute ( const std::string &  exec)
finalvirtual

Executes menu item.

Reimplemented from ROOT::Experimental::RDrawable.

Definition at line 34 of file RObjectDrawable.cxx.

◆ PopulateMenu()

void ROOT::Experimental::RObjectDrawable::PopulateMenu ( RMenuItems items)
finalvirtual

Fill menu items for the object.

Reimplemented from ROOT::Experimental::RDrawable.

Definition at line 28 of file RObjectDrawable.cxx.

Member Data Documentation

◆ fObj

Internal::RIOShared<TObject> ROOT::Experimental::RObjectDrawable::fObj
private

The object to be painted.

Definition at line 31 of file RObjectDrawable.hxx.

◆ fOpts

std::string ROOT::Experimental::RObjectDrawable::fOpts
private

drawing options

Definition at line 33 of file RObjectDrawable.hxx.

Libraries for ROOT::Experimental::RObjectDrawable:
[legend]

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