Logo ROOT  
Reference Guide
TGeoAtt Class Reference

Visualization and tracking attributes for volumes and nodes.

The TGeoAtt class is an utility for volume/node visibility and tracking activity. By default the attributes are set to visible/active

Definition at line 17 of file TGeoAtt.h.

Public Types

enum  { kBitMask = 0x00ffffff }
 
enum  EGeoActivityAtt { kActOverride = BIT(8) , kActNone = BIT(9) , kActThis = BIT(10) , kActDaughters = BIT(11) }
 
enum  EGeoOptimizationAtt { kUseBoundingBox = BIT(16) , kUseVoxels = BIT(17) , kUseGsord = BIT(18) }
 
enum  EGeoSavePrimitiveAtt { kSavePrimitiveAtt = BIT(19) , kSaveNodesAtt = BIT(20) }
 
enum  EGeoVisibilityAtt {
  kVisOverride = BIT(0) , kVisNone = BIT(1) , kVisThis = BIT(2) , kVisDaughters = BIT(3) ,
  kVisOneLevel = BIT(4) , kVisStreamed = BIT(5) , kVisTouched = BIT(6) , kVisOnScreen = BIT(7) ,
  kVisContainers = BIT(12) , kVisOnly = BIT(13) , kVisBranch = BIT(14) , kVisRaytrace = BIT(15)
}
 

Public Member Functions

 TGeoAtt ()
 Default constructor. More...
 
 TGeoAtt (Option_t *vis_opt, Option_t *activity_opt="", Option_t *optimization_opt="")
 Constructor. More...
 
virtual ~TGeoAtt ()
 Destructor. More...
 
Bool_t IsActive () const
 
Bool_t IsActiveDaughters () const
 
Bool_t IsVisBranch () const
 
Bool_t IsVisContainers () const
 
Bool_t IsVisDaughters () const
 
Bool_t IsVisible () const
 
Bool_t IsVisLeaves () const
 
Bool_t IsVisOnly () const
 
Bool_t IsVisRaytrace () const
 
Bool_t IsVisStreamed () const
 
Bool_t IsVisTouched () const
 
void ResetAttBit (UInt_t f)
 
void SetActiveDaughters (Bool_t flag=kTRUE)
 
void SetActivity (Bool_t flag=kTRUE)
 
void SetAttBit (UInt_t f)
 
void SetAttBit (UInt_t f, Bool_t set)
 
void SetOptimization (Option_t *option)
 Set optimization flags. More...
 
void SetVisBranch ()
 Set branch type visibility. More...
 
virtual void SetVisContainers (Bool_t flag=kTRUE)
 Set branch type visibility. More...
 
void SetVisDaughters (Bool_t vis=kTRUE)
 Set visibility for the daughters. More...
 
virtual void SetVisibility (Bool_t vis=kTRUE)
 Set visibility for this object. More...
 
virtual void SetVisLeaves (Bool_t flag=kTRUE)
 Set branch type visibility. More...
 
virtual void SetVisOnly (Bool_t flag=kTRUE)
 Set branch type visibility. More...
 
void SetVisRaytrace (Bool_t flag=kTRUE)
 
void SetVisStreamed (Bool_t vis=kTRUE)
 Mark attributes as "streamed to file". More...
 
void SetVisTouched (Bool_t vis=kTRUE)
 Mark visualization attributes as "modified". More...
 
Bool_t TestAttBit (UInt_t f) const
 

Protected Attributes

UInt_t fGeoAtt
 

#include <TGeoAtt.h>

Inheritance diagram for TGeoAtt:
[legend]

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kBitMask 

Definition at line 20 of file TGeoAtt.h.

◆ EGeoActivityAtt

Enumerator
kActOverride 
kActNone 
kActThis 
kActDaughters 

Definition at line 39 of file TGeoAtt.h.

◆ EGeoOptimizationAtt

Enumerator
kUseBoundingBox 
kUseVoxels 
kUseGsord 

Definition at line 46 of file TGeoAtt.h.

◆ EGeoSavePrimitiveAtt

Enumerator
kSavePrimitiveAtt 
kSaveNodesAtt 

Definition at line 51 of file TGeoAtt.h.

◆ EGeoVisibilityAtt

Enumerator
kVisOverride 
kVisNone 
kVisThis 
kVisDaughters 
kVisOneLevel 
kVisStreamed 
kVisTouched 
kVisOnScreen 
kVisContainers 
kVisOnly 
kVisBranch 
kVisRaytrace 

Definition at line 24 of file TGeoAtt.h.

Constructor & Destructor Documentation

◆ TGeoAtt() [1/2]

TGeoAtt::TGeoAtt ( )

Default constructor.

Definition at line 31 of file TGeoAtt.cxx.

◆ TGeoAtt() [2/2]

TGeoAtt::TGeoAtt ( Option_t vis_opt,
Option_t activity_opt = "",
Option_t optimization_opt = "" 
)

Constructor.

Definition at line 46 of file TGeoAtt.cxx.

◆ ~TGeoAtt()

TGeoAtt::~TGeoAtt ( )
virtual

Destructor.

Definition at line 60 of file TGeoAtt.cxx.

Member Function Documentation

◆ IsActive()

Bool_t TGeoAtt::IsActive ( ) const
inline

Definition at line 85 of file TGeoAtt.h.

◆ IsActiveDaughters()

Bool_t TGeoAtt::IsActiveDaughters ( ) const
inline

Definition at line 86 of file TGeoAtt.h.

◆ IsVisBranch()

Bool_t TGeoAtt::IsVisBranch ( ) const
inline

Definition at line 90 of file TGeoAtt.h.

◆ IsVisContainers()

Bool_t TGeoAtt::IsVisContainers ( ) const
inline

Definition at line 91 of file TGeoAtt.h.

◆ IsVisDaughters()

Bool_t TGeoAtt::IsVisDaughters ( ) const
inline

Definition at line 89 of file TGeoAtt.h.

◆ IsVisible()

Bool_t TGeoAtt::IsVisible ( ) const
inline

Definition at line 88 of file TGeoAtt.h.

◆ IsVisLeaves()

Bool_t TGeoAtt::IsVisLeaves ( ) const
inline

Definition at line 92 of file TGeoAtt.h.

◆ IsVisOnly()

Bool_t TGeoAtt::IsVisOnly ( ) const
inline

Definition at line 93 of file TGeoAtt.h.

◆ IsVisRaytrace()

Bool_t TGeoAtt::IsVisRaytrace ( ) const
inline

Definition at line 87 of file TGeoAtt.h.

◆ IsVisStreamed()

Bool_t TGeoAtt::IsVisStreamed ( ) const
inline

Definition at line 95 of file TGeoAtt.h.

◆ IsVisTouched()

Bool_t TGeoAtt::IsVisTouched ( ) const
inline

Definition at line 96 of file TGeoAtt.h.

◆ ResetAttBit()

void TGeoAtt::ResetAttBit ( UInt_t  f)
inline

Definition at line 67 of file TGeoAtt.h.

◆ SetActiveDaughters()

void TGeoAtt::SetActiveDaughters ( Bool_t  flag = kTRUE)
inline

Definition at line 80 of file TGeoAtt.h.

◆ SetActivity()

void TGeoAtt::SetActivity ( Bool_t  flag = kTRUE)
inline

Definition at line 79 of file TGeoAtt.h.

◆ SetAttBit() [1/2]

void TGeoAtt::SetAttBit ( UInt_t  f)
inline

Definition at line 65 of file TGeoAtt.h.

◆ SetAttBit() [2/2]

void TGeoAtt::SetAttBit ( UInt_t  f,
Bool_t  set 
)
inline

Definition at line 66 of file TGeoAtt.h.

◆ SetOptimization()

void TGeoAtt::SetOptimization ( Option_t option)

Set optimization flags.

Definition at line 139 of file TGeoAtt.cxx.

◆ SetVisBranch()

void TGeoAtt::SetVisBranch ( )

Set branch type visibility.

Definition at line 67 of file TGeoAtt.cxx.

◆ SetVisContainers()

void TGeoAtt::SetVisContainers ( Bool_t  flag = kTRUE)
virtual

Set branch type visibility.

Reimplemented in TGeoVolume.

Definition at line 77 of file TGeoAtt.cxx.

◆ SetVisDaughters()

void TGeoAtt::SetVisDaughters ( Bool_t  vis = kTRUE)

Set visibility for the daughters.

Definition at line 114 of file TGeoAtt.cxx.

◆ SetVisibility()

void TGeoAtt::SetVisibility ( Bool_t  vis = kTRUE)
virtual

Set visibility for this object.

Reimplemented in TGeoNode, TGeoVolume, and TGeoVolumeMulti.

Definition at line 105 of file TGeoAtt.cxx.

◆ SetVisLeaves()

void TGeoAtt::SetVisLeaves ( Bool_t  flag = kTRUE)
virtual

Set branch type visibility.

Reimplemented in TGeoVolume.

Definition at line 85 of file TGeoAtt.cxx.

◆ SetVisOnly()

void TGeoAtt::SetVisOnly ( Bool_t  flag = kTRUE)
virtual

Set branch type visibility.

Reimplemented in TGeoVolume.

Definition at line 95 of file TGeoAtt.cxx.

◆ SetVisRaytrace()

void TGeoAtt::SetVisRaytrace ( Bool_t  flag = kTRUE)
inline

Definition at line 70 of file TGeoAtt.h.

◆ SetVisStreamed()

void TGeoAtt::SetVisStreamed ( Bool_t  vis = kTRUE)

Mark attributes as "streamed to file".

Definition at line 123 of file TGeoAtt.cxx.

◆ SetVisTouched()

void TGeoAtt::SetVisTouched ( Bool_t  vis = kTRUE)

Mark visualization attributes as "modified".

Definition at line 131 of file TGeoAtt.cxx.

◆ TestAttBit()

Bool_t TGeoAtt::TestAttBit ( UInt_t  f) const
inline

Definition at line 68 of file TGeoAtt.h.

Member Data Documentation

◆ fGeoAtt

UInt_t TGeoAtt::fGeoAtt
protected

Definition at line 57 of file TGeoAtt.h.


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