Logo ROOT  
Reference Guide
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)
 
- 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< RDisplayItemDisplay (const RDisplayContext &) override
 Creates display item for drawable By default item contains drawable data itself. More...
 
void Execute (const std::string &) final
 
void PopulateMenu (RMenuItems &) final
 
- 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. More...
 
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. More...
 
RDrawableoperator= (const RDrawable &)=delete
 
virtual void PopulateMenu (RMenuItems &)
 
virtual void SetDrawableVersion (Version_t vers)
 

Private Attributes

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

Additional Inherited Members

- Public Types inherited from ROOT::Experimental::RDrawable
using Version_t = uint64_t
 

#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 46 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 48 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< RDisplayItem > RObjectDrawable::Display ( const RDisplayContext ctxt)
overrideprotectedvirtual

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

Reimplemented from ROOT::Experimental::RDrawable.

Definition at line 24 of file RObjectDrawable.cxx.

◆ Execute()

void RObjectDrawable::Execute ( const std::string &  exec)
finalprotectedvirtual

Reimplemented from ROOT::Experimental::RDrawable.

Definition at line 37 of file RObjectDrawable.cxx.

◆ PopulateMenu()

void RObjectDrawable::PopulateMenu ( RMenuItems items)
finalprotectedvirtual

Reimplemented from ROOT::Experimental::RDrawable.

Definition at line 31 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: