Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::TObjectDisplayItem Class Reference

Display item for TObject with drawing options.

Author
Sergey Linev s.lin.nosp@m.ev@g.nosp@m.si.de
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 33 of file TObjectDisplayItem.hxx.

Public Member Functions

 TObjectDisplayItem (const RDrawable &dr, int kind, const TObject *obj)
 normal constructor, also copies drawable id and csstype
 
 TObjectDisplayItem (int kind, const TObject *obj)
 constructor for special objects like palette, takes ownership!!
 
 ~TObjectDisplayItem () override
 
void UpdateColor (int color_indx, const std::string &color_value)
 
- Public Member Functions inherited from ROOT::Experimental::RIndirectDisplayItem
 RIndirectDisplayItem ()=default
 
 RIndirectDisplayItem (const RDrawable &dr)
 Constructor.
 
- Public Member Functions inherited from ROOT::Experimental::RDisplayItem
 RDisplayItem ()=default
 
 RDisplayItem (bool dummy)
 
virtual ~RDisplayItem ()
 
virtual void BuildFullId (const std::string &prefix)
 Build full id, including prefix and object index.
 
unsigned GetIndex () const
 
std::string GetObjectID () const
 
void SetIndex (unsigned indx)
 
void SetObjectID (const std::string &id)
 
void SetObjectIDAsPtr (const void *ptr)
 Assign id using arbitrary pointer value Typically drawable pointer should be used here.
 
void SetStyle (RStyle *style)
 

Protected Attributes

std::vector< intfColIndex
 stored color index
 
std::vector< std::string > fColValue
 stored color value
 
std::string fCssType
 CSS type.
 
int fKind {0}
 object kind
 
const TObjectfObject {nullptr}
 ROOT6 object.
 
bool fOwner {false}
 ! if object must be deleted
 
- Protected Attributes inherited from ROOT::Experimental::RIndirectDisplayItem
const RAttrMapfAttr {nullptr}
 pointer on drawable attributes
 
const std::string * fCssClass {nullptr}
 pointer on drawable class
 
const std::string * fId {nullptr}
 pointer on drawable id
 
- Protected Attributes inherited from ROOT::Experimental::RDisplayItem
bool fDummy {false}
 if true, just placeholder for drawable which does not changed
 
unsigned fIndex {0}
 ! index inside current pad, used to produce fully-qualified id, not send to client
 
std::string fObjectID
 unique object identifier
 
RStylefStyle {nullptr}
 style object
 

Additional Inherited Members

- Static Public Member Functions inherited from ROOT::Experimental::RDisplayItem
static std::string ObjectIDFromPtr (const void *ptr)
 Construct fillid using pointer value.
 

#include <ROOT/TObjectDisplayItem.hxx>

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

Constructor & Destructor Documentation

◆ TObjectDisplayItem() [1/2]

ROOT::Experimental::TObjectDisplayItem::TObjectDisplayItem ( const RDrawable dr,
int  kind,
const TObject obj 
)
inline

normal constructor, also copies drawable id and csstype

Definition at line 46 of file TObjectDisplayItem.hxx.

◆ TObjectDisplayItem() [2/2]

ROOT::Experimental::TObjectDisplayItem::TObjectDisplayItem ( int  kind,
const TObject obj 
)
inline

constructor for special objects like palette, takes ownership!!

Definition at line 54 of file TObjectDisplayItem.hxx.

◆ ~TObjectDisplayItem()

ROOT::Experimental::TObjectDisplayItem::~TObjectDisplayItem ( )
inlineoverride

Definition at line 61 of file TObjectDisplayItem.hxx.

Member Function Documentation

◆ UpdateColor()

void ROOT::Experimental::TObjectDisplayItem::UpdateColor ( int  color_indx,
const std::string &  color_value 
)
inline

Definition at line 66 of file TObjectDisplayItem.hxx.

Member Data Documentation

◆ fColIndex

std::vector<int> ROOT::Experimental::TObjectDisplayItem::fColIndex
protected

stored color index

Definition at line 40 of file TObjectDisplayItem.hxx.

◆ fColValue

std::vector<std::string> ROOT::Experimental::TObjectDisplayItem::fColValue
protected

stored color value

Definition at line 41 of file TObjectDisplayItem.hxx.

◆ fCssType

std::string ROOT::Experimental::TObjectDisplayItem::fCssType
protected

CSS type.

Definition at line 38 of file TObjectDisplayItem.hxx.

◆ fKind

int ROOT::Experimental::TObjectDisplayItem::fKind {0}
protected

object kind

Definition at line 36 of file TObjectDisplayItem.hxx.

◆ fObject

const TObject* ROOT::Experimental::TObjectDisplayItem::fObject {nullptr}
protected

ROOT6 object.

Definition at line 37 of file TObjectDisplayItem.hxx.

◆ fOwner

bool ROOT::Experimental::TObjectDisplayItem::fOwner {false}
protected

! if object must be deleted

Definition at line 39 of file TObjectDisplayItem.hxx.

Libraries for ROOT::Experimental::TObjectDisplayItem:

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