CbmRoot
Loading...
Searching...
No Matches
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
 
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
 

Detailed Description

Definition at line 22 of file CbmFlesCanvasTools.h.

Constructor & Destructor Documentation

◆ CanvasConfig() [1/2]

CanvasConfig::CanvasConfig ( )

Definition at line 13 of file CbmFlesCanvasTools.cxx.

◆ CanvasConfig() [2/2]

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

Definition at line 28 of file CbmFlesCanvasTools.cxx.

◆ ~CanvasConfig()

CanvasConfig::~CanvasConfig ( )

Clear potential leftovers

Definition at line 44 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 61 of file CbmFlesCanvasTools.cxx.

References fuNbPads, and fvbGridx.

Referenced by cbm::services::histserv::Application::PrepareCanvas(), and CbmMqHistoServer::PrepareCanvas().

◆ GetGridy()

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().

◆ GetLogx()

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().

◆ 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 cbm::services::histserv::Application::PrepareCanvas(), and CbmMqHistoServer::PrepareCanvas().

◆ GetLogz()

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().

◆ GetName()

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

accessors

Definition at line 30 of file CbmFlesCanvasTools.h.

References fsName.

Referenced by cbm::services::histserv::Application::PrepareCanvas(), and CbmMqHistoServer::PrepareCanvas().

◆ GetNbObjsInPad()

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().

◆ GetNbPads()

uint32_t CanvasConfig::GetNbPads ( ) const
inline

◆ GetNbPadsX()

uint32_t CanvasConfig::GetNbPadsX ( ) const
inline

◆ GetNbPadsY()

uint32_t CanvasConfig::GetNbPadsY ( ) const
inline

◆ 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 121 of file CbmFlesCanvasTools.cxx.

References fuNbPads, fvvsObjName, and GetNbObjsInPad().

Referenced by cbm::services::histserv::Application::PrepareCanvas(), and 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 142 of file CbmFlesCanvasTools.cxx.

References fuNbPads, fvvsOptions, and GetNbObjsInPad().

Referenced by cbm::services::histserv::Application::PrepareCanvas(), and CbmMqHistoServer::PrepareCanvas().

◆ GetTitle()

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

◆ ResizeFields()

void CanvasConfig::ResizeFields ( )
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().

◆ 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 202 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 165 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 183 of file CbmFlesCanvasTools.cxx.

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

Member Data Documentation

◆ fsName

std::string CanvasConfig::fsName
private

Definition at line 52 of file CbmFlesCanvasTools.h.

Referenced by GetName().

◆ fsTitle

std::string CanvasConfig::fsTitle
private

Definition at line 53 of file CbmFlesCanvasTools.h.

Referenced by GetTitle().

◆ fuNbPads

uint32_t CanvasConfig::fuNbPads
private

◆ fuNbPadsX

uint32_t CanvasConfig::fuNbPadsX
private

Definition at line 55 of file CbmFlesCanvasTools.h.

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

◆ fuNbPadsY

uint32_t CanvasConfig::fuNbPadsY
private

Definition at line 56 of file CbmFlesCanvasTools.h.

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

◆ fvbGridx

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

Definition at line 58 of file CbmFlesCanvasTools.h.

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

◆ fvbGridy

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

Definition at line 59 of file CbmFlesCanvasTools.h.

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

◆ fvbLogx

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

Definition at line 60 of file CbmFlesCanvasTools.h.

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

◆ fvbLogy

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

Definition at line 61 of file CbmFlesCanvasTools.h.

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

◆ fvbLogz

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

Definition at line 62 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 64 of file CbmFlesCanvasTools.h.

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


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