Logo ROOT  
Reference Guide
No Matches
ROOT::Experimental::TObjectDisplayItem Class Reference

Display item for TObject with drawing options.

Sergey Linev s.lin.nosp@m.ev@g.nosp@m.si.de
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 118 of file RDisplayItem.hxx.

Public Member Functions

 TObjectDisplayItem (int kind, const TObject *obj, const std::string &opt, bool owner=false)
virtual ~TObjectDisplayItem ()
- 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

int fKind {0}
 object kind
const TObjectfObject {nullptr}
 ROOT6 object.
std::string fOption
 drawing options
bool fOwner {false}
 ! if object must be deleted
- 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/RDisplayItem.hxx>

Inheritance diagram for ROOT::Experimental::TObjectDisplayItem:

Constructor & Destructor Documentation

◆ TObjectDisplayItem()

ROOT::Experimental::TObjectDisplayItem::TObjectDisplayItem ( int  kind,
const TObject obj,
const std::string &  opt,
bool  owner = false 

Definition at line 128 of file RDisplayItem.hxx.

◆ ~TObjectDisplayItem()

TObjectDisplayItem::~TObjectDisplayItem ( )


Definition at line 67 of file RDisplayItem.cxx.

Member Data Documentation

◆ fKind

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

object kind

Definition at line 121 of file RDisplayItem.hxx.

◆ fObject

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

ROOT6 object.

Definition at line 122 of file RDisplayItem.hxx.

◆ fOption

std::string ROOT::Experimental::TObjectDisplayItem::fOption

drawing options

Definition at line 123 of file RDisplayItem.hxx.

◆ fOwner

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

! if object must be deleted

Definition at line 124 of file RDisplayItem.hxx.

Libraries for ROOT::Experimental::TObjectDisplayItem:

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