Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 = (1ULL << ( 8 )) , kActNone = (1ULL << ( 9 )) , kActThis = (1ULL << ( 10 )) , kActDaughters = (1ULL << ( 11 )) }
 
enum  EGeoOptimizationAtt { kUseBoundingBox = (1ULL << ( 16 )) , kUseVoxels = (1ULL << ( 17 )) , kUseGsord = (1ULL << ( 18 )) }
 
enum  EGeoSavePrimitiveAtt { kSavePrimitiveAtt = (1ULL << ( 19 )) , kSaveNodesAtt = (1ULL << ( 20 )) }
 
enum  EGeoVisibilityAtt {
  kVisOverride = (1ULL << ( 0 )) , kVisNone = (1ULL << ( 1 )) , kVisThis = (1ULL << ( 2 )) , kVisDaughters = (1ULL << ( 3 )) ,
  kVisOneLevel = (1ULL << ( 4 )) , kVisStreamed = (1ULL << ( 5 )) , kVisTouched = (1ULL << ( 6 )) , kVisOnScreen = (1ULL << ( 7 )) ,
  kVisContainers = (1ULL << ( 12 )) , kVisOnly = (1ULL << ( 13 )) , kVisBranch = (1ULL << ( 14 )) , kVisRaytrace = (1ULL << ( 15 ))
}
 

Public Member Functions

 TGeoAtt ()
 Default constructor.
 
 TGeoAtt (Option_t *vis_opt, Option_t *activity_opt="", Option_t *optimization_opt="")
 Constructor.
 
virtual ~TGeoAtt ()
 Destructor.
 
virtual TClassIsA () const
 
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.
 
void SetVisBranch ()
 Set branch type visibility.
 
virtual void SetVisContainers (Bool_t flag=kTRUE)
 Set branch type visibility.
 
void SetVisDaughters (Bool_t vis=kTRUE)
 Set visibility for the daughters.
 
virtual void SetVisibility (Bool_t vis=kTRUE)
 Set visibility for this object.
 
virtual void SetVisLeaves (Bool_t flag=kTRUE)
 Set branch type visibility.
 
virtual void SetVisOnly (Bool_t flag=kTRUE)
 Set branch type visibility.
 
void SetVisRaytrace (Bool_t flag=kTRUE)
 
void SetVisStreamed (Bool_t vis=kTRUE)
 Mark attributes as "streamed to file".
 
void SetVisTouched (Bool_t vis=kTRUE)
 Mark visualization attributes as "modified".
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
Bool_t TestAttBit (UInt_t f) const
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

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 19 of file TGeoAtt.h.

◆ EGeoActivityAtt

Enumerator
kActOverride 
kActNone 
kActThis 
kActDaughters 

Definition at line 38 of file TGeoAtt.h.

◆ EGeoOptimizationAtt

Enumerator
kUseBoundingBox 
kUseVoxels 
kUseGsord 

Definition at line 45 of file TGeoAtt.h.

◆ EGeoSavePrimitiveAtt

Enumerator
kSavePrimitiveAtt 
kSaveNodesAtt 

Definition at line 50 of file TGeoAtt.h.

◆ EGeoVisibilityAtt

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

Definition at line 23 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 47 of file TGeoAtt.cxx.

◆ ~TGeoAtt()

TGeoAtt::~TGeoAtt ( )
virtual

Destructor.

Definition at line 61 of file TGeoAtt.cxx.

Member Function Documentation

◆ Class()

static TClass * TGeoAtt::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGeoAtt::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGeoAtt::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 93 of file TGeoAtt.h.

◆ DeclFileName()

static const char * TGeoAtt::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 93 of file TGeoAtt.h.

◆ IsA()

virtual TClass * TGeoAtt::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Reimplemented in TGeoNode, TGeoNodeMatrix, TGeoNodeOffset, TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly, and TVirtualGeoTrack.

Definition at line 93 of file TGeoAtt.h.

◆ IsActive()

Bool_t TGeoAtt::IsActive ( ) const
inline

Definition at line 80 of file TGeoAtt.h.

◆ IsActiveDaughters()

Bool_t TGeoAtt::IsActiveDaughters ( ) const
inline

Definition at line 81 of file TGeoAtt.h.

◆ IsVisBranch()

Bool_t TGeoAtt::IsVisBranch ( ) const
inline

Definition at line 85 of file TGeoAtt.h.

◆ IsVisContainers()

Bool_t TGeoAtt::IsVisContainers ( ) const
inline

Definition at line 86 of file TGeoAtt.h.

◆ IsVisDaughters()

Bool_t TGeoAtt::IsVisDaughters ( ) const
inline

Definition at line 84 of file TGeoAtt.h.

◆ IsVisible()

Bool_t TGeoAtt::IsVisible ( ) const
inline

Definition at line 83 of file TGeoAtt.h.

◆ IsVisLeaves()

Bool_t TGeoAtt::IsVisLeaves ( ) const
inline

Definition at line 87 of file TGeoAtt.h.

◆ IsVisOnly()

Bool_t TGeoAtt::IsVisOnly ( ) const
inline

Definition at line 88 of file TGeoAtt.h.

◆ IsVisRaytrace()

Bool_t TGeoAtt::IsVisRaytrace ( ) const
inline

Definition at line 82 of file TGeoAtt.h.

◆ IsVisStreamed()

Bool_t TGeoAtt::IsVisStreamed ( ) const
inline

Definition at line 90 of file TGeoAtt.h.

◆ IsVisTouched()

Bool_t TGeoAtt::IsVisTouched ( ) const
inline

Definition at line 91 of file TGeoAtt.h.

◆ ResetAttBit()

void TGeoAtt::ResetAttBit ( UInt_t  f)
inline

Definition at line 63 of file TGeoAtt.h.

◆ SetActiveDaughters()

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

Definition at line 76 of file TGeoAtt.h.

◆ SetActivity()

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

Definition at line 75 of file TGeoAtt.h.

◆ SetAttBit() [1/2]

void TGeoAtt::SetAttBit ( UInt_t  f)
inline

Definition at line 61 of file TGeoAtt.h.

◆ SetAttBit() [2/2]

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

Definition at line 62 of file TGeoAtt.h.

◆ SetOptimization()

void TGeoAtt::SetOptimization ( Option_t option)

Set optimization flags.

Definition at line 148 of file TGeoAtt.cxx.

◆ SetVisBranch()

void TGeoAtt::SetVisBranch ( )

Set branch type visibility.

Definition at line 66 of file TGeoAtt.cxx.

◆ SetVisContainers()

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

Set branch type visibility.

Reimplemented in TGeoVolume.

Definition at line 76 of file TGeoAtt.cxx.

◆ SetVisDaughters()

void TGeoAtt::SetVisDaughters ( Bool_t  vis = kTRUE)

Set visibility for the daughters.

Definition at line 116 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 104 of file TGeoAtt.cxx.

◆ SetVisLeaves()

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

Set branch type visibility.

Reimplemented in TGeoVolume.

Definition at line 84 of file TGeoAtt.cxx.

◆ SetVisOnly()

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

Set branch type visibility.

Reimplemented in TGeoVolume.

Definition at line 94 of file TGeoAtt.cxx.

◆ SetVisRaytrace()

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

Definition at line 66 of file TGeoAtt.h.

◆ SetVisStreamed()

void TGeoAtt::SetVisStreamed ( Bool_t  vis = kTRUE)

Mark attributes as "streamed to file".

Definition at line 128 of file TGeoAtt.cxx.

◆ SetVisTouched()

void TGeoAtt::SetVisTouched ( Bool_t  vis = kTRUE)

Mark visualization attributes as "modified".

Definition at line 138 of file TGeoAtt.cxx.

◆ Streamer()

virtual void TGeoAtt::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void TGeoAtt::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 93 of file TGeoAtt.h.

◆ TestAttBit()

Bool_t TGeoAtt::TestAttBit ( UInt_t  f) const
inline

Definition at line 64 of file TGeoAtt.h.

Member Data Documentation

◆ fGeoAtt

UInt_t TGeoAtt::fGeoAtt
protected

Definition at line 53 of file TGeoAtt.h.

Libraries for TGeoAtt:

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