Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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$
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
38
39#include "G4Transform3D.hh"
40#include "G4VisAttributes.hh"
41#include "G4Polyline.hh"
42#include "G4Text.hh"
43#include "G4Timer.hh"
44
46public:
50 void SetNewValue (G4UIcommand* command, G4String newValue);
51private:
54 G4UIcommand* fpCommand;
55};
56
58public:
62 void SetNewValue (G4UIcommand* command, G4String newValue);
63private:
66 struct Arrow2D {
67 Arrow2D(G4double x1, G4double y1,
68 G4double x2, G4double y2,
69 G4double width, const G4Colour& colour);
70 void operator()(G4VGraphicsScene&, const G4Transform3D&);
71 G4Polyline fShaftPolyline;
72 G4Polyline fHeadPolyline;
73 G4double fWidth;
74 G4Colour fColour;
75 };
76 G4UIcommand* fpCommand;
77};
78
80public:
84 void SetNewValue (G4UIcommand* command, G4String newValue);
85private:
88 G4UIcommand* fpCommand;
89};
90
92public:
96 void SetNewValue (G4UIcommand* command, G4String newValue);
97private:
100 struct Date {
101 Date
102 (G4VisManager* vm, G4int size,
103 G4double x, G4double y, G4Text::Layout layout,
104 const G4String& date):
105 fpVisManager(vm), fSize(size),
106 fX(x), fY(y), fLayout(layout), fDate(date) {}
107 void operator()(G4VGraphicsScene&, const G4Transform3D&);
108 G4VisManager* fpVisManager;
109 G4Timer fTimer;
110 G4int fSize;
111 G4double fX, fY;
112 G4Text::Layout fLayout;
113 G4String fDate;
114 };
115 G4UIcommand* fpCommand;
116};
117
119public:
123 void SetNewValue (G4UIcommand* command, G4String newValue);
124private:
127 G4UIcmdWithoutParameter* fpCommand;
128};
129
131public:
135 void SetNewValue (G4UIcommand* command, G4String newValue);
136private:
139 struct EventID {
140 EventID(G4VisManager* vm, G4int size,
141 G4double x, G4double y, G4Text::Layout layout):
142 fpVisManager(vm), fSize(size),
143 fX(x), fY(y), fLayout(layout) {}
144 void operator()(G4VGraphicsScene&, const G4Transform3D&);
145 G4VisManager* fpVisManager;
146 G4int fSize;
147 G4double fX, fY;
148 G4Text::Layout fLayout;
149 };
150 G4UIcommand* fpCommand;
151};
152
154public:
158 void SetNewValue (G4UIcommand* command, G4String newValue);
159private:
162 struct Frame {
163 Frame(G4double size, G4double width, const G4Colour& colour):
164 fSize(size), fWidth(width), fColour(colour) {}
165 void operator()(G4VGraphicsScene&, const G4Transform3D&);
166 G4double fSize;
167 G4double fWidth;
168 G4Colour fColour;
169 };
170 G4UIcommand* fpCommand;
171};
172
174public:
178 void SetNewValue (G4UIcommand* command, G4String newValue);
179private:
183 G4UIcmdWithAString* fpCommand;
184};
185
187public:
189 virtual ~G4VisCommandSceneAddHits ();
191 void SetNewValue (G4UIcommand* command, G4String newValue);
192private:
195 G4UIcmdWithoutParameter* fpCommand;
196};
197
199public:
201 virtual ~G4VisCommandSceneAddLine ();
203 void SetNewValue (G4UIcommand* command, G4String newValue);
204private:
207 struct Line {
208 Line(G4double x1, G4double y1, G4double z1,
209 G4double x2, G4double y2, G4double z2,
210 G4double width, const G4Colour& colour);
211 void operator()(G4VGraphicsScene&, const G4Transform3D&);
212 G4Polyline fPolyline;
213 G4double fWidth;
214 G4Colour fColour;
215 };
216 G4UIcommand* fpCommand;
217};
218
220public:
224 void SetNewValue (G4UIcommand* command, G4String newValue);
225private:
228 struct Line2D {
229 Line2D(G4double x1, G4double y1,
230 G4double x2, G4double y2,
231 G4double width, const G4Colour& colour);
232 void operator()(G4VGraphicsScene&, const G4Transform3D&);
233 G4Polyline fPolyline;
234 G4double fWidth;
235 G4Colour fColour;
236 };
237 G4UIcommand* fpCommand;
238};
239
241public:
245 void SetNewValue (G4UIcommand* command, G4String newValue);
246private:
250 G4UIcommand* fpCommand;
251};
252
254public:
256 virtual ~G4VisCommandSceneAddLogo ();
258 void SetNewValue (G4UIcommand* command, G4String newValue);
259private:
262 // Direction of outward-facing normal to front face of logo.
263 enum Direction {X, minusX, Y, minusY, Z, minusZ};
264 struct G4Logo {
265 G4Logo(G4double height, const G4VisAttributes&);
266 ~G4Logo();
267 void operator()(G4VGraphicsScene&, const G4Transform3D&);
268 private:
269 G4double fHeight;
270 G4VisAttributes fVisAtts;
271 G4Polyhedron *fpG, *fp4;
272 };
273 G4UIcommand* fpCommand;
274};
275
277public:
281 void SetNewValue (G4UIcommand* command, G4String newValue);
282private:
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) {}
291 void operator()(G4VGraphicsScene&, const G4Transform3D&);
292 G4VisManager* fpVisManager;
293 G4int fSize;
294 G4double fX, fY;
295 G4Text::Layout fLayout;
296 };
297 G4UIcommand* fpCommand;
298};
299
301public:
305 void SetNewValue (G4UIcommand* command, G4String newValue);
306private:
309 G4UIcmdWithAString* fpCommand;
310};
311
313public:
317 void SetNewValue (G4UIcommand* command, G4String newValue);
318private:
321 G4UIcommand* fpCommand;
322};
323
325public:
327 virtual ~G4VisCommandSceneAddText ();
329 void SetNewValue (G4UIcommand* command, G4String newValue);
330private:
333 G4UIcommand* fpCommand;
334};
335
337public:
341 void SetNewValue (G4UIcommand* command, G4String newValue);
342private:
345 struct G4Text2D {
346 G4Text2D(const G4Text&);
347 void operator()(G4VGraphicsScene&, const G4Transform3D&);
348 private:
349 G4Text fText;
350 };
351 G4UIcommand* fpCommand;
352};
353
355public:
359 void SetNewValue (G4UIcommand* command, G4String newValue);
360private:
364 G4UIcmdWithAString* fpCommand;
365};
366
368public:
372 void SetNewValue (G4UIcommand* command, G4String newValue);
373private:
376 enum ActionType {runDuration, endOfEvent, endOfRun};
377 void AddVisAction(const G4String& name,G4VUserVisAction*,
378 G4Scene*,ActionType,G4VisManager::Verbosity);
379 G4UIcmdWithAString* fpCommand;
380};
381
383public:
387 void SetNewValue (G4UIcommand* command, G4String newValue);
388private:
391 G4UIcommand* fpCommand;
392};
393
394#endif
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
Definition: G4Text.hh:73
Layout
Definition: G4Text.hh:77
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)