Geant4  10.02.p03
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:
61  virtual ~G4VisCommandSceneAddArrow2D ();
63  void SetNewValue (G4UIcommand* command, G4String newValue);
64 private:
67  struct Arrow2D {
70  G4double width, const G4Colour& colour);
71  void operator()(G4VGraphicsScene&, const G4Transform3D&);
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,
105  const G4String& date):
106  fpVisManager(vm), fSize(size),
107  fX(x), fY(y), fLayout(layout), fDate(date) {}
108  void operator()(G4VGraphicsScene&, const G4Transform3D&);
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) {}
145  void operator()(G4VGraphicsScene&, const G4Transform3D&);
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);
167  void operator()(G4VGraphicsScene&, const G4Transform3D&);
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) {}
185  void operator()(G4VGraphicsScene&, const G4Transform3D&);
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 {
230  G4double width, const G4Colour& colour);
231  void operator()(G4VGraphicsScene&, const G4Transform3D&);
235  };
237 };
238 
240 public:
242  virtual ~G4VisCommandSceneAddLine2D ();
244  void SetNewValue (G4UIcommand* command, G4String newValue);
245 private:
248  struct Line2D {
251  G4double width, const G4Colour& colour);
252  void operator()(G4VGraphicsScene&, const G4Transform3D&);
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.
283  enum Direction {X, minusX, Y, minusY, Z, minusZ};
284  struct G4Logo {
285  G4Logo(G4double height, const G4VisAttributes&);
286  ~G4Logo();
287  void operator()(G4VGraphicsScene&, const G4Transform3D&);
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) {}
310  void operator()(G4VGraphicsScene&, const G4Transform3D&);
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&);
378  void operator()(G4VGraphicsScene&, const G4Transform3D&);
379  private:
381  };
383 };
384 
386 public:
390  void SetNewValue (G4UIcommand* command, G4String newValue);
391 private:
396 };
397 
399 public:
401  virtual ~G4VisCommandSceneAddUserAction ();
403  void SetNewValue (G4UIcommand* command, G4String newValue);
404 private:
407  enum ActionType {runDuration, endOfEvent, endOfRun};
408  void AddVisAction(const G4String& name,G4VUserVisAction*,
411 };
412 
414 public:
416  virtual ~G4VisCommandSceneAddVolume ();
418  void SetNewValue (G4UIcommand* command, G4String newValue);
419 private:
423 };
424 
425 #endif
Double_t y2[nxs]
Definition: G4Text.hh:73
Double_t y1[nxs]
Double_t x2[nxs]
G4String name
Definition: TRTMaterials.hh:40
EventID(G4VisManager *vm, G4int size, G4double x, G4double y, G4Text::Layout layout)
Float_t Y
#define width
int G4int
Definition: G4Types.hh:78
Float_t X
Double_t y
G4String GetCurrentValue(G4UIcommand *command)
Double_t x1[nxs]
G4VisCommandSceneAddArrow & operator=(const G4VisCommandSceneAddArrow &)
Layout
Definition: G4Text.hh:77
G4UIcmdWithoutParameter * fpCommand
G4UIcmdWithoutParameter * fpCommand
double G4double
Definition: G4Types.hh:76
void SetNewValue(G4UIcommand *command, G4String newValue)
Frame(G4double size, G4double width, const G4Colour &colour)
static G4VisManager * fpVisManager