Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4VisCommandsGeometrySet.hh
Go to the documentation of this file.
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 // $Id: G4VisCommandsGeometrySet.hh 66373 2012-12-18 09:41:34Z gcosmo $
28 
29 // /vis/geometry commands - John Allison 31st January 2006
30 
31 #ifndef G4VISCOMMANDSGEOMETRYSET_HH
32 #define G4VISCOMMANDSGEOMETRYSET_HH
33 
34 #include "G4VisCommandsGeometry.hh"
35 
36 class G4UIcommand;
37 class G4VisAttributes;
38 
40 public:
42  virtual void operator()(G4VisAttributes*) const = 0;
43 };
44 
47 public:
50  (const G4Colour& colour):
51  fColour(colour) {}
52  void operator()
53  (G4VisAttributes* visAtts) const
54  {visAtts->SetColour(fColour);}
55 private:
56  const G4Colour& fColour;
57 };
58 
61 public:
64  (G4bool daughtersInvisible):
65  fDaughtersInvisible(daughtersInvisible) {}
66  void operator()
67  (G4VisAttributes* visAtts) const
68  {visAtts->SetDaughtersInvisible(fDaughtersInvisible);}
69 private:
70  G4bool fDaughtersInvisible;
71 };
72 
75 public:
78  (G4bool forceAuxEdgeVisible):
79  fForceAuxEdgeVisible(forceAuxEdgeVisible) {}
80  void operator()
81  (G4VisAttributes* visAtts) const
82  {visAtts->SetForceAuxEdgeVisible(fForceAuxEdgeVisible);}
83 private:
84  G4bool fForceAuxEdgeVisible;
85 };
86 
89 public:
92  (G4int lineSegmentsPerCircle):
93  fLineSegmentsPerCircle(lineSegmentsPerCircle) {}
94  void operator()
95  (G4VisAttributes* visAtts) const
96  {visAtts->SetForceLineSegmentsPerCircle(fLineSegmentsPerCircle);}
97 private:
98  G4int fLineSegmentsPerCircle;
99 };
100 
103 public:
106  (G4bool forceSolid):
107  fForceSolid(forceSolid) {}
108  void operator()
109  (G4VisAttributes* visAtts) const
110  {visAtts->SetForceSolid(fForceSolid);}
111 private:
112  G4bool fForceSolid;
113 };
114 
117 public:
120  (G4bool forceWireframe):
121  fForceWireframe(forceWireframe) {}
122  void operator()
123  (G4VisAttributes* visAtts) const
124  {visAtts->SetForceWireframe(fForceWireframe);}
125 private:
126  G4bool fForceWireframe;
127 };
128 
131 public:
135  fLineStyle(lineStyle) {}
136  void operator()
137  (G4VisAttributes* visAtts) const
138  {visAtts->SetLineStyle(fLineStyle);}
139 private:
140  G4VisAttributes::LineStyle fLineStyle;
141 };
142 
145 public:
148  (G4double lineWidth):
149  fLineWidth(lineWidth) {}
150  void operator()
151  (G4VisAttributes* visAtts) const
152  {visAtts->SetLineWidth(fLineWidth);}
153 private:
154  G4double fLineWidth;
155 };
156 
159 public:
162  (G4bool visibility):
163  fVisibility(visibility) {}
164  void operator()
165  (G4VisAttributes* visAtts) const
166  {visAtts->SetVisibility(fVisibility);}
167 private:
168  G4bool fVisibility;
169 };
170 
172 protected:
173  void Set(G4String logVolName, const G4VVisCommandGeometrySetFunction&,
174  G4int requestedDepth);
176  G4int depth, G4int requestedDepth);
177 };
178 
180 public:
184  void SetNewValue (G4UIcommand* command, G4String newValue);
185 private:
188  G4UIcommand* fpCommand;
189 };
190 
192  public G4VVisCommandGeometrySet {
193 public:
197  void SetNewValue (G4UIcommand* command, G4String newValue);
198 private:
203  G4UIcommand* fpCommand;
204 };
205 
207  public G4VVisCommandGeometrySet {
208 public:
212  void SetNewValue (G4UIcommand* command, G4String newValue);
213 private:
218  G4UIcommand* fpCommand;
219 };
220 
222  public G4VVisCommandGeometrySet {
223 public:
227  void SetNewValue (G4UIcommand* command, G4String newValue);
228 private:
233  G4UIcommand* fpCommand;
234 };
235 
237  public G4VVisCommandGeometrySet {
238 public:
242  void SetNewValue (G4UIcommand* command, G4String newValue);
243 private:
248  G4UIcommand* fpCommand;
249 };
250 
252  public G4VVisCommandGeometrySet {
253 public:
257  void SetNewValue (G4UIcommand* command, G4String newValue);
258 private:
263  G4UIcommand* fpCommand;
264 };
265 
267  public G4VVisCommandGeometrySet {
268 public:
272  void SetNewValue (G4UIcommand* command, G4String newValue);
273 private:
278  G4UIcommand* fpCommand;
279 };
280 
282  public G4VVisCommandGeometrySet {
283 public:
287  void SetNewValue (G4UIcommand* command, G4String newValue);
288 private:
293  G4UIcommand* fpCommand;
294 };
295 
297 public:
301  void SetNewValue (G4UIcommand* command, G4String newValue);
303 private:
306  G4UIcommand* fpCommand;
307 };
308 
309 #endif
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandGeometrySetColourFunction(const G4Colour &colour)
void Set(G4String logVolName, const G4VVisCommandGeometrySetFunction &, G4int requestedDepth)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetNewValueOnLV(G4LogicalVolume *pLV, G4int, G4bool)
int G4int
Definition: G4Types.hh:78
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandGeometrySetLineStyleFunction(G4VisAttributes::LineStyle lineStyle)
void SetNewValue(G4UIcommand *command, G4String newValue)
bool G4bool
Definition: G4Types.hh:79
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandGeometrySetForceAuxEdgeVisibleFunction(G4bool forceAuxEdgeVisible)
void SetLVVisAtts(G4LogicalVolume *, const G4VVisCommandGeometrySetFunction &, G4int depth, G4int requestedDepth)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
G4String GetCurrentValue(G4UIcommand *command)
double G4double
Definition: G4Types.hh:76
G4VisCommandGeometrySetDaughtersInvisibleFunction(G4bool daughtersInvisible)
G4String GetCurrentValue(G4UIcommand *command)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandGeometrySetForceLineSegmentsPerCircleFunction(G4int lineSegmentsPerCircle)
virtual void operator()(G4VisAttributes *) const =0