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

Last change on this file since 1346 was 1346, checked in by garnier, 13 years ago

before tag

  • Property svn:mime-type set to text/cpp
File size: 10.7 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:  $
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  G4String NextName ();
141  G4UIcommand* fpCommand;
142  G4int fId;
143};
144
145class G4VisCommandViewerDolly: public G4VVisCommandViewer {
146public:
147  G4VisCommandViewerDolly ();
148  virtual ~G4VisCommandViewerDolly ();
149  G4String GetCurrentValue (G4UIcommand* command);
150  void SetNewValue (G4UIcommand* command, G4String newValue);
151private:
152  G4VisCommandViewerDolly (const G4VisCommandViewerDolly&);
153  G4VisCommandViewerDolly& operator = (const G4VisCommandViewerDolly&);
154  G4UIcmdWithADoubleAndUnit* fpCommandDolly;
155  G4UIcmdWithADoubleAndUnit* fpCommandDollyTo;
156  G4double fDollyIncrement;
157  G4double fDollyTo;
158};
159
160class G4VisCommandViewerFlush: public G4VVisCommandViewer {
161public:
162  G4VisCommandViewerFlush ();
163  virtual ~G4VisCommandViewerFlush ();
164  G4String GetCurrentValue (G4UIcommand* command);
165  void SetNewValue (G4UIcommand* command, G4String newValue);
166private:
167  G4VisCommandViewerFlush (const G4VisCommandViewerFlush&);
168  G4VisCommandViewerFlush& operator = (const G4VisCommandViewerFlush&);
169  G4UIcmdWithAString* fpCommand;
170};
171
172class G4VisCommandViewerList: public G4VVisCommandViewer {
173public:
174  G4VisCommandViewerList ();
175  virtual ~G4VisCommandViewerList ();
176  G4String GetCurrentValue (G4UIcommand* command);
177  void SetNewValue (G4UIcommand* command, G4String newValue);
178private:
179  G4VisCommandViewerList (const G4VisCommandViewerList&);
180  G4VisCommandViewerList& operator = (const G4VisCommandViewerList&);
181  G4UIcommand* fpCommand;
182};
183
184class G4VisCommandViewerPan: public G4VVisCommandViewer {
185public:
186  G4VisCommandViewerPan ();
187  virtual ~G4VisCommandViewerPan ();
188  G4String GetCurrentValue (G4UIcommand* command);
189  void SetNewValue (G4UIcommand* command, G4String newValue);
190private:
191  G4VisCommandViewerPan (const G4VisCommandViewerPan&);
192  G4VisCommandViewerPan& operator = (const G4VisCommandViewerPan&);
193  G4UIcommand* fpCommandPan;
194  G4UIcommand* fpCommandPanTo;
195  G4double fPanIncrementRight, fPanIncrementUp;
196  G4double fPanToRight, fPanToUp;
197};
198
199class G4VisCommandViewerReset: public G4VVisCommandViewer {
200public:
201  G4VisCommandViewerReset ();
202  virtual ~G4VisCommandViewerReset ();
203  G4String GetCurrentValue (G4UIcommand* command);
204  void SetNewValue (G4UIcommand* command, G4String newValue);
205private:
206  G4VisCommandViewerReset (const G4VisCommandViewerReset&);
207  G4VisCommandViewerReset& operator = (const G4VisCommandViewerReset&);
208  G4UIcmdWithAString* fpCommand;
209};
210
211class G4VisCommandViewerRefresh: public G4VVisCommandViewer {
212public:
213  G4VisCommandViewerRefresh ();
214  virtual ~G4VisCommandViewerRefresh ();
215  G4String GetCurrentValue (G4UIcommand* command);
216  void SetNewValue (G4UIcommand* command, G4String newValue);
217private:
218  G4VisCommandViewerRefresh (const G4VisCommandViewerRefresh&);
219  G4VisCommandViewerRefresh& operator = (const G4VisCommandViewerRefresh&);
220  G4UIcmdWithAString* fpCommand;
221};
222
223class G4VisCommandViewerRebuild: public G4VVisCommandViewer {
224public:
225  G4VisCommandViewerRebuild ();
226  virtual ~G4VisCommandViewerRebuild ();
227  G4String GetCurrentValue (G4UIcommand* command);
228  void SetNewValue (G4UIcommand* command, G4String newValue);
229private:
230  G4VisCommandViewerRebuild (const G4VisCommandViewerRebuild&);
231  G4VisCommandViewerRebuild& operator = (const G4VisCommandViewerRebuild&);
232  G4UIcmdWithAString* fpCommand;
233};
234
235class G4VisCommandViewerScale: public G4VVisCommandViewer {
236public:
237  G4VisCommandViewerScale ();
238  virtual ~G4VisCommandViewerScale ();
239  G4String GetCurrentValue (G4UIcommand* command);
240  void SetNewValue (G4UIcommand* command, G4String newValue);
241private:
242  G4VisCommandViewerScale (const G4VisCommandViewerScale&);
243  G4VisCommandViewerScale& operator = (const G4VisCommandViewerScale&);
244  G4UIcmdWith3Vector* fpCommandScale;
245  G4UIcmdWith3Vector* fpCommandScaleTo;
246  G4Vector3D fScaleMultiplier;
247  G4Vector3D fScaleTo;
248};
249
250class G4VisCommandViewerSelect: public G4VVisCommandViewer {
251public:
252  G4VisCommandViewerSelect ();
253  virtual ~G4VisCommandViewerSelect ();
254  G4String GetCurrentValue (G4UIcommand* command);
255  void SetNewValue (G4UIcommand* command, G4String newValue);
256private:
257  G4VisCommandViewerSelect (const G4VisCommandViewerSelect&);
258  G4VisCommandViewerSelect& operator = (const G4VisCommandViewerSelect&);
259  G4UIcmdWithAString* fpCommand;
260};
261
262class G4VisCommandViewerUpdate: public G4VVisCommandViewer {
263public:
264  G4VisCommandViewerUpdate ();
265  virtual ~G4VisCommandViewerUpdate ();
266  G4String GetCurrentValue (G4UIcommand* command);
267  void SetNewValue (G4UIcommand* command, G4String newValue);
268private:
269  G4VisCommandViewerUpdate (const G4VisCommandViewerUpdate&);
270  G4VisCommandViewerUpdate& operator = (const G4VisCommandViewerUpdate&);
271  G4UIcmdWithAString* fpCommand;
272};
273
274class G4VisCommandViewerZoom: public G4VVisCommandViewer {
275public:
276  G4VisCommandViewerZoom ();
277  virtual ~G4VisCommandViewerZoom ();
278  G4String GetCurrentValue (G4UIcommand* command);
279  void SetNewValue (G4UIcommand* command, G4String newValue);
280private:
281  G4VisCommandViewerZoom (const G4VisCommandViewerZoom&);
282  G4VisCommandViewerZoom& operator = (const G4VisCommandViewerZoom&);
283  G4UIcmdWithADouble* fpCommandZoom;
284  G4UIcmdWithADouble* fpCommandZoomTo;
285  G4double fZoomMultiplier;
286  G4double fZoomTo;
287};
288
289#endif
Note: See TracBrowser for help on using the repository browser.