ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4VisCommandsGeometrySet.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4VisCommandsGeometrySet.hh
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 
28 // /vis/geometry commands - John Allison 31st January 2006
29 
30 #ifndef G4VISCOMMANDSGEOMETRYSET_HH
31 #define G4VISCOMMANDSGEOMETRYSET_HH
32 
33 #include "G4VisCommandsGeometry.hh"
34 
35 class G4UIcommand;
36 class G4VisAttributes;
37 
39 public:
41  virtual void operator()(G4VisAttributes*) const = 0;
42 };
43 
46 public:
49  (const G4Colour& colour):
50  fColour(colour) {}
51  void operator()
52  (G4VisAttributes* visAtts) const
53  {visAtts->SetColour(fColour);}
54 private:
55  const G4Colour& fColour;
56 };
57 
60 public:
63  (G4bool daughtersInvisible):
64  fDaughtersInvisible(daughtersInvisible) {}
65  void operator()
66  (G4VisAttributes* visAtts) const
67  {visAtts->SetDaughtersInvisible(fDaughtersInvisible);}
68 private:
70 };
71 
74 public:
77  (G4bool force):
78  fForce(force) {}
79  void operator()
80  (G4VisAttributes* visAtts) const
81  {visAtts->SetForceAuxEdgeVisible(fForce);}
82 private:
84 };
85 
88 public:
91  (G4int lineSegmentsPerCircle):
92  fLineSegmentsPerCircle(lineSegmentsPerCircle) {}
93  void operator()
94  (G4VisAttributes* visAtts) const
95  {visAtts->SetForceLineSegmentsPerCircle(fLineSegmentsPerCircle);}
96 private:
98 };
99 
102 public:
105  (G4bool force):
106  fForce(force) {}
107  void operator()
108  (G4VisAttributes* visAtts) const
109  {visAtts->SetForceSolid(fForce);}
110 private:
112 };
113 
116 public:
119  (G4bool force):
120  fForce(force) {}
121  void operator()
122  (G4VisAttributes* visAtts) const
123  {visAtts->SetForceWireframe(fForce);}
124 private:
126 };
127 
130 public:
134  fLineStyle(lineStyle) {}
135  void operator()
136  (G4VisAttributes* visAtts) const
137  {visAtts->SetLineStyle(fLineStyle);}
138 private:
140 };
141 
144 public:
147  (G4double lineWidth):
148  fLineWidth(lineWidth) {}
149  void operator()
150  (G4VisAttributes* visAtts) const
151  {visAtts->SetLineWidth(fLineWidth);}
152 private:
154 };
155 
158 public:
162  fVisibility(visibility) {}
163  void operator()
164  (G4VisAttributes* visAtts) const
165  {visAtts->SetVisibility(fVisibility);}
166 private:
168 };
169 
171 protected:
172  void Set(G4String logVolName, const G4VVisCommandGeometrySetFunction&,
173  G4int requestedDepth);
175  G4int depth, G4int requestedDepth);
176 };
177 
179 public:
183  void SetNewValue (G4UIcommand* command, G4String newValue);
184 private:
188 };
189 
191  public G4VVisCommandGeometrySet {
192 public:
196  void SetNewValue (G4UIcommand* command, G4String newValue);
197 private:
203 };
204 
206  public G4VVisCommandGeometrySet {
207 public:
211  void SetNewValue (G4UIcommand* command, G4String newValue);
212 private:
218 };
219 
221  public G4VVisCommandGeometrySet {
222 public:
226  void SetNewValue (G4UIcommand* command, G4String newValue);
227 private:
233 };
234 
236  public G4VVisCommandGeometrySet {
237 public:
241  void SetNewValue (G4UIcommand* command, G4String newValue);
242 private:
248 };
249 
251  public G4VVisCommandGeometrySet {
252 public:
256  void SetNewValue (G4UIcommand* command, G4String newValue);
257 private:
263 };
264 
266  public G4VVisCommandGeometrySet {
267 public:
271  void SetNewValue (G4UIcommand* command, G4String newValue);
272 private:
278 };
279 
281  public G4VVisCommandGeometrySet {
282 public:
286  void SetNewValue (G4UIcommand* command, G4String newValue);
287 private:
293 };
294 
296 public:
300  void SetNewValue (G4UIcommand* command, G4String newValue);
302 private:
306 };
307 
308 #endif