CbmRoot
CanvasConfig Class Reference

#include <CbmFlesCanvasTools.h>

Collaboration diagram for CanvasConfig:
[legend]

Public Member Functions

 CanvasConfig ()
 
 CanvasConfig (std::string sName, std::string sTitle, uint32_t uNbPadsX, uint32_t uNbPadsY)
 
 ~CanvasConfig ()
 
std::string GetName () const
 accessors More...
 
std::string GetTitle () const
 
uint32_t GetNbPads () const
 
uint32_t GetNbPadsX () const
 
uint32_t GetNbPadsY () const
 
bool GetGridx (uint32_t uPadIdx) const
 accessors More...
 
bool GetGridy (uint32_t uPadIdx) const
 
bool GetLogx (uint32_t uPadIdx) const
 
bool GetLogy (uint32_t uPadIdx) const
 
bool GetLogz (uint32_t uPadIdx) const
 
uint32_t GetNbObjsInPad (uint32_t uPadIdx) const
 
std::string GetObjName (uint32_t uPadIdx, uint32_t uObjIdx) const
 
std::string GetOption (uint32_t uPadIdx, uint32_t uObjIdx) const
 
void SetNbPadsX (uint32_t uNbColumns)
 setters More...
 
void SetNbPadsY (uint32_t uNbRows)
 
bool SetConfig (uint32_t uPadIdx, bool bGridx, bool bGridy, bool bLogx, bool bLogy, bool bLogz, std::vector< std::string > vsObjName, std::vector< std::string > vsOptions)
 

Private Member Functions

void ResizeFields ()
 

Private Attributes

std::string fsName
 
std::string fsTitle
 
uint32_t fuNbPads
 
uint32_t fuNbPadsX
 
uint32_t fuNbPadsY
 
std::vector< bool > fvbGridx
 
std::vector< bool > fvbGridy
 
std::vector< bool > fvbLogx
 
std::vector< bool > fvbLogy
 
std::vector< bool > fvbLogz
 
std::vector< std::vector< std::string > > fvvsObjName
 
std::vector< std::vector< std::string > > fvvsOptions
 

Detailed Description

Definition at line 17 of file CbmFlesCanvasTools.h.

Constructor & Destructor Documentation

◆ CanvasConfig() [1/2]

CanvasConfig::CanvasConfig ( )

Definition at line 9 of file CbmFlesCanvasTools.cxx.

◆ CanvasConfig() [2/2]

CanvasConfig::CanvasConfig ( std::string  sName,
std::string  sTitle,
uint32_t  uNbPadsX,
uint32_t  uNbPadsY 
)

Definition at line 22 of file CbmFlesCanvasTools.cxx.

◆ ~CanvasConfig()

CanvasConfig::~CanvasConfig ( )

Clear potential leftovers

Definition at line 39 of file CbmFlesCanvasTools.cxx.

References fvbGridx, fvbGridy, fvbLogx, fvbLogy, fvbLogz, fvvsObjName, and fvvsOptions.

Member Function Documentation

◆ GetGridx()

bool CanvasConfig::GetGridx ( uint32_t  uPadIdx) const

accessors

Check first if in-boundary

Definition at line 55 of file CbmFlesCanvasTools.cxx.

References fuNbPads, and fvbGridx.

Referenced by CbmMqHistoServer::PrepareCanvas().

◆ GetGridy()

bool CanvasConfig::GetGridy ( uint32_t  uPadIdx) const

Check first if in-boundary

Definition at line 67 of file CbmFlesCanvasTools.cxx.

References fuNbPads, and fvbGridy.

Referenced by CbmMqHistoServer::PrepareCanvas().

◆ GetLogx()

bool CanvasConfig::GetLogx ( uint32_t  uPadIdx) const

Check first if in-boundary

Definition at line 79 of file CbmFlesCanvasTools.cxx.

References fuNbPads, and fvbLogx.

Referenced by CbmMqHistoServer::PrepareCanvas().

◆ GetLogy()

bool CanvasConfig::GetLogy ( uint32_t  uPadIdx) const

Check first if in-boundary

Definition at line 91 of file CbmFlesCanvasTools.cxx.

References fuNbPads, and fvbLogy.

Referenced by CbmMqHistoServer::PrepareCanvas().

◆ GetLogz()

bool CanvasConfig::GetLogz ( uint32_t  uPadIdx) const

Check first if in-boundary

Definition at line 103 of file CbmFlesCanvasTools.cxx.

References fuNbPads, and fvbLogz.

Referenced by CbmMqHistoServer::PrepareCanvas().

◆ GetName()

std::string CanvasConfig::GetName ( ) const
inline

accessors

Definition at line 28 of file CbmFlesCanvasTools.h.

References fsName.

Referenced by CbmMqHistoServer::PrepareCanvas().

◆ GetNbObjsInPad()

uint32_t CanvasConfig::GetNbObjsInPad ( uint32_t  uPadIdx) const

Check first if in-boundary

Definition at line 115 of file CbmFlesCanvasTools.cxx.

References fuNbPads, and fvvsObjName.

Referenced by GetObjName(), GetOption(), and CbmMqHistoServer::PrepareCanvas().

◆ GetNbPads()

uint32_t CanvasConfig::GetNbPads ( ) const
inline

Definition at line 30 of file CbmFlesCanvasTools.h.

References fuNbPads.

Referenced by CbmMqHistoServer::PrepareCanvas().

◆ GetNbPadsX()

uint32_t CanvasConfig::GetNbPadsX ( ) const
inline

Definition at line 31 of file CbmFlesCanvasTools.h.

References fuNbPadsX.

Referenced by CbmMqHistoServer::PrepareCanvas().

◆ GetNbPadsY()

uint32_t CanvasConfig::GetNbPadsY ( ) const
inline

Definition at line 32 of file CbmFlesCanvasTools.h.

References fuNbPadsY.

Referenced by CbmMqHistoServer::PrepareCanvas().

◆ GetObjName()

std::string CanvasConfig::GetObjName ( uint32_t  uPadIdx,
uint32_t  uObjIdx 
) const

Check first if in-boundary

Check if object is in vector boundary

Definition at line 127 of file CbmFlesCanvasTools.cxx.

References fuNbPads, fvvsObjName, and GetNbObjsInPad().

Referenced by CbmMqHistoServer::PrepareCanvas().

◆ GetOption()

std::string CanvasConfig::GetOption ( uint32_t  uPadIdx,
uint32_t  uObjIdx 
) const

Check first if in-boundary

Check if object is in vector boundary

Definition at line 148 of file CbmFlesCanvasTools.cxx.

References fuNbPads, fvvsOptions, and GetNbObjsInPad().

Referenced by CbmMqHistoServer::PrepareCanvas().

◆ GetTitle()

std::string CanvasConfig::GetTitle ( ) const
inline

Definition at line 29 of file CbmFlesCanvasTools.h.

References fsTitle.

Referenced by CbmMqHistoServer::PrepareCanvas().

◆ ResizeFields()

void CanvasConfig::ResizeFields ( )
private

First clear potential leftovers

Resize vectors

Definition at line 233 of file CbmFlesCanvasTools.cxx.

References fuNbPads, fvbGridx, fvbGridy, fvbLogx, fvbLogy, fvbLogz, fvvsObjName, and fvvsOptions.

Referenced by SetNbPadsX(), and SetNbPadsY().

◆ SetConfig()

bool CanvasConfig::SetConfig ( uint32_t  uPadIdx,
bool  bGridx,
bool  bGridy,
bool  bLogx,
bool  bLogy,
bool  bLogz,
std::vector< std::string >  vsObjName,
std::vector< std::string >  vsOptions 
)

Assign PAD config values

Definition at line 206 of file CbmFlesCanvasTools.cxx.

References fuNbPads, fvbGridx, fvbGridy, fvbLogx, fvbLogy, fvbLogz, fvvsObjName, and fvvsOptions.

Referenced by ExtractCanvasConfigFromString().

◆ SetNbPadsX()

void CanvasConfig::SetNbPadsX ( uint32_t  uNbColumns)

setters

Print warning in case some pads were already defined

Update total nb of pads

Re-initialize vectors for pad config

Definition at line 171 of file CbmFlesCanvasTools.cxx.

References fuNbPads, fuNbPadsX, fuNbPadsY, and ResizeFields().

◆ SetNbPadsY()

void CanvasConfig::SetNbPadsY ( uint32_t  uNbRows)

Print warning in case some pads were already defined

Update total nb of pads

Re-initialize vectors for pad config

Definition at line 188 of file CbmFlesCanvasTools.cxx.

References fuNbPads, fuNbPadsX, fuNbPadsY, and ResizeFields().

Member Data Documentation

◆ fsName

std::string CanvasConfig::fsName
private

Definition at line 56 of file CbmFlesCanvasTools.h.

Referenced by GetName().

◆ fsTitle

std::string CanvasConfig::fsTitle
private

Definition at line 57 of file CbmFlesCanvasTools.h.

Referenced by GetTitle().

◆ fuNbPads

uint32_t CanvasConfig::fuNbPads
private

◆ fuNbPadsX

uint32_t CanvasConfig::fuNbPadsX
private

Definition at line 59 of file CbmFlesCanvasTools.h.

Referenced by GetNbPadsX(), SetNbPadsX(), and SetNbPadsY().

◆ fuNbPadsY

uint32_t CanvasConfig::fuNbPadsY
private

Definition at line 60 of file CbmFlesCanvasTools.h.

Referenced by GetNbPadsY(), SetNbPadsX(), and SetNbPadsY().

◆ fvbGridx

std::vector<bool> CanvasConfig::fvbGridx
private

Definition at line 62 of file CbmFlesCanvasTools.h.

Referenced by GetGridx(), ResizeFields(), SetConfig(), and ~CanvasConfig().

◆ fvbGridy

std::vector<bool> CanvasConfig::fvbGridy
private

Definition at line 63 of file CbmFlesCanvasTools.h.

Referenced by GetGridy(), ResizeFields(), SetConfig(), and ~CanvasConfig().

◆ fvbLogx

std::vector<bool> CanvasConfig::fvbLogx
private

Definition at line 64 of file CbmFlesCanvasTools.h.

Referenced by GetLogx(), ResizeFields(), SetConfig(), and ~CanvasConfig().

◆ fvbLogy

std::vector<bool> CanvasConfig::fvbLogy
private

Definition at line 65 of file CbmFlesCanvasTools.h.

Referenced by GetLogy(), ResizeFields(), SetConfig(), and ~CanvasConfig().

◆ fvbLogz

std::vector<bool> CanvasConfig::fvbLogz
private

Definition at line 66 of file CbmFlesCanvasTools.h.

Referenced by GetLogz(), ResizeFields(), SetConfig(), and ~CanvasConfig().

◆ fvvsObjName

std::vector<std::vector<std::string> > CanvasConfig::fvvsObjName
private

◆ fvvsOptions

std::vector<std::vector<std::string> > CanvasConfig::fvvsOptions
private

Definition at line 68 of file CbmFlesCanvasTools.h.

Referenced by GetOption(), ResizeFields(), SetConfig(), and ~CanvasConfig().


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