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

Generic display item for RDrawable, just reference drawable itself.

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 65 of file RDisplayItem.hxx.

Public Member Functions

template<class DRAWABLE>
 RDrawableDisplayItem (const DRAWABLE &dr)
 ~RDrawableDisplayItem () override
 destructor
virtual void BuildFullId (const std::string &prefix)
 Build full id, including prefix and object index.
const RDrawableGetDrawable () const
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)

Static Public Member Functions

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

Protected Attributes

const RDrawablefDrawable {nullptr}
 drawable
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

#include <ROOT/RDisplayItem.hxx>

Inheritance diagram for ROOT::Experimental::RDrawableDisplayItem:
ROOT::Experimental::RDisplayItem

Constructor & Destructor Documentation

◆ RDrawableDisplayItem()

template<class DRAWABLE>
ROOT::Experimental::RDrawableDisplayItem::RDrawableDisplayItem ( const DRAWABLE & dr)
inline

Definition at line 73 of file RDisplayItem.hxx.

◆ ~RDrawableDisplayItem()

RDrawableDisplayItem::~RDrawableDisplayItem ( )
override

destructor

Definition at line 46 of file RDisplayItem.cxx.

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.

◆ GetDrawable()

const RDrawable * ROOT::Experimental::RDrawableDisplayItem::GetDrawable ( ) const
inline

Definition at line 78 of file RDisplayItem.hxx.

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

Member Data Documentation

◆ fDrawable

const RDrawable* ROOT::Experimental::RDrawableDisplayItem::fDrawable {nullptr}
protected

drawable

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

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

◆ fObjectID

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

unique object identifier

Definition at line 31 of file RDisplayItem.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 files: