source: trunk/source/visualization/management/include/G4VisCommandsSceneAdd.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: 8.2 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: G4VisCommandsSceneAdd.hh,v 1.21 2010/06/03 10:17:44 allison Exp $
28// GEANT4 tag $Name:  $
29
30// /vis/scene commands - John Allison  9th August 1998
31
32#ifndef G4VISCOMMANDSSCENEADD_HH
33#define G4VISCOMMANDSSCENEADD_HH
34
35#include "G4VisCommandsScene.hh"
36
37class G4UIcmdWithoutParameter;
38class G4UIcmdWithAString;
39
40#include "G4Transform3D.hh"
41#include "G4VisAttributes.hh"
42
43class G4VisCommandSceneAddAxes: public G4VVisCommandScene {
44public:
45  G4VisCommandSceneAddAxes ();
46  virtual ~G4VisCommandSceneAddAxes ();
47  G4String GetCurrentValue (G4UIcommand* command);
48  void SetNewValue (G4UIcommand* command, G4String newValue);
49private:
50  G4VisCommandSceneAddAxes (const G4VisCommandSceneAddAxes&);
51  G4VisCommandSceneAddAxes& operator = (const G4VisCommandSceneAddAxes&);
52  G4UIcommand* fpCommand;
53};
54
55class G4VisCommandSceneAddDigis: public G4VVisCommandScene {
56public:
57  G4VisCommandSceneAddDigis ();
58  virtual ~G4VisCommandSceneAddDigis ();
59  G4String GetCurrentValue (G4UIcommand* command);
60  void SetNewValue (G4UIcommand* command, G4String newValue);
61private:
62  G4VisCommandSceneAddDigis (const G4VisCommandSceneAddDigis&);
63  G4VisCommandSceneAddDigis& operator = (const G4VisCommandSceneAddDigis&);
64  G4UIcmdWithoutParameter* fpCommand;
65};
66
67class G4VisCommandSceneAddEventID: public G4VVisCommandScene {
68public:
69  G4VisCommandSceneAddEventID ();
70  virtual ~G4VisCommandSceneAddEventID ();
71  G4String GetCurrentValue (G4UIcommand* command);
72  void SetNewValue (G4UIcommand* command, G4String newValue);
73private:
74  G4VisCommandSceneAddEventID (const G4VisCommandSceneAddEventID&);
75  G4VisCommandSceneAddEventID& operator = (const G4VisCommandSceneAddEventID&);
76  struct EventID {
77    EventID(G4VisManager* vm, G4int size, G4double x, G4double y):
78      fpVisManager(vm), fSize(size), fX(x), fY(y) {}
79    void operator()(G4VGraphicsScene&, const G4Transform3D&);
80    G4VisManager* fpVisManager;
81    G4int fSize;
82    G4double fX, fY;
83  };
84  G4UIcommand* fpCommand;
85};
86
87class G4VisCommandSceneAddGhosts: public G4VVisCommandScene {
88public:
89  G4VisCommandSceneAddGhosts ();
90  virtual ~G4VisCommandSceneAddGhosts ();
91  G4String GetCurrentValue (G4UIcommand* command);
92  void SetNewValue (G4UIcommand* command, G4String newValue);
93private:
94  G4VisCommandSceneAddGhosts (const G4VisCommandSceneAddGhosts&);
95  G4VisCommandSceneAddGhosts& operator =
96  (const G4VisCommandSceneAddGhosts&);
97  G4UIcmdWithAString* fpCommand;
98};
99
100class G4VisCommandSceneAddHits: public G4VVisCommandScene {
101public:
102  G4VisCommandSceneAddHits ();
103  virtual ~G4VisCommandSceneAddHits ();
104  G4String GetCurrentValue (G4UIcommand* command);
105  void SetNewValue (G4UIcommand* command, G4String newValue);
106private:
107  G4VisCommandSceneAddHits (const G4VisCommandSceneAddHits&);
108  G4VisCommandSceneAddHits& operator = (const G4VisCommandSceneAddHits&);
109  G4UIcmdWithoutParameter* fpCommand;
110};
111
112class G4VisCommandSceneAddLogicalVolume: public G4VVisCommandScene {
113public:
114  G4VisCommandSceneAddLogicalVolume ();
115  virtual ~G4VisCommandSceneAddLogicalVolume ();
116  G4String GetCurrentValue (G4UIcommand* command);
117  void SetNewValue (G4UIcommand* command, G4String newValue);
118private:
119  G4VisCommandSceneAddLogicalVolume (const G4VisCommandSceneAddLogicalVolume&);
120  G4VisCommandSceneAddLogicalVolume& operator =
121  (const G4VisCommandSceneAddLogicalVolume&);
122  G4UIcommand* fpCommand;
123};
124
125class G4VisCommandSceneAddLogo: public G4VVisCommandScene {
126public:
127  G4VisCommandSceneAddLogo ();
128  virtual ~G4VisCommandSceneAddLogo ();
129  G4String GetCurrentValue (G4UIcommand* command);
130  void SetNewValue (G4UIcommand* command, G4String newValue);
131private:
132  G4VisCommandSceneAddLogo (const G4VisCommandSceneAddLogo&);
133  G4VisCommandSceneAddLogo& operator = (const G4VisCommandSceneAddLogo&);
134  class G4Logo {
135  public:
136    G4Logo(G4double height, const G4VisAttributes&);
137    ~G4Logo();
138    void operator()(G4VGraphicsScene&, const G4Transform3D&);
139  private:
140    G4double fHeight;
141    G4VisAttributes fVisAtts;
142    G4Polyhedron *fpG, *fp4;
143  };
144  G4UIcommand* fpCommand;
145};
146
147class G4VisCommandSceneAddPSHits: public G4VVisCommandScene {
148public:
149  G4VisCommandSceneAddPSHits ();
150  virtual ~G4VisCommandSceneAddPSHits ();
151  G4String GetCurrentValue (G4UIcommand* command);
152  void SetNewValue (G4UIcommand* command, G4String newValue);
153private:
154  G4VisCommandSceneAddPSHits (const G4VisCommandSceneAddPSHits&);
155  G4VisCommandSceneAddPSHits& operator = (const G4VisCommandSceneAddPSHits&);
156  G4UIcmdWithAString* fpCommand;
157};
158
159class G4VisCommandSceneAddScale: public G4VVisCommandScene {
160public:
161  G4VisCommandSceneAddScale ();
162  virtual ~G4VisCommandSceneAddScale ();
163  G4String GetCurrentValue (G4UIcommand* command);
164  void SetNewValue (G4UIcommand* command, G4String newValue);
165private:
166  G4VisCommandSceneAddScale (const G4VisCommandSceneAddScale&);
167  G4VisCommandSceneAddScale& operator = (const G4VisCommandSceneAddScale&);
168  G4UIcommand* fpCommand;
169};
170
171class G4VisCommandSceneAddText: public G4VVisCommandScene {
172public:
173  G4VisCommandSceneAddText ();
174  virtual ~G4VisCommandSceneAddText ();
175  G4String GetCurrentValue (G4UIcommand* command);
176  void SetNewValue (G4UIcommand* command, G4String newValue);
177private:
178  G4VisCommandSceneAddText (const G4VisCommandSceneAddText&);
179  G4VisCommandSceneAddText& operator = (const G4VisCommandSceneAddText&);
180  G4UIcommand* fpCommand;
181};
182
183class G4VisCommandSceneAddTrajectories: public G4VVisCommandScene {
184public:
185  G4VisCommandSceneAddTrajectories ();
186  virtual ~G4VisCommandSceneAddTrajectories ();
187  G4String GetCurrentValue (G4UIcommand* command);
188  void SetNewValue (G4UIcommand* command, G4String newValue);
189private:
190  G4VisCommandSceneAddTrajectories (const G4VisCommandSceneAddTrajectories&);
191  G4VisCommandSceneAddTrajectories& operator =
192  (const G4VisCommandSceneAddTrajectories&);
193  G4UIcmdWithAString* fpCommand;
194};
195
196class G4VisCommandSceneAddUserAction: public G4VVisCommandScene {
197public:
198  G4VisCommandSceneAddUserAction ();
199  virtual ~G4VisCommandSceneAddUserAction ();
200  G4String GetCurrentValue (G4UIcommand* command);
201  void SetNewValue (G4UIcommand* command, G4String newValue);
202private:
203  G4VisCommandSceneAddUserAction (const G4VisCommandSceneAddUserAction&);
204  G4VisCommandSceneAddUserAction& operator = (const G4VisCommandSceneAddUserAction&);
205  G4UIcommand* fpCommand;
206};
207
208class G4VisCommandSceneAddVolume: public G4VVisCommandScene {
209public:
210  G4VisCommandSceneAddVolume ();
211  virtual ~G4VisCommandSceneAddVolume ();
212  G4String GetCurrentValue (G4UIcommand* command);
213  void SetNewValue (G4UIcommand* command, G4String newValue);
214private:
215  G4VisCommandSceneAddVolume (const G4VisCommandSceneAddVolume&);
216  G4VisCommandSceneAddVolume& operator = (const G4VisCommandSceneAddVolume&);
217  G4UIcommand* fpCommand;
218};
219
220#endif
Note: See TracBrowser for help on using the repository browser.