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