Geant4  10.00.p01
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: G4VisCommandsSceneAdd.hh 73609 2013-09-02 10:10:30Z gcosmo $
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 
37 class G4UIcmdWithAString;
39 
40 #include "G4Transform3D.hh"
41 #include "G4VisAttributes.hh"
42 #include "G4Polyline.hh"
43 #include "G4Text.hh"
44 #include "G4Timer.hh"
45 
47 public:
49  virtual ~G4VisCommandSceneAddArrow ();
51  void SetNewValue (G4UIcommand* command, G4String newValue);
52 private:
56 };
57 
59 public:
63  void SetNewValue (G4UIcommand* command, G4String newValue);
64 private:
67  struct Arrow2D {
68  Arrow2D(G4double x1, G4double y1,
69  G4double x2, G4double y2,
70  G4double width, const G4Colour& colour);
76  };
78 };
79 
81 public:
83  virtual ~G4VisCommandSceneAddAxes ();
85  void SetNewValue (G4UIcommand* command, G4String newValue);
86 private:
90 };
91 
93 public:
95  virtual ~G4VisCommandSceneAddDate ();
97  void SetNewValue (G4UIcommand* command, G4String newValue);
98 private:
101  struct Date {
102  Date
103  (G4VisManager* vm, G4int size,
104  G4double x, G4double y, G4Text::Layout layout,
105  const G4String& date):
106  fpVisManager(vm), fSize(size),
107  fX(x), fY(y), fLayout(layout), fDate(date) {}
115  };
117 };
118 
120 public:
122  virtual ~G4VisCommandSceneAddDigis ();
124  void SetNewValue (G4UIcommand* command, G4String newValue);
125 private:
129 };
130 
132 public:
134  virtual ~G4VisCommandSceneAddEventID ();
136  void SetNewValue (G4UIcommand* command, G4String newValue);
137 private:
140  struct EventID {
142  G4double x, G4double y, G4Text::Layout layout):
143  fpVisManager(vm), fSize(size),
144  fX(x), fY(y), fLayout(layout) {}
150  };
152 };
153 
155 public:
157  virtual ~G4VisCommandSceneAddFrame ();
159  void SetNewValue (G4UIcommand* command, G4String newValue);
160 private:
163  struct Frame {
164  Frame(G4double size, G4double width, const G4Colour& colour):
165  fSize(size), fWidth(width), fColour(colour) {}
170  };
172 };
173 
175 public:
177  virtual ~G4VisCommandSceneAddGhosts ();
179  void SetNewValue (G4UIcommand* command, G4String newValue);
180 private:
182  G4VisCommandSceneAddGhosts& operator =
185 };
186 
188 public:
190  virtual ~G4VisCommandSceneAddHits ();
192  void SetNewValue (G4UIcommand* command, G4String newValue);
193 private:
197 };
198 
200 public:
202  virtual ~G4VisCommandSceneAddLine ();
204  void SetNewValue (G4UIcommand* command, G4String newValue);
205 private:
208  struct Line {
209  Line(G4double x1, G4double y1, G4double z1,
210  G4double x2, G4double y2, G4double z2,
211  G4double width, const G4Colour& colour);
216  };
218 };
219 
221 public:
223  virtual ~G4VisCommandSceneAddLine2D ();
225  void SetNewValue (G4UIcommand* command, G4String newValue);
226 private:
229  struct Line2D {
230  Line2D(G4double x1, G4double y1,
231  G4double x2, G4double y2,
232  G4double width, const G4Colour& colour);
237  };
239 };
240 
242 public:
246  void SetNewValue (G4UIcommand* command, G4String newValue);
247 private:
252 };
253 
255 public:
257  virtual ~G4VisCommandSceneAddLogo ();
259  void SetNewValue (G4UIcommand* command, G4String newValue);
260 private:
263  // Direction of outward-facing normal to front face of logo.
265  struct G4Logo {
266  G4Logo(G4double height, const G4VisAttributes&);
267  ~G4Logo();
269  private:
272  };
274 };
275 
277 public:
279  virtual ~G4VisCommandSceneAddLogo2D ();
281  void SetNewValue (G4UIcommand* command, G4String newValue);
282 private:
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) {}
296  };
298 };
299 
301 public:
305  void SetNewValue (G4UIcommand* command, G4String newValue);
306 private:
310 };
311 
313 public:
315  virtual ~G4VisCommandSceneAddPSHits ();
317  void SetNewValue (G4UIcommand* command, G4String newValue);
318 private:
322 };
323 
325 public:
327  virtual ~G4VisCommandSceneAddScale ();
329  void SetNewValue (G4UIcommand* command, G4String newValue);
330 private:
334 };
335 
337 public:
339  virtual ~G4VisCommandSceneAddText ();
341  void SetNewValue (G4UIcommand* command, G4String newValue);
342 private:
346 };
347 
349 public:
351  virtual ~G4VisCommandSceneAddText2D ();
353  void SetNewValue (G4UIcommand* command, G4String newValue);
354 private:
357  struct G4Text2D {
358  G4Text2D(const G4Text&);
360  private:
362  };
364 };
365 
367 public:
371  void SetNewValue (G4UIcommand* command, G4String newValue);
372 private:
377 };
378 
380 public:
384  void SetNewValue (G4UIcommand* command, G4String newValue);
385 private:
392 };
393 
395 public:
397  virtual ~G4VisCommandSceneAddVolume ();
399  void SetNewValue (G4UIcommand* command, G4String newValue);
400 private:
404 };
405 
406 #endif
void SetNewValue(G4UIcommand *command, G4String newValue)
Logo2D(G4VisManager *vm, G4int size, G4double x, G4double y, G4Text::Layout layout)
G4String GetCurrentValue(G4UIcommand *command)
G4Logo(G4double height, const G4VisAttributes &)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
Definition: G4Text.hh:73
G4String GetCurrentValue(G4UIcommand *command)
void operator()(G4VGraphicsScene &, const G4Transform3D &)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void operator()(G4VGraphicsScene &, const G4Transform3D &)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String name
Definition: TRTMaterials.hh:40
G4String GetCurrentValue(G4UIcommand *command)
EventID(G4VisManager *vm, G4int size, G4double x, G4double y, G4Text::Layout layout)
Line(G4double x1, G4double y1, G4double z1, G4double x2, G4double y2, G4double z2, G4double width, const G4Colour &colour)
G4VisCommandSceneAddLogo2D & operator=(const G4VisCommandSceneAddLogo2D &)
#define width
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetNewValue(G4UIcommand *command, G4String newValue)
void operator()(G4VGraphicsScene &, const G4Transform3D &)
G4VisCommandSceneAddLogo & operator=(const G4VisCommandSceneAddLogo &)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
int G4int
Definition: G4Types.hh:78
Date(G4VisManager *vm, G4int size, G4double x, G4double y, G4Text::Layout layout, const G4String &date)
G4VisCommandSceneAddLine2D & operator=(const G4VisCommandSceneAddLine2D &)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
G4String GetCurrentValue(G4UIcommand *command)
virtual ~G4VisCommandSceneAddGhosts()
G4String GetCurrentValue(G4UIcommand *command)
Line2D(G4double x1, G4double y1, G4double x2, G4double y2, G4double width, const G4Colour &colour)
G4String GetCurrentValue(G4UIcommand *command)
void AddVisAction(const G4String &name, G4VUserVisAction *, G4Scene *, ActionType, G4VisManager::Verbosity)
G4VisCommandSceneAddText2D & operator=(const G4VisCommandSceneAddText2D &)
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandSceneAddMagneticField & operator=(const G4VisCommandSceneAddMagneticField &)
G4String GetCurrentValue(G4UIcommand *command)
void operator()(G4VGraphicsScene &, const G4Transform3D &)
G4VisCommandSceneAddScale & operator=(const G4VisCommandSceneAddScale &)
HepGeom::Transform3D G4Transform3D
void operator()(G4VGraphicsScene &, const G4Transform3D &)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
void operator()(G4VGraphicsScene &, const G4Transform3D &)
G4VisCommandSceneAddAxes & operator=(const G4VisCommandSceneAddAxes &)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandSceneAddArrow & operator=(const G4VisCommandSceneAddArrow &)
G4VisCommandSceneAddEventID & operator=(const G4VisCommandSceneAddEventID &)
G4VisCommandSceneAddHits & operator=(const G4VisCommandSceneAddHits &)
G4VisCommandSceneAddUserAction & operator=(const G4VisCommandSceneAddUserAction &)
Layout
Definition: G4Text.hh:77
G4VisCommandSceneAddPSHits & operator=(const G4VisCommandSceneAddPSHits &)
G4String GetCurrentValue(G4UIcommand *command)
G4UIcmdWithoutParameter * fpCommand
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4UIcmdWithoutParameter * fpCommand
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandSceneAddDate & operator=(const G4VisCommandSceneAddDate &)
G4VisCommandSceneAddText & operator=(const G4VisCommandSceneAddText &)
void operator()(G4VGraphicsScene &, const G4Transform3D &)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
G4VisCommandSceneAddLine & operator=(const G4VisCommandSceneAddLine &)
G4String GetCurrentValue(G4UIcommand *command)
void operator()(G4VGraphicsScene &, const G4Transform3D &)
double G4double
Definition: G4Types.hh:76
G4VisCommandSceneAddArrow2D & operator=(const G4VisCommandSceneAddArrow2D &)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandSceneAddVolume & operator=(const G4VisCommandSceneAddVolume &)
G4VisCommandSceneAddDigis & operator=(const G4VisCommandSceneAddDigis &)
G4String GetCurrentValue(G4UIcommand *command)
G4VisCommandSceneAddFrame & operator=(const G4VisCommandSceneAddFrame &)
Frame(G4double size, G4double width, const G4Colour &colour)
Arrow2D(G4double x1, G4double y1, G4double x2, G4double y2, G4double width, const G4Colour &colour)
void operator()(G4VGraphicsScene &, const G4Transform3D &)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)