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 | |
std::string | GetTitle () const |
uint32_t | GetNbPads () const |
uint32_t | GetNbPadsX () const |
uint32_t | GetNbPadsY () const |
bool | GetGridx (uint32_t uPadIdx) const |
accessors | |
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 | |
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 22 of file CbmFlesCanvasTools.h.
CanvasConfig::CanvasConfig | ( | ) |
Definition at line 13 of file CbmFlesCanvasTools.cxx.
CanvasConfig::CanvasConfig | ( | std::string | sName, |
std::string | sTitle, | ||
uint32_t | uNbPadsX, | ||
uint32_t | uNbPadsY ) |
Definition at line 28 of file CbmFlesCanvasTools.cxx.
CanvasConfig::~CanvasConfig | ( | ) |
Clear potential leftovers
Definition at line 44 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 61 of file CbmFlesCanvasTools.cxx.
References fuNbPads, and fvbGridx.
Referenced by cbm::services::histserv::Application::PrepareCanvas(), and CbmMqHistoServer::PrepareCanvas().
bool CanvasConfig::GetGridy | ( | uint32_t | uPadIdx | ) | const |
Check first if in-boundary
Definition at line 71 of file CbmFlesCanvasTools.cxx.
References fuNbPads, and fvbGridy.
Referenced by cbm::services::histserv::Application::PrepareCanvas(), and CbmMqHistoServer::PrepareCanvas().
bool CanvasConfig::GetLogx | ( | uint32_t | uPadIdx | ) | const |
Check first if in-boundary
Definition at line 81 of file CbmFlesCanvasTools.cxx.
References fuNbPads, and fvbLogx.
Referenced by cbm::services::histserv::Application::PrepareCanvas(), and 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 cbm::services::histserv::Application::PrepareCanvas(), and CbmMqHistoServer::PrepareCanvas().
bool CanvasConfig::GetLogz | ( | uint32_t | uPadIdx | ) | const |
Check first if in-boundary
Definition at line 101 of file CbmFlesCanvasTools.cxx.
References fuNbPads, and fvbLogz.
Referenced by cbm::services::histserv::Application::PrepareCanvas(), and CbmMqHistoServer::PrepareCanvas().
|
inline |
accessors
Definition at line 30 of file CbmFlesCanvasTools.h.
References fsName.
Referenced by cbm::services::histserv::Application::PrepareCanvas(), and CbmMqHistoServer::PrepareCanvas().
uint32_t CanvasConfig::GetNbObjsInPad | ( | uint32_t | uPadIdx | ) | const |
Check first if in-boundary
Definition at line 111 of file CbmFlesCanvasTools.cxx.
References fuNbPads, and fvvsObjName.
Referenced by GetObjName(), GetOption(), cbm::services::histserv::Application::PrepareCanvas(), and CbmMqHistoServer::PrepareCanvas().
|
inline |
Definition at line 32 of file CbmFlesCanvasTools.h.
References fuNbPads.
Referenced by cbm::services::histserv::Application::PrepareCanvas(), and CbmMqHistoServer::PrepareCanvas().
|
inline |
Definition at line 33 of file CbmFlesCanvasTools.h.
References fuNbPadsX.
Referenced by cbm::services::histserv::Application::PrepareCanvas(), and CbmMqHistoServer::PrepareCanvas().
|
inline |
Definition at line 34 of file CbmFlesCanvasTools.h.
References fuNbPadsY.
Referenced by cbm::services::histserv::Application::PrepareCanvas(), and 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 121 of file CbmFlesCanvasTools.cxx.
References fuNbPads, fvvsObjName, and GetNbObjsInPad().
Referenced by cbm::services::histserv::Application::PrepareCanvas(), and 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 142 of file CbmFlesCanvasTools.cxx.
References fuNbPads, fvvsOptions, and GetNbObjsInPad().
Referenced by cbm::services::histserv::Application::PrepareCanvas(), and CbmMqHistoServer::PrepareCanvas().
|
inline |
Definition at line 31 of file CbmFlesCanvasTools.h.
References fsTitle.
Referenced by cbm::services::histserv::Application::PrepareCanvas(), and CbmMqHistoServer::PrepareCanvas().
|
private |
First clear potential leftovers
Resize vectors
Definition at line 223 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 202 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 165 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 183 of file CbmFlesCanvasTools.cxx.
References fuNbPads, fuNbPadsX, fuNbPadsY, and ResizeFields().
|
private |
Definition at line 52 of file CbmFlesCanvasTools.h.
Referenced by GetName().
|
private |
Definition at line 53 of file CbmFlesCanvasTools.h.
Referenced by GetTitle().
|
private |
Definition at line 54 of file CbmFlesCanvasTools.h.
Referenced by GetGridx(), GetGridy(), GetLogx(), GetLogy(), GetLogz(), GetNbObjsInPad(), GetNbPads(), GetObjName(), GetOption(), ResizeFields(), SetConfig(), SetNbPadsX(), and SetNbPadsY().
|
private |
Definition at line 55 of file CbmFlesCanvasTools.h.
Referenced by GetNbPadsX(), SetNbPadsX(), and SetNbPadsY().
|
private |
Definition at line 56 of file CbmFlesCanvasTools.h.
Referenced by GetNbPadsY(), SetNbPadsX(), and SetNbPadsY().
|
private |
Definition at line 58 of file CbmFlesCanvasTools.h.
Referenced by GetGridx(), ResizeFields(), SetConfig(), and ~CanvasConfig().
|
private |
Definition at line 59 of file CbmFlesCanvasTools.h.
Referenced by GetGridy(), ResizeFields(), SetConfig(), and ~CanvasConfig().
|
private |
Definition at line 60 of file CbmFlesCanvasTools.h.
Referenced by GetLogx(), ResizeFields(), SetConfig(), and ~CanvasConfig().
|
private |
Definition at line 61 of file CbmFlesCanvasTools.h.
Referenced by GetLogy(), ResizeFields(), SetConfig(), and ~CanvasConfig().
|
private |
Definition at line 62 of file CbmFlesCanvasTools.h.
Referenced by GetLogz(), ResizeFields(), SetConfig(), and ~CanvasConfig().
|
private |
Definition at line 63 of file CbmFlesCanvasTools.h.
Referenced by GetNbObjsInPad(), GetObjName(), ResizeFields(), SetConfig(), and ~CanvasConfig().
|
private |
Definition at line 64 of file CbmFlesCanvasTools.h.
Referenced by GetOption(), ResizeFields(), SetConfig(), and ~CanvasConfig().