CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
FWGeometryTableManagerBase::NodeInfo Struct Reference

#include <FWGeometryTableManagerBase.h>

Public Member Functions

void copyColorTransparency (const NodeInfo &x)
 
const char * name () const
 
 NodeInfo ()
 
 NodeInfo (TGeoNode *n, Int_t p, Color_t col, Char_t l, UChar_t f=kVisNodeSelf|kVisNodeChld)
 
void resetBit (UChar_t f)
 
void setBit (UChar_t f)
 
void setBitVal (UChar_t f, bool x)
 
void switchBit (UChar_t f)
 
bool testBit (UChar_t f) const
 
bool testBitAny (UChar_t f) const
 

Public Attributes

Color_t m_color
 
UChar_t m_flags
 
UChar_t m_level
 
TGeoNode * m_node
 
Int_t m_parent
 
UChar_t m_transparency
 

Detailed Description

Definition at line 52 of file FWGeometryTableManagerBase.h.

Constructor & Destructor Documentation

◆ NodeInfo() [1/2]

FWGeometryTableManagerBase::NodeInfo::NodeInfo ( )
inline

Definition at line 53 of file FWGeometryTableManagerBase.h.

53 : m_node(nullptr), m_parent(-1), m_color(0), m_level(-1), m_flags(kVisNodeSelf | kVisNodeChld) {}

◆ NodeInfo() [2/2]

FWGeometryTableManagerBase::NodeInfo::NodeInfo ( TGeoNode *  n,
Int_t  p,
Color_t  col,
Char_t  l,
UChar_t  f = kVisNodeSelf | kVisNodeChld 
)
inline

Definition at line 55 of file FWGeometryTableManagerBase.h.

56  : m_node(n), m_parent(p), m_color(col), m_level(l), m_flags(f) {}

Member Function Documentation

◆ copyColorTransparency()

void FWGeometryTableManagerBase::NodeInfo::copyColorTransparency ( const NodeInfo x)
inline

Definition at line 77 of file FWGeometryTableManagerBase.h.

77  {
78  m_color = x.m_color;
79  m_transparency = x.m_transparency;
80  if (m_node->GetVolume()) {
81  m_node->GetVolume()->SetLineColor(x.m_color);
82  m_node->GetVolume()->SetTransparency(x.m_transparency);
83  }
84  }

References m_color, m_node, m_transparency, and x.

◆ name()

const char * FWGeometryTableManagerBase::NodeInfo::name ( void  ) const

Definition at line 39 of file FWGeometryTableManagerBase.cc.

39 { return m_node->GetName(); }

References m_node.

Referenced by config.CFG::__str__(), validation.Sample::digest(), and VIDSelectorBase.VIDSelectorBase::initialize().

◆ resetBit()

void FWGeometryTableManagerBase::NodeInfo::resetBit ( UChar_t  f)
inline

Definition at line 69 of file FWGeometryTableManagerBase.h.

69 { m_flags &= ~f; }

References f, and m_flags.

Referenced by FWOverlapTableManager::importOverlaps(), setBitVal(), and switchBit().

◆ setBit()

void FWGeometryTableManagerBase::NodeInfo::setBit ( UChar_t  f)
inline

Definition at line 68 of file FWGeometryTableManagerBase.h.

68 { m_flags |= f; }

References f, and m_flags.

Referenced by setBitVal(), FWGeometryTableViewBase::setColumnSelected(), and switchBit().

◆ setBitVal()

void FWGeometryTableManagerBase::NodeInfo::setBitVal ( UChar_t  f,
bool  x 
)
inline

Definition at line 70 of file FWGeometryTableManagerBase.h.

70 { x ? setBit(f) : resetBit(f); }

References f, resetBit(), setBit(), and x.

Referenced by FWGeometryTableManager::loadGeometry().

◆ switchBit()

void FWGeometryTableManagerBase::NodeInfo::switchBit ( UChar_t  f)
inline

Definition at line 75 of file FWGeometryTableManagerBase.h.

75 { testBit(f) ? resetBit(f) : setBit(f); }

References f, resetBit(), setBit(), and testBit().

Referenced by FWGeometryTableViewBase::cellClicked().

◆ testBit()

bool FWGeometryTableManagerBase::NodeInfo::testBit ( UChar_t  f) const
inline

Definition at line 72 of file FWGeometryTableManagerBase.h.

72 { return (m_flags & f) == f; }

References f, and m_flags.

Referenced by switchBit().

◆ testBitAny()

bool FWGeometryTableManagerBase::NodeInfo::testBitAny ( UChar_t  f) const
inline

Definition at line 73 of file FWGeometryTableManagerBase.h.

73 { return (m_flags & f) != 0; }

References f, and m_flags.

Member Data Documentation

◆ m_color

Color_t FWGeometryTableManagerBase::NodeInfo::m_color

◆ m_flags

UChar_t FWGeometryTableManagerBase::NodeInfo::m_flags

Definition at line 62 of file FWGeometryTableManagerBase.h.

Referenced by resetBit(), setBit(), testBit(), and testBitAny().

◆ m_level

UChar_t FWGeometryTableManagerBase::NodeInfo::m_level

◆ m_node

TGeoNode* FWGeometryTableManagerBase::NodeInfo::m_node

◆ m_parent

Int_t FWGeometryTableManagerBase::NodeInfo::m_parent

◆ m_transparency

UChar_t FWGeometryTableManagerBase::NodeInfo::m_transparency
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
cuy.col
col
Definition: cuy.py:1010
FWGeometryTableManagerBase::NodeInfo::m_parent
Int_t m_parent
Definition: FWGeometryTableManagerBase.h:59
DDAxes::x
FWGeometryTableManagerBase::NodeInfo::m_color
Color_t m_color
Definition: FWGeometryTableManagerBase.h:60
FWGeometryTableManagerBase::NodeInfo::m_node
TGeoNode * m_node
Definition: FWGeometryTableManagerBase.h:58
FWGeometryTableManagerBase::kVisNodeSelf
Definition: FWGeometryTableManagerBase.h:45
FWGeometryTableManagerBase::NodeInfo::m_level
UChar_t m_level
Definition: FWGeometryTableManagerBase.h:61
FWGeometryTableManagerBase::NodeInfo::resetBit
void resetBit(UChar_t f)
Definition: FWGeometryTableManagerBase.h:69
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:193
FWGeometryTableManagerBase::NodeInfo::testBit
bool testBit(UChar_t f) const
Definition: FWGeometryTableManagerBase.h:72
FWGeometryTableManagerBase::kVisNodeChld
Definition: FWGeometryTableManagerBase.h:46
FWGeometryTableManagerBase::NodeInfo::setBit
void setBit(UChar_t f)
Definition: FWGeometryTableManagerBase.h:68
FWGeometryTableManagerBase::NodeInfo::m_transparency
UChar_t m_transparency
Definition: FWGeometryTableManagerBase.h:63
FWGeometryTableManagerBase::NodeInfo::m_flags
UChar_t m_flags
Definition: FWGeometryTableManagerBase.h:62