CbmRoot
|
#include <CbmFlesCanvasTools.h>
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 |
Definition at line 17 of file CbmFlesCanvasTools.h.
CanvasConfig::CanvasConfig | ( | ) |
Definition at line 9 of file CbmFlesCanvasTools.cxx.
CanvasConfig::CanvasConfig | ( | std::string | sName, |
std::string | sTitle, | ||
uint32_t | uNbPadsX, | ||
uint32_t | uNbPadsY | ||
) |
Definition at line 22 of file CbmFlesCanvasTools.cxx.
CanvasConfig::~CanvasConfig | ( | ) |
Clear potential leftovers
Definition at line 39 of file CbmFlesCanvasTools.cxx.
References fvbGridx, fvbGridy, fvbLogx, fvbLogy, fvbLogz, fvvsObjName, and fvvsOptions.
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().
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().
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().
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().
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().
|
inline |
accessors
Definition at line 28 of file CbmFlesCanvasTools.h.
References fsName.
Referenced by CbmMqHistoServer::PrepareCanvas().
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().
|
inline |
Definition at line 30 of file CbmFlesCanvasTools.h.
References fuNbPads.
Referenced by CbmMqHistoServer::PrepareCanvas().
|
inline |
Definition at line 31 of file CbmFlesCanvasTools.h.
References fuNbPadsX.
Referenced by CbmMqHistoServer::PrepareCanvas().
|
inline |
Definition at line 32 of file CbmFlesCanvasTools.h.
References fuNbPadsY.
Referenced by CbmMqHistoServer::PrepareCanvas().
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().
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().
|
inline |
Definition at line 29 of file CbmFlesCanvasTools.h.
References fsTitle.
Referenced by CbmMqHistoServer::PrepareCanvas().
|
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().
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().
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().
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().
|
private |
Definition at line 56 of file CbmFlesCanvasTools.h.
Referenced by GetName().
|
private |
Definition at line 57 of file CbmFlesCanvasTools.h.
Referenced by GetTitle().
|
private |
Definition at line 58 of file CbmFlesCanvasTools.h.
Referenced by GetGridx(), GetGridy(), GetLogx(), GetLogy(), GetLogz(), GetNbObjsInPad(), GetNbPads(), GetObjName(), GetOption(), ResizeFields(), SetConfig(), SetNbPadsX(), and SetNbPadsY().
|
private |
Definition at line 59 of file CbmFlesCanvasTools.h.
Referenced by GetNbPadsX(), SetNbPadsX(), and SetNbPadsY().
|
private |
Definition at line 60 of file CbmFlesCanvasTools.h.
Referenced by GetNbPadsY(), SetNbPadsX(), and SetNbPadsY().
|
private |
Definition at line 62 of file CbmFlesCanvasTools.h.
Referenced by GetGridx(), ResizeFields(), SetConfig(), and ~CanvasConfig().
|
private |
Definition at line 63 of file CbmFlesCanvasTools.h.
Referenced by GetGridy(), ResizeFields(), SetConfig(), and ~CanvasConfig().
|
private |
Definition at line 64 of file CbmFlesCanvasTools.h.
Referenced by GetLogx(), ResizeFields(), SetConfig(), and ~CanvasConfig().
|
private |
Definition at line 65 of file CbmFlesCanvasTools.h.
Referenced by GetLogy(), ResizeFields(), SetConfig(), and ~CanvasConfig().
|
private |
Definition at line 66 of file CbmFlesCanvasTools.h.
Referenced by GetLogz(), ResizeFields(), SetConfig(), and ~CanvasConfig().
|
private |
Definition at line 67 of file CbmFlesCanvasTools.h.
Referenced by GetNbObjsInPad(), GetObjName(), ResizeFields(), SetConfig(), and ~CanvasConfig().
|
private |
Definition at line 68 of file CbmFlesCanvasTools.h.
Referenced by GetOption(), ResizeFields(), SetConfig(), and ~CanvasConfig().