[531] | 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: G4VisCommandsViewer.hh,v 1.23 2006/09/13 13:17:29 allison Exp $ |
---|
[944] | 28 | // GEANT4 tag $Name: $ |
---|
[531] | 29 | |
---|
| 30 | // /vis/viewer commands - John Allison 25th October 1998 |
---|
| 31 | |
---|
| 32 | #ifndef G4VISCOMMANDSVIEWER_HH |
---|
| 33 | #define G4VISCOMMANDSVIEWER_HH |
---|
| 34 | |
---|
| 35 | #include "G4VVisCommand.hh" |
---|
| 36 | |
---|
| 37 | class G4VViewer; |
---|
| 38 | class G4ViewParameters; |
---|
| 39 | class G4UIcommand; |
---|
| 40 | class G4UIcmdWithoutParameter; |
---|
| 41 | class G4UIcmdWithAString; |
---|
| 42 | class G4UIcmdWithADouble; |
---|
| 43 | class G4UIcmdWithADoubleAndUnit; |
---|
| 44 | class G4UIcmdWith3Vector; |
---|
| 45 | |
---|
| 46 | class G4VVisCommandViewer: public G4VVisCommand { |
---|
| 47 | public: |
---|
| 48 | G4VVisCommandViewer (); |
---|
| 49 | virtual ~G4VVisCommandViewer (); |
---|
| 50 | protected: |
---|
| 51 | void SetViewParameters(G4VViewer*, const G4ViewParameters&); |
---|
| 52 | private: |
---|
| 53 | G4VVisCommandViewer (const G4VVisCommandViewer&); |
---|
| 54 | G4VVisCommandViewer& operator = (const G4VVisCommandViewer&); |
---|
| 55 | }; |
---|
| 56 | |
---|
| 57 | class G4VisCommandViewerAddCutawayPlane: public G4VVisCommandViewer { |
---|
| 58 | public: |
---|
| 59 | G4VisCommandViewerAddCutawayPlane (); |
---|
| 60 | virtual ~G4VisCommandViewerAddCutawayPlane (); |
---|
| 61 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 62 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 63 | private: |
---|
| 64 | G4VisCommandViewerAddCutawayPlane (const G4VisCommandViewerAddCutawayPlane&); |
---|
| 65 | G4VisCommandViewerAddCutawayPlane& operator = (const G4VisCommandViewerAddCutawayPlane&); |
---|
| 66 | G4UIcommand* fpCommand; |
---|
| 67 | }; |
---|
| 68 | |
---|
| 69 | class G4VisCommandViewerChangeCutawayPlane: public G4VVisCommandViewer { |
---|
| 70 | public: |
---|
| 71 | G4VisCommandViewerChangeCutawayPlane (); |
---|
| 72 | virtual ~G4VisCommandViewerChangeCutawayPlane (); |
---|
| 73 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 74 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 75 | private: |
---|
| 76 | G4VisCommandViewerChangeCutawayPlane (const G4VisCommandViewerChangeCutawayPlane&); |
---|
| 77 | G4VisCommandViewerChangeCutawayPlane& operator = (const G4VisCommandViewerChangeCutawayPlane&); |
---|
| 78 | G4UIcommand* fpCommand; |
---|
| 79 | }; |
---|
| 80 | |
---|
| 81 | class G4VisCommandViewerClear: public G4VVisCommandViewer { |
---|
| 82 | public: |
---|
| 83 | G4VisCommandViewerClear (); |
---|
| 84 | virtual ~G4VisCommandViewerClear (); |
---|
| 85 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 86 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 87 | private: |
---|
| 88 | G4VisCommandViewerClear (const G4VisCommandViewerClear&); |
---|
| 89 | G4VisCommandViewerClear& operator = (const G4VisCommandViewerClear&); |
---|
| 90 | G4UIcmdWithAString* fpCommand; |
---|
| 91 | }; |
---|
| 92 | |
---|
| 93 | class G4VisCommandViewerClearCutawayPlanes: public G4VVisCommandViewer { |
---|
| 94 | public: |
---|
| 95 | G4VisCommandViewerClearCutawayPlanes (); |
---|
| 96 | virtual ~G4VisCommandViewerClearCutawayPlanes (); |
---|
| 97 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 98 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 99 | private: |
---|
| 100 | G4VisCommandViewerClearCutawayPlanes (const G4VisCommandViewerClearCutawayPlanes&); |
---|
| 101 | G4VisCommandViewerClearCutawayPlanes& operator = (const G4VisCommandViewerClearCutawayPlanes&); |
---|
| 102 | G4UIcmdWithoutParameter* fpCommand; |
---|
| 103 | }; |
---|
| 104 | |
---|
| 105 | class G4VisCommandViewerClearTransients: public G4VVisCommandViewer { |
---|
| 106 | public: |
---|
| 107 | G4VisCommandViewerClearTransients (); |
---|
| 108 | virtual ~G4VisCommandViewerClearTransients (); |
---|
| 109 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 110 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 111 | private: |
---|
| 112 | G4VisCommandViewerClearTransients (const G4VisCommandViewerClearTransients&); |
---|
| 113 | G4VisCommandViewerClearTransients& operator = |
---|
| 114 | (const G4VisCommandViewerClearTransients&); |
---|
| 115 | G4UIcmdWithAString* fpCommand; |
---|
| 116 | }; |
---|
| 117 | |
---|
| 118 | class G4VisCommandViewerClone: public G4VVisCommandViewer { |
---|
| 119 | public: |
---|
| 120 | G4VisCommandViewerClone (); |
---|
| 121 | virtual ~G4VisCommandViewerClone (); |
---|
| 122 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 123 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 124 | private: |
---|
| 125 | G4VisCommandViewerClone (const G4VisCommandViewerClone&); |
---|
| 126 | G4VisCommandViewerClone& operator = |
---|
| 127 | (const G4VisCommandViewerClone&); |
---|
| 128 | G4UIcommand* fpCommand; |
---|
| 129 | }; |
---|
| 130 | |
---|
| 131 | class G4VisCommandViewerCreate: public G4VVisCommandViewer { |
---|
| 132 | public: |
---|
| 133 | G4VisCommandViewerCreate (); |
---|
| 134 | virtual ~G4VisCommandViewerCreate (); |
---|
| 135 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 136 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 137 | private: |
---|
| 138 | G4VisCommandViewerCreate (const G4VisCommandViewerCreate&); |
---|
| 139 | G4VisCommandViewerCreate& operator = (const G4VisCommandViewerCreate&); |
---|
| 140 | G4String NextName (); |
---|
| 141 | G4UIcommand* fpCommand; |
---|
| 142 | G4int fId; |
---|
| 143 | }; |
---|
| 144 | |
---|
| 145 | class G4VisCommandViewerDolly: public G4VVisCommandViewer { |
---|
| 146 | public: |
---|
| 147 | G4VisCommandViewerDolly (); |
---|
| 148 | virtual ~G4VisCommandViewerDolly (); |
---|
| 149 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 150 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 151 | private: |
---|
| 152 | G4VisCommandViewerDolly (const G4VisCommandViewerDolly&); |
---|
| 153 | G4VisCommandViewerDolly& operator = (const G4VisCommandViewerDolly&); |
---|
| 154 | G4UIcmdWithADoubleAndUnit* fpCommandDolly; |
---|
| 155 | G4UIcmdWithADoubleAndUnit* fpCommandDollyTo; |
---|
| 156 | G4double fDollyIncrement; |
---|
| 157 | G4double fDollyTo; |
---|
| 158 | }; |
---|
| 159 | |
---|
| 160 | class G4VisCommandViewerFlush: public G4VVisCommandViewer { |
---|
| 161 | public: |
---|
| 162 | G4VisCommandViewerFlush (); |
---|
| 163 | virtual ~G4VisCommandViewerFlush (); |
---|
| 164 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 165 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 166 | private: |
---|
| 167 | G4VisCommandViewerFlush (const G4VisCommandViewerFlush&); |
---|
| 168 | G4VisCommandViewerFlush& operator = (const G4VisCommandViewerFlush&); |
---|
| 169 | G4UIcmdWithAString* fpCommand; |
---|
| 170 | }; |
---|
| 171 | |
---|
| 172 | class G4VisCommandViewerList: public G4VVisCommandViewer { |
---|
| 173 | public: |
---|
| 174 | G4VisCommandViewerList (); |
---|
| 175 | virtual ~G4VisCommandViewerList (); |
---|
| 176 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 177 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 178 | private: |
---|
| 179 | G4VisCommandViewerList (const G4VisCommandViewerList&); |
---|
| 180 | G4VisCommandViewerList& operator = (const G4VisCommandViewerList&); |
---|
| 181 | G4UIcommand* fpCommand; |
---|
| 182 | }; |
---|
| 183 | |
---|
| 184 | class G4VisCommandViewerPan: public G4VVisCommandViewer { |
---|
| 185 | public: |
---|
| 186 | G4VisCommandViewerPan (); |
---|
| 187 | virtual ~G4VisCommandViewerPan (); |
---|
| 188 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 189 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 190 | private: |
---|
| 191 | G4VisCommandViewerPan (const G4VisCommandViewerPan&); |
---|
| 192 | G4VisCommandViewerPan& operator = (const G4VisCommandViewerPan&); |
---|
| 193 | G4UIcommand* fpCommandPan; |
---|
| 194 | G4UIcommand* fpCommandPanTo; |
---|
| 195 | G4double fPanIncrementRight, fPanIncrementUp; |
---|
| 196 | G4double fPanToRight, fPanToUp; |
---|
| 197 | }; |
---|
| 198 | |
---|
| 199 | class G4VisCommandViewerReset: public G4VVisCommandViewer { |
---|
| 200 | public: |
---|
| 201 | G4VisCommandViewerReset (); |
---|
| 202 | virtual ~G4VisCommandViewerReset (); |
---|
| 203 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 204 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 205 | private: |
---|
| 206 | G4VisCommandViewerReset (const G4VisCommandViewerReset&); |
---|
| 207 | G4VisCommandViewerReset& operator = (const G4VisCommandViewerReset&); |
---|
| 208 | G4UIcmdWithAString* fpCommand; |
---|
| 209 | }; |
---|
| 210 | |
---|
| 211 | class G4VisCommandViewerRefresh: public G4VVisCommandViewer { |
---|
| 212 | public: |
---|
| 213 | G4VisCommandViewerRefresh (); |
---|
| 214 | virtual ~G4VisCommandViewerRefresh (); |
---|
| 215 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 216 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 217 | private: |
---|
| 218 | G4VisCommandViewerRefresh (const G4VisCommandViewerRefresh&); |
---|
| 219 | G4VisCommandViewerRefresh& operator = (const G4VisCommandViewerRefresh&); |
---|
| 220 | G4UIcmdWithAString* fpCommand; |
---|
| 221 | }; |
---|
| 222 | |
---|
| 223 | class G4VisCommandViewerRebuild: public G4VVisCommandViewer { |
---|
| 224 | public: |
---|
| 225 | G4VisCommandViewerRebuild (); |
---|
| 226 | virtual ~G4VisCommandViewerRebuild (); |
---|
| 227 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 228 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 229 | private: |
---|
| 230 | G4VisCommandViewerRebuild (const G4VisCommandViewerRebuild&); |
---|
| 231 | G4VisCommandViewerRebuild& operator = (const G4VisCommandViewerRebuild&); |
---|
| 232 | G4UIcmdWithAString* fpCommand; |
---|
| 233 | }; |
---|
| 234 | |
---|
| 235 | class G4VisCommandViewerScale: public G4VVisCommandViewer { |
---|
| 236 | public: |
---|
| 237 | G4VisCommandViewerScale (); |
---|
| 238 | virtual ~G4VisCommandViewerScale (); |
---|
| 239 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 240 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 241 | private: |
---|
| 242 | G4VisCommandViewerScale (const G4VisCommandViewerScale&); |
---|
| 243 | G4VisCommandViewerScale& operator = (const G4VisCommandViewerScale&); |
---|
| 244 | G4UIcmdWith3Vector* fpCommandScale; |
---|
| 245 | G4UIcmdWith3Vector* fpCommandScaleTo; |
---|
| 246 | G4Vector3D fScaleMultiplier; |
---|
| 247 | G4Vector3D fScaleTo; |
---|
| 248 | }; |
---|
| 249 | |
---|
| 250 | class G4VisCommandViewerSelect: public G4VVisCommandViewer { |
---|
| 251 | public: |
---|
| 252 | G4VisCommandViewerSelect (); |
---|
| 253 | virtual ~G4VisCommandViewerSelect (); |
---|
| 254 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 255 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 256 | private: |
---|
| 257 | G4VisCommandViewerSelect (const G4VisCommandViewerSelect&); |
---|
| 258 | G4VisCommandViewerSelect& operator = (const G4VisCommandViewerSelect&); |
---|
| 259 | G4UIcmdWithAString* fpCommand; |
---|
| 260 | }; |
---|
| 261 | |
---|
| 262 | class G4VisCommandViewerUpdate: public G4VVisCommandViewer { |
---|
| 263 | public: |
---|
| 264 | G4VisCommandViewerUpdate (); |
---|
| 265 | virtual ~G4VisCommandViewerUpdate (); |
---|
| 266 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 267 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 268 | private: |
---|
| 269 | G4VisCommandViewerUpdate (const G4VisCommandViewerUpdate&); |
---|
| 270 | G4VisCommandViewerUpdate& operator = (const G4VisCommandViewerUpdate&); |
---|
| 271 | G4UIcmdWithAString* fpCommand; |
---|
| 272 | }; |
---|
| 273 | |
---|
| 274 | class G4VisCommandViewerZoom: public G4VVisCommandViewer { |
---|
| 275 | public: |
---|
| 276 | G4VisCommandViewerZoom (); |
---|
| 277 | virtual ~G4VisCommandViewerZoom (); |
---|
| 278 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 279 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 280 | private: |
---|
| 281 | G4VisCommandViewerZoom (const G4VisCommandViewerZoom&); |
---|
| 282 | G4VisCommandViewerZoom& operator = (const G4VisCommandViewerZoom&); |
---|
| 283 | G4UIcmdWithADouble* fpCommandZoom; |
---|
| 284 | G4UIcmdWithADouble* fpCommandZoomTo; |
---|
| 285 | G4double fZoomMultiplier; |
---|
| 286 | G4double fZoomTo; |
---|
| 287 | }; |
---|
| 288 | |
---|
| 289 | #endif |
---|