source: trunk/source/visualization/management/include/G4VisCommandsSceneAdd.hh @ 1288

Last change on this file since 1288 was 1288, checked in by garnier, 14 years ago

update from CVS

  • Property svn:mime-type set to text/cpp
File size: 8.3 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.20 2010/05/30 11:30:49 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  G4UIcmdWithoutParameter* fpCommandUS;
66};
67
68class G4VisCommandSceneAddEventID: public G4VVisCommandScene {
69public:
70  G4VisCommandSceneAddEventID ();
71  virtual ~G4VisCommandSceneAddEventID ();
72  G4String GetCurrentValue (G4UIcommand* command);
73  void SetNewValue (G4UIcommand* command, G4String newValue);
74private:
75  G4VisCommandSceneAddEventID (const G4VisCommandSceneAddEventID&);
76  G4VisCommandSceneAddEventID& operator = (const G4VisCommandSceneAddEventID&);
77  struct EventID {
78    EventID(G4VisManager* vm, G4int size, G4double x, G4double y):
79      fpVisManager(vm), fSize(size), fX(x), fY(y) {}
80    void operator()(G4VGraphicsScene&, const G4Transform3D&);
81    G4VisManager* fpVisManager;
82    G4int fSize;
83    G4double fX, fY;
84  };
85  G4UIcommand* fpCommand;
86};
87
88class G4VisCommandSceneAddGhosts: public G4VVisCommandScene {
89public:
90  G4VisCommandSceneAddGhosts ();
91  virtual ~G4VisCommandSceneAddGhosts ();
92  G4String GetCurrentValue (G4UIcommand* command);
93  void SetNewValue (G4UIcommand* command, G4String newValue);
94private:
95  G4VisCommandSceneAddGhosts (const G4VisCommandSceneAddGhosts&);
96  G4VisCommandSceneAddGhosts& operator =
97  (const G4VisCommandSceneAddGhosts&);
98  G4UIcmdWithAString* fpCommand;
99};
100
101class G4VisCommandSceneAddHits: public G4VVisCommandScene {
102public:
103  G4VisCommandSceneAddHits ();
104  virtual ~G4VisCommandSceneAddHits ();
105  G4String GetCurrentValue (G4UIcommand* command);
106  void SetNewValue (G4UIcommand* command, G4String newValue);
107private:
108  G4VisCommandSceneAddHits (const G4VisCommandSceneAddHits&);
109  G4VisCommandSceneAddHits& operator = (const G4VisCommandSceneAddHits&);
110  G4UIcmdWithoutParameter* fpCommand;
111};
112
113class G4VisCommandSceneAddLogicalVolume: public G4VVisCommandScene {
114public:
115  G4VisCommandSceneAddLogicalVolume ();
116  virtual ~G4VisCommandSceneAddLogicalVolume ();
117  G4String GetCurrentValue (G4UIcommand* command);
118  void SetNewValue (G4UIcommand* command, G4String newValue);
119private:
120  G4VisCommandSceneAddLogicalVolume (const G4VisCommandSceneAddLogicalVolume&);
121  G4VisCommandSceneAddLogicalVolume& operator =
122  (const G4VisCommandSceneAddLogicalVolume&);
123  G4UIcommand* fpCommand;
124};
125
126class G4VisCommandSceneAddLogo: public G4VVisCommandScene {
127public:
128  G4VisCommandSceneAddLogo ();
129  virtual ~G4VisCommandSceneAddLogo ();
130  G4String GetCurrentValue (G4UIcommand* command);
131  void SetNewValue (G4UIcommand* command, G4String newValue);
132private:
133  G4VisCommandSceneAddLogo (const G4VisCommandSceneAddLogo&);
134  G4VisCommandSceneAddLogo& operator = (const G4VisCommandSceneAddLogo&);
135  class G4Logo {
136  public:
137    G4Logo(G4double height, const G4VisAttributes&);
138    ~G4Logo();
139    void operator()(G4VGraphicsScene&, const G4Transform3D&);
140  private:
141    G4double fHeight;
142    G4VisAttributes fVisAtts;
143    G4Polyhedron *fpG, *fp4;
144  };
145  G4UIcommand* fpCommand;
146};
147
148class G4VisCommandSceneAddPSHits: public G4VVisCommandScene {
149public:
150  G4VisCommandSceneAddPSHits ();
151  virtual ~G4VisCommandSceneAddPSHits ();
152  G4String GetCurrentValue (G4UIcommand* command);
153  void SetNewValue (G4UIcommand* command, G4String newValue);
154private:
155  G4VisCommandSceneAddPSHits (const G4VisCommandSceneAddPSHits&);
156  G4VisCommandSceneAddPSHits& operator = (const G4VisCommandSceneAddPSHits&);
157  G4UIcmdWithAString* fpCommand;
158};
159
160class G4VisCommandSceneAddScale: public G4VVisCommandScene {
161public:
162  G4VisCommandSceneAddScale ();
163  virtual ~G4VisCommandSceneAddScale ();
164  G4String GetCurrentValue (G4UIcommand* command);
165  void SetNewValue (G4UIcommand* command, G4String newValue);
166private:
167  G4VisCommandSceneAddScale (const G4VisCommandSceneAddScale&);
168  G4VisCommandSceneAddScale& operator = (const G4VisCommandSceneAddScale&);
169  G4UIcommand* fpCommand;
170};
171
172class G4VisCommandSceneAddText: public G4VVisCommandScene {
173public:
174  G4VisCommandSceneAddText ();
175  virtual ~G4VisCommandSceneAddText ();
176  G4String GetCurrentValue (G4UIcommand* command);
177  void SetNewValue (G4UIcommand* command, G4String newValue);
178private:
179  G4VisCommandSceneAddText (const G4VisCommandSceneAddText&);
180  G4VisCommandSceneAddText& operator = (const G4VisCommandSceneAddText&);
181  G4UIcommand* fpCommand;
182};
183
184class G4VisCommandSceneAddTrajectories: public G4VVisCommandScene {
185public:
186  G4VisCommandSceneAddTrajectories ();
187  virtual ~G4VisCommandSceneAddTrajectories ();
188  G4String GetCurrentValue (G4UIcommand* command);
189  void SetNewValue (G4UIcommand* command, G4String newValue);
190private:
191  G4VisCommandSceneAddTrajectories (const G4VisCommandSceneAddTrajectories&);
192  G4VisCommandSceneAddTrajectories& operator =
193  (const G4VisCommandSceneAddTrajectories&);
194  G4UIcmdWithAString* fpCommand;
195};
196
197class G4VisCommandSceneAddUserAction: public G4VVisCommandScene {
198public:
199  G4VisCommandSceneAddUserAction ();
200  virtual ~G4VisCommandSceneAddUserAction ();
201  G4String GetCurrentValue (G4UIcommand* command);
202  void SetNewValue (G4UIcommand* command, G4String newValue);
203private:
204  G4VisCommandSceneAddUserAction (const G4VisCommandSceneAddUserAction&);
205  G4VisCommandSceneAddUserAction& operator = (const G4VisCommandSceneAddUserAction&);
206  G4UIcommand* fpCommand;
207};
208
209class G4VisCommandSceneAddVolume: public G4VVisCommandScene {
210public:
211  G4VisCommandSceneAddVolume ();
212  virtual ~G4VisCommandSceneAddVolume ();
213  G4String GetCurrentValue (G4UIcommand* command);
214  void SetNewValue (G4UIcommand* command, G4String newValue);
215private:
216  G4VisCommandSceneAddVolume (const G4VisCommandSceneAddVolume&);
217  G4VisCommandSceneAddVolume& operator = (const G4VisCommandSceneAddVolume&);
218  G4UIcommand* fpCommand;
219};
220
221#endif
Note: See TracBrowser for help on using the repository browser.