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

Last change on this file since 1170 was 1170, checked in by garnier, 15 years ago

update contre CVS

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