Geant4 10.7.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
28// /vis/geometry commands - John Allison 31st January 2006
29
30#ifndef G4VISCOMMANDSGEOMETRYSET_HH
31#define G4VISCOMMANDSGEOMETRYSET_HH
32
34
35class G4UIcommand;
36class G4VisAttributes;
37
39public:
41 virtual void operator()(G4VisAttributes*) const = 0;
42};
43
46public:
49 (const G4Colour& colour):
50 fColour(colour) {}
51 void operator()
52 (G4VisAttributes* visAtts) const
53 {visAtts->SetColour(fColour);}
54private:
55 const G4Colour& fColour;
56};
57
60public:
63 (G4bool daughtersInvisible):
64 fDaughtersInvisible(daughtersInvisible) {}
65 void operator()
66 (G4VisAttributes* visAtts) const
67 {visAtts->SetDaughtersInvisible(fDaughtersInvisible);}
68private:
69 G4bool fDaughtersInvisible;
70};
71
74public:
77 (G4bool force):
78 fForce(force) {}
79 void operator()
80 (G4VisAttributes* visAtts) const
81 {visAtts->SetForceAuxEdgeVisible(fForce);}
82private:
83 G4bool fForce;
84};
85
88public:
91 (G4bool force, G4int nPoints)
92 :fForce(force)
93 ,fNPoints(nPoints) {}
94 void operator() (G4VisAttributes* visAtts) const {
95 visAtts->SetForceCloud(fForce);
96 visAtts->SetForceNumberOfCloudPoints(fNPoints);
97 }
98private:
99 G4bool fForce;
100 G4int fNPoints;
101};
102
105public:
108 (G4int lineSegmentsPerCircle):
109 fLineSegmentsPerCircle(lineSegmentsPerCircle) {}
110 void operator()
111 (G4VisAttributes* visAtts) const
112 {visAtts->SetForceLineSegmentsPerCircle(fLineSegmentsPerCircle);}
113private:
114 G4int fLineSegmentsPerCircle;
115};
116
119public:
122 (G4bool force):
123 fForce(force) {}
124 void operator()
125 (G4VisAttributes* visAtts) const
126 {visAtts->SetForceSolid(fForce);}
127private:
128 G4bool fForce;
129};
130
133public:
136 (G4bool force):
137 fForce(force) {}
138 void operator()
139 (G4VisAttributes* visAtts) const
140 {visAtts->SetForceWireframe(fForce);}
141private:
142 G4bool fForce;
143};
144
147public:
150 (G4VisAttributes::LineStyle lineStyle):
151 fLineStyle(lineStyle) {}
152 void operator()
153 (G4VisAttributes* visAtts) const
154 {visAtts->SetLineStyle(fLineStyle);}
155private:
157};
158
161public:
164 (G4double lineWidth):
165 fLineWidth(lineWidth) {}
166 void operator()
167 (G4VisAttributes* visAtts) const
168 {visAtts->SetLineWidth(fLineWidth);}
169private:
170 G4double fLineWidth;
171};
172
175public:
178 (G4bool visibility):
179 fVisibility(visibility) {}
180 void operator()
181 (G4VisAttributes* visAtts) const
182 {visAtts->SetVisibility(fVisibility);}
183private:
184 G4bool fVisibility;
185};
186
188protected:
189 void Set(G4String logVolName, const G4VVisCommandGeometrySetFunction&,
190 G4int requestedDepth);
192 G4int depth, G4int requestedDepth);
193};
194
196public:
200 void SetNewValue (G4UIcommand* command, G4String newValue);
201private:
204 G4UIcommand* fpCommand;
205};
206
209public:
213 void SetNewValue (G4UIcommand* command, G4String newValue);
214private:
219 G4UIcommand* fpCommand;
220};
221
224public:
228 void SetNewValue (G4UIcommand* command, G4String newValue);
229private:
234 G4UIcommand* fpCommand;
235};
236
239public:
243 void SetNewValue (G4UIcommand* command, G4String newValue);
244private:
249 G4UIcommand* fpCommand;
250};
251
254public:
258 void SetNewValue (G4UIcommand* command, G4String newValue);
259private:
264 G4UIcommand* fpCommand;
265};
266
269public:
273 void SetNewValue (G4UIcommand* command, G4String newValue);
274private:
279 G4UIcommand* fpCommand;
280};
281
284public:
288 void SetNewValue (G4UIcommand* command, G4String newValue);
289private:
294 G4UIcommand* fpCommand;
295};
296
299public:
303 void SetNewValue (G4UIcommand* command, G4String newValue);
304private:
309 G4UIcommand* fpCommand;
310};
311
314public:
318 void SetNewValue (G4UIcommand* command, G4String newValue);
319private:
324 G4UIcommand* fpCommand;
325};
326
328public:
332 void SetNewValue (G4UIcommand* command, G4String newValue);
334private:
337 G4UIcommand* fpCommand;
338};
339
340#endif
double G4double
Definition: G4Types.hh:83
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
virtual void operator()(G4VisAttributes *) const =0
void SetLVVisAtts(G4LogicalVolume *, const G4VVisCommandGeometrySetFunction &, G4int depth, G4int requestedDepth)
void Set(G4String logVolName, const G4VVisCommandGeometrySetFunction &, G4int requestedDepth)
void SetForceCloud(G4bool=true)
void SetForceNumberOfCloudPoints(G4int nPoints)
G4VisCommandGeometrySetColourFunction(const G4Colour &colour)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
G4VisCommandGeometrySetDaughtersInvisibleFunction(G4bool daughtersInvisible)
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandGeometrySetForceCloudFunction(G4bool force, G4int nPoints)
void operator()(G4VisAttributes *visAtts) const
G4String GetCurrentValue(G4UIcommand *command)
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)