Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGeoAtt.cxx
Go to the documentation of this file.
1// @(#)root/geom:$Id$
2// Author: Andrei Gheata 01/11/01
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12/** \class TGeoAtt
13\ingroup Geometry_classes
14
15Visualization and tracking attributes for volumes and nodes.
16
17The TGeoAtt class is an utility for volume/node visibility and tracking
18activity. By default the attributes are set to visible/active
19*/
20
21#include "TGeoAtt.h"
22
23#include "TGeoManager.h"
24#include "Rtypes.h"
25
27
28////////////////////////////////////////////////////////////////////////////////
29/// Default constructor
30
32{
33 fGeoAtt = 0;
34 if (!gGeoManager)
35 return;
43}
44////////////////////////////////////////////////////////////////////////////////
45/// Constructor
46
47TGeoAtt::TGeoAtt(Option_t * /*vis_opt*/, Option_t * /*activity_opt*/, Option_t * /*optimization_opt*/)
48{
49 fGeoAtt = 0;
57}
58////////////////////////////////////////////////////////////////////////////////
59/// Destructor
60
62
63////////////////////////////////////////////////////////////////////////////////
64/// Set branch type visibility.
65
67{
71}
72
73////////////////////////////////////////////////////////////////////////////////
74/// Set branch type visibility.
75
77{
78 SetVisLeaves(!flag);
79}
80
81////////////////////////////////////////////////////////////////////////////////
82/// Set branch type visibility.
83
85{
89}
90
91////////////////////////////////////////////////////////////////////////////////
92/// Set branch type visibility.
93
95{
98 SetAttBit(kVisOnly, flag);
99}
100
101////////////////////////////////////////////////////////////////////////////////
102/// Set visibility for this object
103
105{
106 if (vis)
108 else
112}
113////////////////////////////////////////////////////////////////////////////////
114/// Set visibility for the daughters.
115
117{
118 if (vis)
120 else
124}
125////////////////////////////////////////////////////////////////////////////////
126/// Mark attributes as "streamed to file".
127
129{
130 if (vis)
132 else
134}
135////////////////////////////////////////////////////////////////////////////////
136/// Mark visualization attributes as "modified".
137
139{
140 if (vis)
142 else
144}
145////////////////////////////////////////////////////////////////////////////////
146/// Set optimization flags.
147
constexpr Bool_t kFALSE
Definition RtypesCore.h:101
constexpr Bool_t kTRUE
Definition RtypesCore.h:100
const char Option_t
Definition RtypesCore.h:66
#define ClassImp(name)
Definition Rtypes.h:377
R__EXTERN TGeoManager * gGeoManager
Visualization and tracking attributes for volumes and nodes.
Definition TGeoAtt.h:17
virtual void SetVisOnly(Bool_t flag=kTRUE)
Set branch type visibility.
Definition TGeoAtt.cxx:94
void SetActivity(Bool_t flag=kTRUE)
Definition TGeoAtt.h:75
virtual void SetVisLeaves(Bool_t flag=kTRUE)
Set branch type visibility.
Definition TGeoAtt.cxx:84
virtual ~TGeoAtt()
Destructor.
Definition TGeoAtt.cxx:61
void SetVisStreamed(Bool_t vis=kTRUE)
Mark attributes as "streamed to file".
Definition TGeoAtt.cxx:128
void SetVisDaughters(Bool_t vis=kTRUE)
Set visibility for the daughters.
Definition TGeoAtt.cxx:116
@ kVisThis
Definition TGeoAtt.h:26
@ kVisContainers
Definition TGeoAtt.h:32
@ kVisOnly
Definition TGeoAtt.h:33
@ kVisDaughters
Definition TGeoAtt.h:27
@ kVisTouched
Definition TGeoAtt.h:30
@ kVisBranch
Definition TGeoAtt.h:34
@ kVisStreamed
Definition TGeoAtt.h:29
TGeoAtt()
Default constructor.
Definition TGeoAtt.cxx:31
void SetActiveDaughters(Bool_t flag=kTRUE)
Definition TGeoAtt.h:76
void ResetAttBit(UInt_t f)
Definition TGeoAtt.h:63
virtual void SetVisibility(Bool_t vis=kTRUE)
Set visibility for this object.
Definition TGeoAtt.cxx:104
UInt_t fGeoAtt
Definition TGeoAtt.h:53
void SetOptimization(Option_t *option)
Set optimization flags.
Definition TGeoAtt.cxx:148
void SetAttBit(UInt_t f)
Definition TGeoAtt.h:61
void SetVisTouched(Bool_t vis=kTRUE)
Mark visualization attributes as "modified".
Definition TGeoAtt.cxx:138
virtual void SetVisContainers(Bool_t flag=kTRUE)
Set branch type visibility.
Definition TGeoAtt.cxx:76
void SetVisBranch()
Set branch type visibility.
Definition TGeoAtt.cxx:66
Bool_t IsClosed() const