Logo ROOT  
Reference Guide
ROOT::Experimental::RCanvasDisplayItem Class Reference

class RCanvasDisplayItem

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

Sergey Linev
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 Member Functions

 RCanvasDisplayItem ()=default
virtual ~RCanvasDisplayItem ()=default
void BuildFullId (const std::string &prefix) override
 Build full id, including prefix and object index. More...
void SetTitle (const std::string &title)
void SetWindowSize (const std::array< RPadLength::Pixel, 2 > &win)
- Public Member Functions inherited from ROOT::Experimental::RPadBaseDisplayItem
 RPadBaseDisplayItem ()=default
virtual ~RPadBaseDisplayItem ()=default
void Add (std::unique_ptr< RDisplayItem > &&item, std::shared_ptr< RStyle > &&style)
 Add display item and style which should be used for it. More...
void SetAttributes (const RAttrMap *f)
void SetPadStyle (std::shared_ptr< RStyle > &&style)
 Assign style for the pad. More...
- 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. More...
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. More...
void SetStyle (RStyle *style)

Protected Attributes

std::string fTitle
 title of the canvas More...
std::array< int, 2 > fWinSize
 canvas window size More...
- Protected Attributes inherited from ROOT::Experimental::RPadBaseDisplayItem
const RAttrMapfAttr {nullptr}
 temporary pointer on attributes More...
PadPrimitives_t fPrimitives
 display items for all primitives in the pad More...
std::vector< std::shared_ptr< RStyle > > fStyles
 ! locked styles of the objects and pad until streaming is performed More...
- Protected Attributes inherited from ROOT::Experimental::RDisplayItem
bool fDummy {false}
 if true, just placeholder for drawable which does not changed More...
unsigned fIndex {0}
 ! index inside current pad, used to produce fully-qualified id, not send to client More...
std::string fObjectID
 unique object identifier More...
RStylefStyle {nullptr}
 style object More...

Additional Inherited Members

- Public Types inherited from ROOT::Experimental::RPadBaseDisplayItem
using PadPrimitives_t = std::vector< std::unique_ptr< RDisplayItem > >
- Static Public Member Functions inherited from ROOT::Experimental::RDisplayItem
static std::string ObjectIDFromPtr (const void *ptr)
 Construct fillid using pointer value. More...

#include <ROOT/RPadDisplayItem.hxx>

Inheritance diagram for ROOT::Experimental::RCanvasDisplayItem:

Constructor & Destructor Documentation

◆ RCanvasDisplayItem()

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

◆ ~RCanvasDisplayItem()

virtual ROOT::Experimental::RCanvasDisplayItem::~RCanvasDisplayItem ( )

Member Function Documentation

◆ BuildFullId()

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

Build full id, including prefix and object index.

Reimplemented from ROOT::Experimental::RDisplayItem.

Definition at line 107 of file RPadDisplayItem.hxx.

◆ SetTitle()

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

Definition at line 104 of file RPadDisplayItem.hxx.

◆ SetWindowSize()

void ROOT::Experimental::RCanvasDisplayItem::SetWindowSize ( const std::array< RPadLength::Pixel, 2 > &  win)

Definition at line 105 of file RPadDisplayItem.hxx.

Member Data Documentation

◆ fTitle

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

title of the canvas

Definition at line 99 of file RPadDisplayItem.hxx.

◆ fWinSize

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

canvas window size

Definition at line 100 of file RPadDisplayItem.hxx.

Libraries for ROOT::Experimental::RCanvasDisplayItem:

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