Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
visualization
management
include
G4VisCommandsSceneAdd.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/scene commands - John Allison 9th August 1998
30
31
#ifndef G4VISCOMMANDSSCENEADD_HH
32
#define G4VISCOMMANDSSCENEADD_HH
33
34
#include "
G4VisCommandsScene.hh
"
35
36
class
G4UIcmdWithoutParameter
;
37
class
G4UIcmdWithAString
;
38
39
#include "
G4Transform3D.hh
"
40
#include "
G4VisAttributes.hh
"
41
#include "
G4Polyline.hh
"
42
#include "
G4Text.hh
"
43
#include "
G4Timer.hh
"
44
45
class
G4VisCommandSceneAddArrow
:
public
G4VVisCommandScene
{
46
public
:
47
G4VisCommandSceneAddArrow
();
48
virtual
~G4VisCommandSceneAddArrow
();
49
G4String
GetCurrentValue
(
G4UIcommand
* command);
50
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
51
private
:
52
G4VisCommandSceneAddArrow
(
const
G4VisCommandSceneAddArrow
&);
53
G4VisCommandSceneAddArrow
& operator = (
const
G4VisCommandSceneAddArrow
&);
54
G4UIcommand
* fpCommand;
55
};
56
57
class
G4VisCommandSceneAddArrow2D
:
public
G4VVisCommandScene
{
58
public
:
59
G4VisCommandSceneAddArrow2D
();
60
virtual
~G4VisCommandSceneAddArrow2D
();
61
G4String
GetCurrentValue
(
G4UIcommand
* command);
62
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
63
private
:
64
G4VisCommandSceneAddArrow2D
(
const
G4VisCommandSceneAddArrow2D
&);
65
G4VisCommandSceneAddArrow2D
& operator = (
const
G4VisCommandSceneAddArrow2D
&);
66
struct
Arrow2D {
67
Arrow2D(
G4double
x1
,
G4double
y1
,
68
G4double
x2
,
G4double
y2
,
69
G4double
width
,
const
G4Colour
& colour);
70
void
operator()(
G4VGraphicsScene
&,
const
G4Transform3D
&);
71
G4Polyline
fShaftPolyline;
72
G4Polyline
fHeadPolyline;
73
G4double
fWidth;
74
G4Colour
fColour;
75
};
76
G4UIcommand
* fpCommand;
77
};
78
79
class
G4VisCommandSceneAddAxes
:
public
G4VVisCommandScene
{
80
public
:
81
G4VisCommandSceneAddAxes
();
82
virtual
~G4VisCommandSceneAddAxes
();
83
G4String
GetCurrentValue
(
G4UIcommand
* command);
84
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
85
private
:
86
G4VisCommandSceneAddAxes
(
const
G4VisCommandSceneAddAxes
&);
87
G4VisCommandSceneAddAxes
& operator = (
const
G4VisCommandSceneAddAxes
&);
88
G4UIcommand
* fpCommand;
89
};
90
91
class
G4VisCommandSceneAddDate
:
public
G4VVisCommandScene
{
92
public
:
93
G4VisCommandSceneAddDate
();
94
virtual
~G4VisCommandSceneAddDate
();
95
G4String
GetCurrentValue
(
G4UIcommand
* command);
96
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
97
private
:
98
G4VisCommandSceneAddDate
(
const
G4VisCommandSceneAddDate
&);
99
G4VisCommandSceneAddDate
& operator = (
const
G4VisCommandSceneAddDate
&);
100
struct
Date {
101
Date
102
(
G4VisManager
* vm,
G4int
size,
103
G4double
x
,
G4double
y
,
G4Text::Layout
layout,
104
const
G4String
& date):
105
fpVisManager
(vm), fSize(size),
106
fX(x), fY(y), fLayout(layout), fDate(date) {}
107
void
operator()(
G4VGraphicsScene
&,
const
G4Transform3D
&);
108
G4VisManager
*
fpVisManager
;
109
G4Timer
fTimer;
110
G4int
fSize;
111
G4double
fX, fY;
112
G4Text::Layout
fLayout;
113
G4String
fDate;
114
};
115
G4UIcommand
* fpCommand;
116
};
117
118
class
G4VisCommandSceneAddDigis
:
public
G4VVisCommandScene
{
119
public
:
120
G4VisCommandSceneAddDigis
();
121
virtual
~G4VisCommandSceneAddDigis
();
122
G4String
GetCurrentValue
(
G4UIcommand
* command);
123
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
124
private
:
125
G4VisCommandSceneAddDigis
(
const
G4VisCommandSceneAddDigis
&);
126
G4VisCommandSceneAddDigis
& operator = (
const
G4VisCommandSceneAddDigis
&);
127
G4UIcmdWithoutParameter
* fpCommand;
128
};
129
130
class
G4VisCommandSceneAddEventID
:
public
G4VVisCommandScene
{
131
public
:
132
G4VisCommandSceneAddEventID
();
133
virtual
~G4VisCommandSceneAddEventID
();
134
G4String
GetCurrentValue
(
G4UIcommand
* command);
135
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
136
private
:
137
G4VisCommandSceneAddEventID
(
const
G4VisCommandSceneAddEventID
&);
138
G4VisCommandSceneAddEventID
& operator = (
const
G4VisCommandSceneAddEventID
&);
139
struct
EventID {
140
EventID(
G4VisManager
* vm,
G4int
size,
141
G4double
x
,
G4double
y
,
G4Text::Layout
layout):
142
fpVisManager
(vm), fSize(size),
143
fX(x), fY(y), fLayout(layout) {}
144
void
operator()(
G4VGraphicsScene
&,
const
G4Transform3D
&);
145
G4VisManager
*
fpVisManager
;
146
G4int
fSize;
147
G4double
fX, fY;
148
G4Text::Layout
fLayout;
149
};
150
G4UIcommand
* fpCommand;
151
};
152
153
class
G4VisCommandSceneAddFrame
:
public
G4VVisCommandScene
{
154
public
:
155
G4VisCommandSceneAddFrame
();
156
virtual
~G4VisCommandSceneAddFrame
();
157
G4String
GetCurrentValue
(
G4UIcommand
* command);
158
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
159
private
:
160
G4VisCommandSceneAddFrame
(
const
G4VisCommandSceneAddFrame
&);
161
G4VisCommandSceneAddFrame
& operator = (
const
G4VisCommandSceneAddFrame
&);
162
struct
Frame {
163
Frame(
G4double
size,
G4double
width
,
const
G4Colour
& colour):
164
fSize(size), fWidth(width), fColour(colour) {}
165
void
operator()(
G4VGraphicsScene
&,
const
G4Transform3D
&);
166
G4double
fSize;
167
G4double
fWidth;
168
G4Colour
fColour;
169
};
170
G4UIcommand
* fpCommand;
171
};
172
173
class
G4VisCommandSceneAddGhosts
:
public
G4VVisCommandScene
{
174
public
:
175
G4VisCommandSceneAddGhosts
();
176
virtual
~G4VisCommandSceneAddGhosts
();
177
G4String
GetCurrentValue
(
G4UIcommand
* command);
178
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
179
private
:
180
G4VisCommandSceneAddGhosts
(
const
G4VisCommandSceneAddGhosts
&);
181
G4VisCommandSceneAddGhosts
&
operator
=
182
(
const
G4VisCommandSceneAddGhosts
&);
183
G4UIcmdWithAString
* fpCommand;
184
};
185
186
class
G4VisCommandSceneAddHits
:
public
G4VVisCommandScene
{
187
public
:
188
G4VisCommandSceneAddHits
();
189
virtual
~G4VisCommandSceneAddHits
();
190
G4String
GetCurrentValue
(
G4UIcommand
* command);
191
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
192
private
:
193
G4VisCommandSceneAddHits
(
const
G4VisCommandSceneAddHits
&);
194
G4VisCommandSceneAddHits
& operator = (
const
G4VisCommandSceneAddHits
&);
195
G4UIcmdWithoutParameter
* fpCommand;
196
};
197
198
class
G4VisCommandSceneAddLine
:
public
G4VVisCommandScene
{
199
public
:
200
G4VisCommandSceneAddLine
();
201
virtual
~G4VisCommandSceneAddLine
();
202
G4String
GetCurrentValue
(
G4UIcommand
* command);
203
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
204
private
:
205
G4VisCommandSceneAddLine
(
const
G4VisCommandSceneAddLine
&);
206
G4VisCommandSceneAddLine
& operator = (
const
G4VisCommandSceneAddLine
&);
207
struct
Line {
208
Line(
G4double
x1
,
G4double
y1
,
G4double
z1,
209
G4double
x2
,
G4double
y2
,
G4double
z2,
210
G4double
width
,
const
G4Colour
& colour);
211
void
operator()(
G4VGraphicsScene
&,
const
G4Transform3D
&);
212
G4Polyline
fPolyline;
213
G4double
fWidth;
214
G4Colour
fColour;
215
};
216
G4UIcommand
* fpCommand;
217
};
218
219
class
G4VisCommandSceneAddLine2D
:
public
G4VVisCommandScene
{
220
public
:
221
G4VisCommandSceneAddLine2D
();
222
virtual
~G4VisCommandSceneAddLine2D
();
223
G4String
GetCurrentValue
(
G4UIcommand
* command);
224
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
225
private
:
226
G4VisCommandSceneAddLine2D
(
const
G4VisCommandSceneAddLine2D
&);
227
G4VisCommandSceneAddLine2D
& operator = (
const
G4VisCommandSceneAddLine2D
&);
228
struct
Line2D {
229
Line2D(
G4double
x1
,
G4double
y1
,
230
G4double
x2
,
G4double
y2
,
231
G4double
width
,
const
G4Colour
& colour);
232
void
operator()(
G4VGraphicsScene
&,
const
G4Transform3D
&);
233
G4Polyline
fPolyline;
234
G4double
fWidth;
235
G4Colour
fColour;
236
};
237
G4UIcommand
* fpCommand;
238
};
239
240
class
G4VisCommandSceneAddLogicalVolume
:
public
G4VVisCommandScene
{
241
public
:
242
G4VisCommandSceneAddLogicalVolume
();
243
virtual
~G4VisCommandSceneAddLogicalVolume
();
244
G4String
GetCurrentValue
(
G4UIcommand
* command);
245
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
246
private
:
247
G4VisCommandSceneAddLogicalVolume
(
const
G4VisCommandSceneAddLogicalVolume
&);
248
G4VisCommandSceneAddLogicalVolume
&
operator
=
249
(
const
G4VisCommandSceneAddLogicalVolume
&);
250
G4UIcommand
* fpCommand;
251
};
252
253
class
G4VisCommandSceneAddLogo
:
public
G4VVisCommandScene
{
254
public
:
255
G4VisCommandSceneAddLogo
();
256
virtual
~G4VisCommandSceneAddLogo
();
257
G4String
GetCurrentValue
(
G4UIcommand
* command);
258
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
259
private
:
260
G4VisCommandSceneAddLogo
(
const
G4VisCommandSceneAddLogo
&);
261
G4VisCommandSceneAddLogo
& operator = (
const
G4VisCommandSceneAddLogo
&);
262
// Direction of outward-facing normal to front face of logo.
263
enum
Direction {X, minusX, Y, minusY, Z, minusZ};
264
struct
G4Logo {
265
G4Logo(
G4double
height,
const
G4VisAttributes
&);
266
~G4Logo();
267
void
operator()(
G4VGraphicsScene
&,
const
G4Transform3D
&);
268
private
:
269
G4double
fHeight;
270
G4VisAttributes
fVisAtts;
271
G4Polyhedron
*fpG, *fp4;
272
};
273
G4UIcommand
* fpCommand;
274
};
275
276
class
G4VisCommandSceneAddLogo2D
:
public
G4VVisCommandScene
{
277
public
:
278
G4VisCommandSceneAddLogo2D
();
279
virtual
~G4VisCommandSceneAddLogo2D
();
280
G4String
GetCurrentValue
(
G4UIcommand
* command);
281
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
282
private
:
283
G4VisCommandSceneAddLogo2D
(
const
G4VisCommandSceneAddLogo2D
&);
284
G4VisCommandSceneAddLogo2D
& operator = (
const
G4VisCommandSceneAddLogo2D
&);
285
struct
Logo2D {
286
Logo2D
287
(
G4VisManager
* vm,
G4int
size,
288
G4double
x
,
G4double
y
,
G4Text::Layout
layout):
289
fpVisManager
(vm), fSize(size),
290
fX(x), fY(y), fLayout(layout) {}
291
void
operator()(
G4VGraphicsScene
&,
const
G4Transform3D
&);
292
G4VisManager
*
fpVisManager
;
293
G4int
fSize;
294
G4double
fX, fY;
295
G4Text::Layout
fLayout;
296
};
297
G4UIcommand
* fpCommand;
298
};
299
300
class
G4VisCommandSceneAddPSHits
:
public
G4VVisCommandScene
{
301
public
:
302
G4VisCommandSceneAddPSHits
();
303
virtual
~G4VisCommandSceneAddPSHits
();
304
G4String
GetCurrentValue
(
G4UIcommand
* command);
305
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
306
private
:
307
G4VisCommandSceneAddPSHits
(
const
G4VisCommandSceneAddPSHits
&);
308
G4VisCommandSceneAddPSHits
& operator = (
const
G4VisCommandSceneAddPSHits
&);
309
G4UIcmdWithAString
* fpCommand;
310
};
311
312
class
G4VisCommandSceneAddScale
:
public
G4VVisCommandScene
{
313
public
:
314
G4VisCommandSceneAddScale
();
315
virtual
~G4VisCommandSceneAddScale
();
316
G4String
GetCurrentValue
(
G4UIcommand
* command);
317
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
318
private
:
319
G4VisCommandSceneAddScale
(
const
G4VisCommandSceneAddScale
&);
320
G4VisCommandSceneAddScale
& operator = (
const
G4VisCommandSceneAddScale
&);
321
G4UIcommand
* fpCommand;
322
};
323
324
class
G4VisCommandSceneAddText
:
public
G4VVisCommandScene
{
325
public
:
326
G4VisCommandSceneAddText
();
327
virtual
~G4VisCommandSceneAddText
();
328
G4String
GetCurrentValue
(
G4UIcommand
* command);
329
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
330
private
:
331
G4VisCommandSceneAddText
(
const
G4VisCommandSceneAddText
&);
332
G4VisCommandSceneAddText
& operator = (
const
G4VisCommandSceneAddText
&);
333
G4UIcommand
* fpCommand;
334
};
335
336
class
G4VisCommandSceneAddText2D
:
public
G4VVisCommandScene
{
337
public
:
338
G4VisCommandSceneAddText2D
();
339
virtual
~G4VisCommandSceneAddText2D
();
340
G4String
GetCurrentValue
(
G4UIcommand
* command);
341
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
342
private
:
343
G4VisCommandSceneAddText2D
(
const
G4VisCommandSceneAddText2D
&);
344
G4VisCommandSceneAddText2D
& operator = (
const
G4VisCommandSceneAddText2D
&);
345
struct
G4Text2D {
346
G4Text2D(
const
G4Text
&);
347
void
operator()(
G4VGraphicsScene
&,
const
G4Transform3D
&);
348
private
:
349
G4Text
fText;
350
};
351
G4UIcommand
* fpCommand;
352
};
353
354
class
G4VisCommandSceneAddTrajectories
:
public
G4VVisCommandScene
{
355
public
:
356
G4VisCommandSceneAddTrajectories
();
357
virtual
~G4VisCommandSceneAddTrajectories
();
358
G4String
GetCurrentValue
(
G4UIcommand
* command);
359
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
360
private
:
361
G4VisCommandSceneAddTrajectories
(
const
G4VisCommandSceneAddTrajectories
&);
362
G4VisCommandSceneAddTrajectories
&
operator
=
363
(
const
G4VisCommandSceneAddTrajectories
&);
364
G4UIcmdWithAString
* fpCommand;
365
};
366
367
class
G4VisCommandSceneAddUserAction
:
public
G4VVisCommandScene
{
368
public
:
369
G4VisCommandSceneAddUserAction
();
370
virtual
~G4VisCommandSceneAddUserAction
();
371
G4String
GetCurrentValue
(
G4UIcommand
* command);
372
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
373
private
:
374
G4VisCommandSceneAddUserAction
(
const
G4VisCommandSceneAddUserAction
&);
375
G4VisCommandSceneAddUserAction
& operator = (
const
G4VisCommandSceneAddUserAction
&);
376
enum
ActionType {runDuration, endOfEvent, endOfRun};
377
void
AddVisAction(
const
G4String
&
name
,
G4VUserVisAction
*,
378
G4Scene
*,ActionType,
G4VisManager::Verbosity
);
379
G4UIcmdWithAString
* fpCommand;
380
};
381
382
class
G4VisCommandSceneAddVolume
:
public
G4VVisCommandScene
{
383
public
:
384
G4VisCommandSceneAddVolume
();
385
virtual
~G4VisCommandSceneAddVolume
();
386
G4String
GetCurrentValue
(
G4UIcommand
* command);
387
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
388
private
:
389
G4VisCommandSceneAddVolume
(
const
G4VisCommandSceneAddVolume
&);
390
G4VisCommandSceneAddVolume
& operator = (
const
G4VisCommandSceneAddVolume
&);
391
G4UIcommand
* fpCommand;
392
};
393
394
#endif
Generated on Sat May 25 2013 14:34:15 for Geant4 by
1.8.4