Geant4  10.03
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 93069 2015-10-02 09:54:27Z 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 ~G4VisCommandSceneAddExtent ();
159  void SetNewValue (G4UIcommand* command, G4String newValue);
160 private:
163  struct Extent {
164  Extent(G4double xmin, G4double xmax,
165  G4double ymin, G4double ymax,
166  G4double zmin, G4double zmax);
169  };
171 };
172 
174 public:
176  virtual ~G4VisCommandSceneAddFrame ();
178  void SetNewValue (G4UIcommand* command, G4String newValue);
179 private:
182  struct Frame {
183  Frame(G4double size, G4double width, const G4Colour& colour):
184  fSize(size), fWidth(width), fColour(colour) {}
189  };
191 };
192 
194 public:
196  virtual ~G4VisCommandSceneAddGhosts ();
198  void SetNewValue (G4UIcommand* command, G4String newValue);
199 private:
201  G4VisCommandSceneAddGhosts& operator =
204 };
205 
207 public:
209  virtual ~G4VisCommandSceneAddHits ();
211  void SetNewValue (G4UIcommand* command, G4String newValue);
212 private:
216 };
217 
219 public:
221  virtual ~G4VisCommandSceneAddLine ();
223  void SetNewValue (G4UIcommand* command, G4String newValue);
224 private:
227  struct Line {
228  Line(G4double x1, G4double y1, G4double z1,
229  G4double x2, G4double y2, G4double z2,
230  G4double width, const G4Colour& colour);
235  };
237 };
238 
240 public:
242  virtual ~G4VisCommandSceneAddLine2D ();
244  void SetNewValue (G4UIcommand* command, G4String newValue);
245 private:
248  struct Line2D {
249  Line2D(G4double x1, G4double y1,
250  G4double x2, G4double y2,
251  G4double width, const G4Colour& colour);
256  };
258 };
259 
261 public:
265  void SetNewValue (G4UIcommand* command, G4String newValue);
266 private:
271 };
272 
274 public:
276  virtual ~G4VisCommandSceneAddLogo ();
278  void SetNewValue (G4UIcommand* command, G4String newValue);
279 private:
282  // Direction of outward-facing normal to front face of logo.
284  struct G4Logo {
285  G4Logo(G4double height, const G4VisAttributes&);
286  ~G4Logo();
288  private:
291  };
293 };
294 
296 public:
298  virtual ~G4VisCommandSceneAddLogo2D ();
300  void SetNewValue (G4UIcommand* command, G4String newValue);
301 private:
304  struct Logo2D {
305  Logo2D
306  (G4VisManager* vm, G4int size,
307  G4double x, G4double y, G4Text::Layout layout):
308  fpVisManager(vm), fSize(size),
309  fX(x), fY(y), fLayout(layout) {}
315  };
317 };
318 
320 public:
324  void SetNewValue (G4UIcommand* command, G4String newValue);
325 private:
329 };
330 
332 public:
334  virtual ~G4VisCommandSceneAddPSHits ();
336  void SetNewValue (G4UIcommand* command, G4String newValue);
337 private:
341 };
342 
344 public:
346  virtual ~G4VisCommandSceneAddScale ();
348  void SetNewValue (G4UIcommand* command, G4String newValue);
349 private:
353 };
354 
356 public:
358  virtual ~G4VisCommandSceneAddText ();
360  void SetNewValue (G4UIcommand* command, G4String newValue);
361 private:
365 };
366 
368 public:
370  virtual ~G4VisCommandSceneAddText2D ();
372  void SetNewValue (G4UIcommand* command, G4String newValue);
373 private:
376  struct G4Text2D {
377  G4Text2D(const G4Text&);
379  private:
381  };
383 };
384 
386 public:
390  void SetNewValue (G4UIcommand* command, G4String newValue);
391 private:
396 };
397 
399 public:
403  void SetNewValue (G4UIcommand* command, G4String newValue);
404 private:
411 };
412 
414 public:
416  virtual ~G4VisCommandSceneAddVolume ();
418  void SetNewValue (G4UIcommand* command, G4String newValue);
419 private:
423 };
424 
425 #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 &)
void operator()(G4VGraphicsScene &, const G4Transform3D &)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
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)
const char * name(G4int ptype)
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)
G4VisCommandSceneAddExtent & operator=(const G4VisCommandSceneAddExtent &)
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)
Extent(G4double xmin, G4double xmax, G4double ymin, G4double ymax, G4double zmin, G4double zmax)
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)
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)