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
G4VisCommandsViewer.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/viewer commands - John Allison 25th October 1998
30
31
#ifndef G4VISCOMMANDSVIEWER_HH
32
#define G4VISCOMMANDSVIEWER_HH
33
34
#include "
G4VVisCommand.hh
"
35
36
class
G4VViewer
;
37
class
G4ViewParameters
;
38
class
G4UIcommand
;
39
class
G4UIcmdWithoutParameter
;
40
class
G4UIcmdWithAString
;
41
class
G4UIcmdWithADouble
;
42
class
G4UIcmdWithADoubleAndUnit
;
43
class
G4UIcmdWith3Vector
;
44
45
class
G4VVisCommandViewer
:
public
G4VVisCommand
{
46
public
:
47
G4VVisCommandViewer
();
48
virtual
~G4VVisCommandViewer
();
49
protected
:
50
void
SetViewParameters
(
G4VViewer
*,
const
G4ViewParameters
&);
51
void
RefreshIfRequired
(
G4VViewer
*);
52
private
:
53
G4VVisCommandViewer
(
const
G4VVisCommandViewer
&);
54
G4VVisCommandViewer
& operator = (
const
G4VVisCommandViewer
&);
55
};
56
57
class
G4VisCommandViewerAddCutawayPlane
:
public
G4VVisCommandViewer
{
58
public
:
59
G4VisCommandViewerAddCutawayPlane
();
60
virtual
~G4VisCommandViewerAddCutawayPlane
();
61
G4String
GetCurrentValue
(
G4UIcommand
* command);
62
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
63
private
:
64
G4VisCommandViewerAddCutawayPlane
(
const
G4VisCommandViewerAddCutawayPlane
&);
65
G4VisCommandViewerAddCutawayPlane
& operator = (
const
G4VisCommandViewerAddCutawayPlane
&);
66
G4UIcommand
* fpCommand;
67
};
68
69
class
G4VisCommandViewerChangeCutawayPlane
:
public
G4VVisCommandViewer
{
70
public
:
71
G4VisCommandViewerChangeCutawayPlane
();
72
virtual
~G4VisCommandViewerChangeCutawayPlane
();
73
G4String
GetCurrentValue
(
G4UIcommand
* command);
74
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
75
private
:
76
G4VisCommandViewerChangeCutawayPlane
(
const
G4VisCommandViewerChangeCutawayPlane
&);
77
G4VisCommandViewerChangeCutawayPlane
& operator = (
const
G4VisCommandViewerChangeCutawayPlane
&);
78
G4UIcommand
* fpCommand;
79
};
80
81
class
G4VisCommandViewerClear
:
public
G4VVisCommandViewer
{
82
public
:
83
G4VisCommandViewerClear
();
84
virtual
~G4VisCommandViewerClear
();
85
G4String
GetCurrentValue
(
G4UIcommand
* command);
86
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
87
private
:
88
G4VisCommandViewerClear
(
const
G4VisCommandViewerClear
&);
89
G4VisCommandViewerClear
& operator = (
const
G4VisCommandViewerClear
&);
90
G4UIcmdWithAString
* fpCommand;
91
};
92
93
class
G4VisCommandViewerClearCutawayPlanes
:
public
G4VVisCommandViewer
{
94
public
:
95
G4VisCommandViewerClearCutawayPlanes
();
96
virtual
~G4VisCommandViewerClearCutawayPlanes
();
97
G4String
GetCurrentValue
(
G4UIcommand
* command);
98
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
99
private
:
100
G4VisCommandViewerClearCutawayPlanes
(
const
G4VisCommandViewerClearCutawayPlanes
&);
101
G4VisCommandViewerClearCutawayPlanes
& operator = (
const
G4VisCommandViewerClearCutawayPlanes
&);
102
G4UIcmdWithoutParameter
* fpCommand;
103
};
104
105
class
G4VisCommandViewerClearTransients
:
public
G4VVisCommandViewer
{
106
public
:
107
G4VisCommandViewerClearTransients
();
108
virtual
~G4VisCommandViewerClearTransients
();
109
G4String
GetCurrentValue
(
G4UIcommand
* command);
110
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
111
private
:
112
G4VisCommandViewerClearTransients
(
const
G4VisCommandViewerClearTransients
&);
113
G4VisCommandViewerClearTransients
&
operator
=
114
(
const
G4VisCommandViewerClearTransients
&);
115
G4UIcmdWithAString
* fpCommand;
116
};
117
118
class
G4VisCommandViewerClone
:
public
G4VVisCommandViewer
{
119
public
:
120
G4VisCommandViewerClone
();
121
virtual
~G4VisCommandViewerClone
();
122
G4String
GetCurrentValue
(
G4UIcommand
* command);
123
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
124
private
:
125
G4VisCommandViewerClone
(
const
G4VisCommandViewerClone
&);
126
G4VisCommandViewerClone
&
operator
=
127
(
const
G4VisCommandViewerClone
&);
128
G4UIcommand
* fpCommand;
129
};
130
131
class
G4VisCommandViewerCopyViewFrom
:
public
G4VVisCommandViewer
{
132
public
:
133
G4VisCommandViewerCopyViewFrom
();
134
virtual
~G4VisCommandViewerCopyViewFrom
();
135
G4String
GetCurrentValue
(
G4UIcommand
* command);
136
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
137
private
:
138
G4VisCommandViewerCopyViewFrom
(
const
G4VisCommandViewerCopyViewFrom
&);
139
G4VisCommandViewerCopyViewFrom
&
operator
=
140
(
const
G4VisCommandViewerCopyViewFrom
&);
141
G4UIcmdWithAString
* fpCommand;
142
};
143
144
class
G4VisCommandViewerCreate
:
public
G4VVisCommandViewer
{
145
public
:
146
G4VisCommandViewerCreate
();
147
virtual
~G4VisCommandViewerCreate
();
148
G4String
GetCurrentValue
(
G4UIcommand
* command);
149
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
150
private
:
151
G4VisCommandViewerCreate
(
const
G4VisCommandViewerCreate
&);
152
G4VisCommandViewerCreate
& operator = (
const
G4VisCommandViewerCreate
&);
153
G4String
NextName ();
154
G4UIcommand
* fpCommand;
155
G4int
fId;
156
};
157
158
class
G4VisCommandViewerDolly
:
public
G4VVisCommandViewer
{
159
public
:
160
G4VisCommandViewerDolly
();
161
virtual
~G4VisCommandViewerDolly
();
162
G4String
GetCurrentValue
(
G4UIcommand
* command);
163
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
164
private
:
165
G4VisCommandViewerDolly
(
const
G4VisCommandViewerDolly
&);
166
G4VisCommandViewerDolly
& operator = (
const
G4VisCommandViewerDolly
&);
167
G4UIcmdWithADoubleAndUnit
* fpCommandDolly;
168
G4UIcmdWithADoubleAndUnit
* fpCommandDollyTo;
169
G4double
fDollyIncrement;
170
G4double
fDollyTo;
171
};
172
173
class
G4VisCommandViewerFlush
:
public
G4VVisCommandViewer
{
174
public
:
175
G4VisCommandViewerFlush
();
176
virtual
~G4VisCommandViewerFlush
();
177
G4String
GetCurrentValue
(
G4UIcommand
* command);
178
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
179
private
:
180
G4VisCommandViewerFlush
(
const
G4VisCommandViewerFlush
&);
181
G4VisCommandViewerFlush
& operator = (
const
G4VisCommandViewerFlush
&);
182
G4UIcmdWithAString
* fpCommand;
183
};
184
185
class
G4VisCommandViewerList
:
public
G4VVisCommandViewer
{
186
public
:
187
G4VisCommandViewerList
();
188
virtual
~G4VisCommandViewerList
();
189
G4String
GetCurrentValue
(
G4UIcommand
* command);
190
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
191
private
:
192
G4VisCommandViewerList
(
const
G4VisCommandViewerList
&);
193
G4VisCommandViewerList
& operator = (
const
G4VisCommandViewerList
&);
194
G4UIcommand
* fpCommand;
195
};
196
197
class
G4VisCommandViewerPan
:
public
G4VVisCommandViewer
{
198
public
:
199
G4VisCommandViewerPan
();
200
virtual
~G4VisCommandViewerPan
();
201
G4String
GetCurrentValue
(
G4UIcommand
* command);
202
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
203
private
:
204
G4VisCommandViewerPan
(
const
G4VisCommandViewerPan
&);
205
G4VisCommandViewerPan
& operator = (
const
G4VisCommandViewerPan
&);
206
G4UIcommand
* fpCommandPan;
207
G4UIcommand
* fpCommandPanTo;
208
G4double
fPanIncrementRight, fPanIncrementUp;
209
G4double
fPanToRight, fPanToUp;
210
};
211
212
class
G4VisCommandViewerReset
:
public
G4VVisCommandViewer
{
213
public
:
214
G4VisCommandViewerReset
();
215
virtual
~G4VisCommandViewerReset
();
216
G4String
GetCurrentValue
(
G4UIcommand
* command);
217
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
218
private
:
219
G4VisCommandViewerReset
(
const
G4VisCommandViewerReset
&);
220
G4VisCommandViewerReset
& operator = (
const
G4VisCommandViewerReset
&);
221
G4UIcmdWithAString
* fpCommand;
222
};
223
224
class
G4VisCommandViewerRefresh
:
public
G4VVisCommandViewer
{
225
public
:
226
G4VisCommandViewerRefresh
();
227
virtual
~G4VisCommandViewerRefresh
();
228
G4String
GetCurrentValue
(
G4UIcommand
* command);
229
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
230
private
:
231
G4VisCommandViewerRefresh
(
const
G4VisCommandViewerRefresh
&);
232
G4VisCommandViewerRefresh
& operator = (
const
G4VisCommandViewerRefresh
&);
233
G4UIcmdWithAString
* fpCommand;
234
};
235
236
class
G4VisCommandViewerRebuild
:
public
G4VVisCommandViewer
{
237
public
:
238
G4VisCommandViewerRebuild
();
239
virtual
~G4VisCommandViewerRebuild
();
240
G4String
GetCurrentValue
(
G4UIcommand
* command);
241
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
242
private
:
243
G4VisCommandViewerRebuild
(
const
G4VisCommandViewerRebuild
&);
244
G4VisCommandViewerRebuild
& operator = (
const
G4VisCommandViewerRebuild
&);
245
G4UIcmdWithAString
* fpCommand;
246
};
247
248
class
G4VisCommandViewerSave
:
public
G4VVisCommandViewer
{
249
public
:
250
G4VisCommandViewerSave
();
251
virtual
~G4VisCommandViewerSave
();
252
G4String
GetCurrentValue
(
G4UIcommand
* command);
253
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
254
private
:
255
G4VisCommandViewerSave
(
const
G4VisCommandViewerSave
&);
256
G4VisCommandViewerSave
& operator = (
const
G4VisCommandViewerSave
&);
257
G4UIcmdWithAString
* fpCommand;
258
};
259
260
class
G4VisCommandViewerScale
:
public
G4VVisCommandViewer
{
261
public
:
262
G4VisCommandViewerScale
();
263
virtual
~G4VisCommandViewerScale
();
264
G4String
GetCurrentValue
(
G4UIcommand
* command);
265
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
266
private
:
267
G4VisCommandViewerScale
(
const
G4VisCommandViewerScale
&);
268
G4VisCommandViewerScale
& operator = (
const
G4VisCommandViewerScale
&);
269
G4UIcmdWith3Vector
* fpCommandScale;
270
G4UIcmdWith3Vector
* fpCommandScaleTo;
271
G4Vector3D
fScaleMultiplier;
272
G4Vector3D
fScaleTo;
273
};
274
275
class
G4VisCommandViewerSelect
:
public
G4VVisCommandViewer
{
276
public
:
277
G4VisCommandViewerSelect
();
278
virtual
~G4VisCommandViewerSelect
();
279
G4String
GetCurrentValue
(
G4UIcommand
* command);
280
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
281
private
:
282
G4VisCommandViewerSelect
(
const
G4VisCommandViewerSelect
&);
283
G4VisCommandViewerSelect
& operator = (
const
G4VisCommandViewerSelect
&);
284
G4UIcmdWithAString
* fpCommand;
285
};
286
287
class
G4VisCommandViewerUpdate
:
public
G4VVisCommandViewer
{
288
public
:
289
G4VisCommandViewerUpdate
();
290
virtual
~G4VisCommandViewerUpdate
();
291
G4String
GetCurrentValue
(
G4UIcommand
* command);
292
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
293
private
:
294
G4VisCommandViewerUpdate
(
const
G4VisCommandViewerUpdate
&);
295
G4VisCommandViewerUpdate
& operator = (
const
G4VisCommandViewerUpdate
&);
296
G4UIcmdWithAString
* fpCommand;
297
};
298
299
class
G4VisCommandViewerZoom
:
public
G4VVisCommandViewer
{
300
public
:
301
G4VisCommandViewerZoom
();
302
virtual
~G4VisCommandViewerZoom
();
303
G4String
GetCurrentValue
(
G4UIcommand
* command);
304
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValue);
305
private
:
306
G4VisCommandViewerZoom
(
const
G4VisCommandViewerZoom
&);
307
G4VisCommandViewerZoom
& operator = (
const
G4VisCommandViewerZoom
&);
308
G4UIcmdWithADouble
* fpCommandZoom;
309
G4UIcmdWithADouble
* fpCommandZoomTo;
310
G4double
fZoomMultiplier;
311
G4double
fZoomTo;
312
};
313
314
#endif
Generated on Sat May 25 2013 14:34:15 for Geant4 by
1.8.4