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

◆ NodeInfo() [2/2]

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

Member Function Documentation

◆ copyColorTransparency()

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

Definition at line 77 of file FWGeometryTableManagerBase.h.

References m_color, m_node, m_transparency, and x.

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  }

◆ name()

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

◆ resetBit()

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

Definition at line 69 of file FWGeometryTableManagerBase.h.

References f, and m_flags.

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

69 { m_flags &= ~f; }
double f[11][100]

◆ setBit()

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

Definition at line 68 of file FWGeometryTableManagerBase.h.

References f, and m_flags.

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

68 { m_flags |= f; }
double f[11][100]

◆ setBitVal()

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

Definition at line 70 of file FWGeometryTableManagerBase.h.

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

Referenced by FWGeometryTableManager::loadGeometry().

◆ switchBit()

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

◆ testBit()

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

Definition at line 72 of file FWGeometryTableManagerBase.h.

References f, and m_flags.

Referenced by switchBit().

72 { return (m_flags & f) == f; }
double f[11][100]

◆ testBitAny()

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

Definition at line 73 of file FWGeometryTableManagerBase.h.

References f, and m_flags.

73 { return (m_flags & f) != 0; }
double f[11][100]

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