ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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
38
class
G4VVisCommandGeometrySetFunction
{
39
public
:
40
virtual
~G4VVisCommandGeometrySetFunction
() {}
41
virtual
void
operator()
(
G4VisAttributes
*)
const
= 0;
42
};
43
44
class
G4VisCommandGeometrySetColourFunction
:
45
public
G4VVisCommandGeometrySetFunction
{
46
public
:
47
virtual
~G4VisCommandGeometrySetColourFunction
() {}
48
G4VisCommandGeometrySetColourFunction
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
58
class
G4VisCommandGeometrySetDaughtersInvisibleFunction
:
59
public
G4VVisCommandGeometrySetFunction
{
60
public
:
61
virtual
~G4VisCommandGeometrySetDaughtersInvisibleFunction
() {}
62
G4VisCommandGeometrySetDaughtersInvisibleFunction
63
(
G4bool
daughtersInvisible):
64
fDaughtersInvisible
(daughtersInvisible) {}
65
void
operator()
66
(
G4VisAttributes
* visAtts)
const
67
{visAtts->SetDaughtersInvisible(
fDaughtersInvisible
);}
68
private
:
69
G4bool
fDaughtersInvisible
;
70
};
71
72
class
G4VisCommandGeometrySetForceAuxEdgeVisibleFunction
:
73
public
G4VVisCommandGeometrySetFunction
{
74
public
:
75
virtual
~G4VisCommandGeometrySetForceAuxEdgeVisibleFunction
() {}
76
G4VisCommandGeometrySetForceAuxEdgeVisibleFunction
77
(
G4bool
force):
78
fForce
(force) {}
79
void
operator()
80
(
G4VisAttributes
* visAtts)
const
81
{visAtts->SetForceAuxEdgeVisible(
fForce
);}
82
private
:
83
G4bool
fForce
;
84
};
85
86
class
G4VisCommandGeometrySetForceLineSegmentsPerCircleFunction
:
87
public
G4VVisCommandGeometrySetFunction
{
88
public
:
89
virtual
~G4VisCommandGeometrySetForceLineSegmentsPerCircleFunction
() {}
90
G4VisCommandGeometrySetForceLineSegmentsPerCircleFunction
91
(
G4int
lineSegmentsPerCircle):
92
fLineSegmentsPerCircle
(lineSegmentsPerCircle) {}
93
void
operator()
94
(
G4VisAttributes
* visAtts)
const
95
{visAtts->SetForceLineSegmentsPerCircle(
fLineSegmentsPerCircle
);}
96
private
:
97
G4int
fLineSegmentsPerCircle
;
98
};
99
100
class
G4VisCommandGeometrySetForceSolidFunction
:
101
public
G4VVisCommandGeometrySetFunction
{
102
public
:
103
virtual
~G4VisCommandGeometrySetForceSolidFunction
() {}
104
G4VisCommandGeometrySetForceSolidFunction
105
(
G4bool
force):
106
fForce
(force) {}
107
void
operator()
108
(
G4VisAttributes
* visAtts)
const
109
{visAtts->SetForceSolid(
fForce
);}
110
private
:
111
G4bool
fForce
;
112
};
113
114
class
G4VisCommandGeometrySetForceWireframeFunction
:
115
public
G4VVisCommandGeometrySetFunction
{
116
public
:
117
virtual
~G4VisCommandGeometrySetForceWireframeFunction
() {}
118
G4VisCommandGeometrySetForceWireframeFunction
119
(
G4bool
force):
120
fForce
(force) {}
121
void
operator()
122
(
G4VisAttributes
* visAtts)
const
123
{visAtts->SetForceWireframe(
fForce
);}
124
private
:
125
G4bool
fForce
;
126
};
127
128
class
G4VisCommandGeometrySetLineStyleFunction
:
129
public
G4VVisCommandGeometrySetFunction
{
130
public
:
131
virtual
~G4VisCommandGeometrySetLineStyleFunction
() {}
132
G4VisCommandGeometrySetLineStyleFunction
133
(
G4VisAttributes::LineStyle
lineStyle):
134
fLineStyle
(lineStyle) {}
135
void
operator()
136
(
G4VisAttributes
* visAtts)
const
137
{visAtts->SetLineStyle(
fLineStyle
);}
138
private
:
139
G4VisAttributes::LineStyle
fLineStyle
;
140
};
141
142
class
G4VisCommandGeometrySetLineWidthFunction
:
143
public
G4VVisCommandGeometrySetFunction
{
144
public
:
145
virtual
~G4VisCommandGeometrySetLineWidthFunction
() {}
146
G4VisCommandGeometrySetLineWidthFunction
147
(
G4double
lineWidth):
148
fLineWidth
(lineWidth) {}
149
void
operator()
150
(
G4VisAttributes
* visAtts)
const
151
{visAtts->SetLineWidth(
fLineWidth
);}
152
private
:
153
G4double
fLineWidth
;
154
};
155
156
class
G4VisCommandGeometrySetVisibilityFunction
:
157
public
G4VVisCommandGeometrySetFunction
{
158
public
:
159
virtual
~G4VisCommandGeometrySetVisibilityFunction
() {}
160
G4VisCommandGeometrySetVisibilityFunction
161
(
G4bool
visibility
):
162
fVisibility
(visibility) {}
163
void
operator()
164
(
G4VisAttributes
* visAtts)
const
165
{visAtts->SetVisibility(
fVisibility
);}
166
private
:
167
G4bool
fVisibility
;
168
};
169
170
class
G4VVisCommandGeometrySet
:
public
G4VVisCommandGeometry
{
171
protected
:
172
void
Set
(
G4String
logVolName,
const
G4VVisCommandGeometrySetFunction
&,
173
G4int
requestedDepth);
174
void
SetLVVisAtts
(
G4LogicalVolume
*,
const
G4VVisCommandGeometrySetFunction
&,
175
G4int
depth,
G4int
requestedDepth);
176
};
177
178
class
G4VisCommandGeometrySetColour
:
public
G4VVisCommandGeometrySet
{
179
public
:
180
G4VisCommandGeometrySetColour
();
181
virtual
~G4VisCommandGeometrySetColour
();
182
G4String
GetCurrentValue
(
G4UIcommand
* command);
183
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
184
private
:
185
G4VisCommandGeometrySetColour
(
const
G4VisCommandGeometrySetColour
&);
186
G4VisCommandGeometrySetColour
&
operator =
(
const
G4VisCommandGeometrySetColour
&);
187
G4UIcommand
*
fpCommand
;
188
};
189
190
class
G4VisCommandGeometrySetDaughtersInvisible
:
191
public
G4VVisCommandGeometrySet
{
192
public
:
193
G4VisCommandGeometrySetDaughtersInvisible
();
194
virtual
~G4VisCommandGeometrySetDaughtersInvisible
();
195
G4String
GetCurrentValue
(
G4UIcommand
* command);
196
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
197
private
:
198
G4VisCommandGeometrySetDaughtersInvisible
199
(
const
G4VisCommandGeometrySetDaughtersInvisible
&);
200
G4VisCommandGeometrySetDaughtersInvisible
&
operator
=
201
(
const
G4VisCommandGeometrySetDaughtersInvisible
&);
202
G4UIcommand
*
fpCommand
;
203
};
204
205
class
G4VisCommandGeometrySetForceAuxEdgeVisible
:
206
public
G4VVisCommandGeometrySet
{
207
public
:
208
G4VisCommandGeometrySetForceAuxEdgeVisible
();
209
virtual
~G4VisCommandGeometrySetForceAuxEdgeVisible
();
210
G4String
GetCurrentValue
(
G4UIcommand
* command);
211
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
212
private
:
213
G4VisCommandGeometrySetForceAuxEdgeVisible
214
(
const
G4VisCommandGeometrySetForceAuxEdgeVisible
&);
215
G4VisCommandGeometrySetForceAuxEdgeVisible
&
operator
=
216
(
const
G4VisCommandGeometrySetForceAuxEdgeVisible
&);
217
G4UIcommand
*
fpCommand
;
218
};
219
220
class
G4VisCommandGeometrySetForceSolid
:
221
public
G4VVisCommandGeometrySet
{
222
public
:
223
G4VisCommandGeometrySetForceSolid
();
224
virtual
~G4VisCommandGeometrySetForceSolid
();
225
G4String
GetCurrentValue
(
G4UIcommand
* command);
226
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
227
private
:
228
G4VisCommandGeometrySetForceSolid
229
(
const
G4VisCommandGeometrySetForceSolid
&);
230
G4VisCommandGeometrySetForceSolid
&
operator
=
231
(
const
G4VisCommandGeometrySetForceSolid
&);
232
G4UIcommand
*
fpCommand
;
233
};
234
235
class
G4VisCommandGeometrySetForceLineSegmentsPerCircle
:
236
public
G4VVisCommandGeometrySet
{
237
public
:
238
G4VisCommandGeometrySetForceLineSegmentsPerCircle
();
239
virtual
~G4VisCommandGeometrySetForceLineSegmentsPerCircle
();
240
G4String
GetCurrentValue
(
G4UIcommand
* command);
241
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
242
private
:
243
G4VisCommandGeometrySetForceLineSegmentsPerCircle
244
(
const
G4VisCommandGeometrySetForceLineSegmentsPerCircle
&);
245
G4VisCommandGeometrySetForceLineSegmentsPerCircle
&
operator
=
246
(
const
G4VisCommandGeometrySetForceLineSegmentsPerCircle
&);
247
G4UIcommand
*
fpCommand
;
248
};
249
250
class
G4VisCommandGeometrySetForceWireframe
:
251
public
G4VVisCommandGeometrySet
{
252
public
:
253
G4VisCommandGeometrySetForceWireframe
();
254
virtual
~G4VisCommandGeometrySetForceWireframe
();
255
G4String
GetCurrentValue
(
G4UIcommand
* command);
256
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
257
private
:
258
G4VisCommandGeometrySetForceWireframe
259
(
const
G4VisCommandGeometrySetForceWireframe
&);
260
G4VisCommandGeometrySetForceWireframe
&
operator
=
261
(
const
G4VisCommandGeometrySetForceWireframe
&);
262
G4UIcommand
*
fpCommand
;
263
};
264
265
class
G4VisCommandGeometrySetLineStyle
:
266
public
G4VVisCommandGeometrySet
{
267
public
:
268
G4VisCommandGeometrySetLineStyle
();
269
virtual
~G4VisCommandGeometrySetLineStyle
();
270
G4String
GetCurrentValue
(
G4UIcommand
* command);
271
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
272
private
:
273
G4VisCommandGeometrySetLineStyle
274
(
const
G4VisCommandGeometrySetLineStyle
&);
275
G4VisCommandGeometrySetLineStyle
&
operator
=
276
(
const
G4VisCommandGeometrySetLineStyle
&);
277
G4UIcommand
*
fpCommand
;
278
};
279
280
class
G4VisCommandGeometrySetLineWidth
:
281
public
G4VVisCommandGeometrySet
{
282
public
:
283
G4VisCommandGeometrySetLineWidth
();
284
virtual
~G4VisCommandGeometrySetLineWidth
();
285
G4String
GetCurrentValue
(
G4UIcommand
* command);
286
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
287
private
:
288
G4VisCommandGeometrySetLineWidth
289
(
const
G4VisCommandGeometrySetLineWidth
&);
290
G4VisCommandGeometrySetLineWidth
&
operator
=
291
(
const
G4VisCommandGeometrySetLineWidth
&);
292
G4UIcommand
*
fpCommand
;
293
};
294
295
class
G4VisCommandGeometrySetVisibility
:
public
G4VVisCommandGeometrySet
{
296
public
:
297
G4VisCommandGeometrySetVisibility
();
298
virtual
~G4VisCommandGeometrySetVisibility
();
299
G4String
GetCurrentValue
(
G4UIcommand
* command);
300
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
301
void
SetNewValueOnLV
(
G4LogicalVolume
* pLV,
G4int
,
G4bool
);
302
private
:
303
G4VisCommandGeometrySetVisibility
(
const
G4VisCommandGeometrySetVisibility
&);
304
G4VisCommandGeometrySetVisibility
&
operator =
(
const
G4VisCommandGeometrySetVisibility
&);
305
G4UIcommand
*
fpCommand
;
306
};
307
308
#endif
geant4
tree
geant4-10.6-release
source
visualization
management
include
G4VisCommandsGeometrySet.hh
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:55
using
1.8.2 with
ECCE GitHub integration