Logo ROOT   6.16/01
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
ROOT::Experimental::RObjectDrawable Class Reference

Definition at line 47 of file RObjectDrawable.hxx.

Public Member Functions

 RObjectDrawable ()=default
 
 RObjectDrawable (const std::shared_ptr< TObject > &obj, const std::string &opt)
 
void Execute (const std::string &) final
 Executes menu item. More...
 
RObjectDrawingOptsGetOptions ()
 
const RObjectDrawingOptsGetOptions () const
 Get the options - a string! More...
 
void Paint (Internal::RPadPainter &canv) final
 Paint the object. More...
 
void PopulateMenu (RMenuItems &) final
 Fill menu items for the object. More...
 
- Public Member Functions inherited from ROOT::Experimental::RDrawableBase< RObjectDrawable >
RDrawingOptsBase & GetOptionsBase () override
 Get the reference to the drawing options as RDrawingOptsBase. More...
 
- Public Member Functions inherited from ROOT::Experimental::RDrawable
virtual ~RDrawable ()
 
virtual void Execute (const std::string &)
 
std::string GetId () const
 
virtual RDrawingOptsBase & GetOptionsBase ()=0
 Get the reference to the drawing options as RDrawingOptsBase. More...
 
virtual void Paint (Internal::RPadPainter &onPad)=0
 
virtual void PopulateMenu (RMenuItems &)
 Method can be used to provide menu items for the drawn object. More...
 

Private Attributes

const std::shared_ptr< TObjectfObj
 The object to be painted. More...
 
RObjectDrawingOpts fOpts
 

#include <ROOT/RObjectDrawable.hxx>

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

Constructor & Destructor Documentation

◆ RObjectDrawable() [1/2]

ROOT::Experimental::RObjectDrawable::RObjectDrawable ( )
default

◆ RObjectDrawable() [2/2]

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

Definition at line 54 of file RObjectDrawable.hxx.

Member Function Documentation

◆ Execute()

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

Executes menu item.

Reimplemented from ROOT::Experimental::RDrawable.

Definition at line 41 of file RObjectDrawable.cxx.

◆ GetOptions() [1/2]

RObjectDrawingOpts & ROOT::Experimental::RObjectDrawable::GetOptions ( )
inline

Definition at line 65 of file RObjectDrawable.hxx.

◆ GetOptions() [2/2]

const RObjectDrawingOpts & ROOT::Experimental::RObjectDrawable::GetOptions ( ) const
inline

Get the options - a string!

Definition at line 63 of file RObjectDrawable.hxx.

◆ Paint()

void ROOT::Experimental::RObjectDrawable::Paint ( Internal::RPadPainter canv)
finalvirtual

Paint the object.

Implements ROOT::Experimental::RDrawable.

Definition at line 28 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 33 of file RObjectDrawable.cxx.

Member Data Documentation

◆ fObj

const std::shared_ptr<TObject> ROOT::Experimental::RObjectDrawable::fObj
private

The object to be painted.

Definition at line 48 of file RObjectDrawable.hxx.

◆ fOpts

RObjectDrawingOpts ROOT::Experimental::RObjectDrawable::fOpts
private

Definition at line 49 of file RObjectDrawable.hxx.

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

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