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
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)
void UpdateColor (int color_indx, const std::string &color_value)

Static Public Member Functions

static std::string ObjectIDFromPtr (const void *ptr)
 Construct fillid using pointer value.

Protected Attributes

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

#include <ROOT/TObjectDisplayItem.hxx>

Inheritance diagram for ROOT::Experimental::TObjectDisplayItem:
ROOT::Experimental::RIndirectDisplayItem ROOT::Experimental::RDisplayItem

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

◆ BuildFullId()

void RDisplayItem::BuildFullId ( const std::string & prefix)
virtualinherited

Build full id, including prefix and object index.

Reimplemented in ROOT::Experimental::RCanvasDisplayItem, and ROOT::Experimental::RPadDisplayItem.

Definition at line 29 of file RDisplayItem.cxx.

◆ GetIndex()

unsigned ROOT::Experimental::RDisplayItem::GetIndex ( ) const
inlineinherited

Definition at line 49 of file RDisplayItem.hxx.

◆ GetObjectID()

std::string ROOT::Experimental::RDisplayItem::GetObjectID ( ) const
inlineinherited

Definition at line 42 of file RDisplayItem.hxx.

◆ ObjectIDFromPtr()

std::string RDisplayItem::ObjectIDFromPtr ( const void * ptr)
staticinherited

Construct fillid using pointer value.

Definition at line 37 of file RDisplayItem.cxx.

◆ SetIndex()

void ROOT::Experimental::RDisplayItem::SetIndex ( unsigned indx)
inlineinherited

Definition at line 48 of file RDisplayItem.hxx.

◆ SetObjectID()

void ROOT::Experimental::RDisplayItem::SetObjectID ( const std::string & id)
inlineinherited

Definition at line 41 of file RDisplayItem.hxx.

◆ SetObjectIDAsPtr()

void RDisplayItem::SetObjectIDAsPtr ( const void * ptr)
inherited

Assign id using arbitrary pointer value Typically drawable pointer should be used here.

Definition at line 21 of file RDisplayItem.cxx.

◆ SetStyle()

void ROOT::Experimental::RDisplayItem::SetStyle ( RStyle * style)
inlineinherited

Definition at line 46 of file RDisplayItem.hxx.

◆ 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

◆ fAttr

const RAttrMap* ROOT::Experimental::RIndirectDisplayItem::fAttr {nullptr}
protectedinherited

pointer on drawable attributes

Definition at line 96 of file RDisplayItem.hxx.

◆ 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.

◆ fCssClass

const std::string* ROOT::Experimental::RIndirectDisplayItem::fCssClass {nullptr}
protectedinherited

pointer on drawable class

Definition at line 97 of file RDisplayItem.hxx.

◆ fCssType

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

CSS type.

Definition at line 38 of file TObjectDisplayItem.hxx.

◆ fDummy

bool ROOT::Experimental::RDisplayItem::fDummy {false}
protectedinherited

if true, just placeholder for drawable which does not changed

Definition at line 34 of file RDisplayItem.hxx.

◆ fId

const std::string* ROOT::Experimental::RIndirectDisplayItem::fId {nullptr}
protectedinherited

pointer on drawable id

Definition at line 98 of file RDisplayItem.hxx.

◆ fIndex

unsigned ROOT::Experimental::RDisplayItem::fIndex {0}
protectedinherited

! index inside current pad, used to produce fully-qualified id, not send to client

Definition at line 33 of file RDisplayItem.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.

◆ fObjectID

std::string ROOT::Experimental::RDisplayItem::fObjectID
protectedinherited

unique object identifier

Definition at line 31 of file RDisplayItem.hxx.

◆ fOwner

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

! if object must be deleted

Definition at line 39 of file TObjectDisplayItem.hxx.

◆ fStyle

RStyle* ROOT::Experimental::RDisplayItem::fStyle {nullptr}
protectedinherited

style object

Definition at line 32 of file RDisplayItem.hxx.


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