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

class RCanvasDisplayItem

Display item for the RCanvas class, add canvas title and size

Author
Sergey Linev
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 96 of file RPadDisplayItem.hxx.

Public Types

using PadPrimitives_t = std::vector<std::unique_ptr<RDisplayItem>>

Public Member Functions

 RCanvasDisplayItem ()=default
 ~RCanvasDisplayItem () override=default
void Add (std::unique_ptr< RDisplayItem > &&item, std::shared_ptr< RStyle > &&style)
 Add display item and style which should be used for it.
void BuildFullId (const std::string &prefix) override
 Build full id, including prefix and object index.
unsigned GetIndex () const
std::string GetObjectID () const
void SetAttributes (const RAttrMap *f)
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 SetPadStyle (std::shared_ptr< RStyle > &&style)
 Assign style for the pad.
void SetStyle (RStyle *style)
void SetTitle (const std::string &title)
void SetWindowSize (int width, int height)

Static Public Member Functions

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

Protected Attributes

const RAttrMapfAttr {nullptr}
 temporary pointer on attributes
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
PadPrimitives_t fPrimitives
 display items for all primitives in the pad
RStylefStyle {nullptr}
 style object
std::vector< std::shared_ptr< RStyle > > fStyles
 ! locked styles of the objects and pad until streaming is performed
std::string fTitle
 title of the canvas
std::array< int, 2 > fWinSize
 canvas window size

#include <ROOT/RPadDisplayItem.hxx>

Inheritance diagram for ROOT::Experimental::RCanvasDisplayItem:
ROOT::Experimental::RPadBaseDisplayItem ROOT::Experimental::RDisplayItem

Member Typedef Documentation

◆ PadPrimitives_t

using ROOT::Experimental::RPadBaseDisplayItem::PadPrimitives_t = std::vector<std::unique_ptr<RDisplayItem>>
inherited

Definition at line 31 of file RPadDisplayItem.hxx.

Constructor & Destructor Documentation

◆ RCanvasDisplayItem()

ROOT::Experimental::RCanvasDisplayItem::RCanvasDisplayItem ( )
default

◆ ~RCanvasDisplayItem()

ROOT::Experimental::RCanvasDisplayItem::~RCanvasDisplayItem ( )
overridedefault

Member Function Documentation

◆ Add()

void ROOT::Experimental::RPadBaseDisplayItem::Add ( std::unique_ptr< RDisplayItem > && item,
std::shared_ptr< RStyle > && style )
inlineinherited

Add display item and style which should be used for it.

Definition at line 42 of file RPadDisplayItem.hxx.

◆ BuildFullId()

void ROOT::Experimental::RCanvasDisplayItem::BuildFullId ( const std::string & prefix)
inlineoverridevirtual

Build full id, including prefix and object index.

Reimplemented from ROOT::Experimental::RDisplayItem.

Definition at line 107 of file RPadDisplayItem.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.

◆ SetAttributes()

void ROOT::Experimental::RPadBaseDisplayItem::SetAttributes ( const RAttrMap * f)
inlineinherited

Definition at line 40 of file RPadDisplayItem.hxx.

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

◆ SetPadStyle()

void ROOT::Experimental::RPadBaseDisplayItem::SetPadStyle ( std::shared_ptr< RStyle > && style)
inlineinherited

Assign style for the pad.

Definition at line 51 of file RPadDisplayItem.hxx.

◆ SetStyle()

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

Definition at line 46 of file RDisplayItem.hxx.

◆ SetTitle()

void ROOT::Experimental::RCanvasDisplayItem::SetTitle ( const std::string & title)
inline

Definition at line 104 of file RPadDisplayItem.hxx.

◆ SetWindowSize()

void ROOT::Experimental::RCanvasDisplayItem::SetWindowSize ( int width,
int height )
inline

Definition at line 105 of file RPadDisplayItem.hxx.

Member Data Documentation

◆ fAttr

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

temporary pointer on attributes

Definition at line 34 of file RPadDisplayItem.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.

◆ fPrimitives

PadPrimitives_t ROOT::Experimental::RPadBaseDisplayItem::fPrimitives
protectedinherited

display items for all primitives in the pad

Definition at line 35 of file RPadDisplayItem.hxx.

◆ fStyle

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

style object

Definition at line 32 of file RDisplayItem.hxx.

◆ fStyles

std::vector<std::shared_ptr<RStyle> > ROOT::Experimental::RPadBaseDisplayItem::fStyles
protectedinherited

! locked styles of the objects and pad until streaming is performed

Definition at line 36 of file RPadDisplayItem.hxx.

◆ fTitle

std::string ROOT::Experimental::RCanvasDisplayItem::fTitle
protected

title of the canvas

Definition at line 99 of file RPadDisplayItem.hxx.

◆ fWinSize

std::array<int, 2> ROOT::Experimental::RCanvasDisplayItem::fWinSize
protected

canvas window size

Definition at line 100 of file RPadDisplayItem.hxx.


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