source: trunk/source/visualization/management/include/G4VisCommandsViewer.hh@ 892

Last change on this file since 892 was 891, checked in by garnier, 17 years ago

pre-tag revision and some improvments

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