Geant4 Cross Reference |
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 28 // /vis/viewer commands - John Allison 25th October 1998 29 30 #ifndef G4VISCOMMANDSVIEWER_HH 31 #define G4VISCOMMANDSVIEWER_HH 32 33 #include "G4VVisCommand.hh" 34 35 class G4VViewer; 36 class G4ViewParameters; 37 class G4UIcommand; 38 class G4UIcmdWithoutParameter; 39 class G4UIcmdWithAString; 40 class G4UIcmdWithADouble; 41 class G4UIcmdWithADoubleAndUnit; 42 class G4UIcmdWith3Vector; 43 44 class G4VisCommandViewerAddCutawayPlane: public G4VVisCommand { 45 public: 46 G4VisCommandViewerAddCutawayPlane (); 47 virtual ~G4VisCommandViewerAddCutawayPlane (); 48 G4String GetCurrentValue (G4UIcommand* command); 49 void SetNewValue (G4UIcommand* command, G4String newValue); 50 private: 51 G4VisCommandViewerAddCutawayPlane (const G4VisCommandViewerAddCutawayPlane&); 52 G4VisCommandViewerAddCutawayPlane& operator = (const G4VisCommandViewerAddCutawayPlane&); 53 G4UIcommand* fpCommand; 54 }; 55 56 class G4VisCommandViewerCentreOn: public G4VVisCommand { 57 public: 58 G4VisCommandViewerCentreOn (); 59 virtual ~G4VisCommandViewerCentreOn (); 60 G4String GetCurrentValue (G4UIcommand* command); 61 void SetNewValue (G4UIcommand* command, G4String newValue); 62 private: 63 G4VisCommandViewerCentreOn (const G4VisCommandViewerCentreOn&); 64 G4VisCommandViewerCentreOn& operator = (const G4VisCommandViewerCentreOn&); 65 G4UIcommand* fpCommandCentreOn; 66 G4UIcommand* fpCommandCentreAndZoomInOn; 67 }; 68 69 class G4VisCommandViewerChangeCutawayPlane: public G4VVisCommand { 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 G4VVisCommand { 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 G4VVisCommand { 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 G4VVisCommand { 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 G4VisCommandViewerClearVisAttributesModifiers: public G4VVisCommand { 119 public: 120 G4VisCommandViewerClearVisAttributesModifiers (); 121 virtual ~G4VisCommandViewerClearVisAttributesModifiers (); 122 G4String GetCurrentValue (G4UIcommand* command); 123 void SetNewValue (G4UIcommand* command, G4String newValue); 124 private: 125 G4VisCommandViewerClearVisAttributesModifiers (const G4VisCommandViewerClearVisAttributesModifiers&); 126 G4VisCommandViewerClearVisAttributesModifiers& operator = (const G4VisCommandViewerClearVisAttributesModifiers&); 127 G4UIcmdWithoutParameter* fpCommand; 128 }; 129 130 class G4VisCommandViewerClone: public G4VVisCommand { 131 public: 132 G4VisCommandViewerClone (); 133 virtual ~G4VisCommandViewerClone (); 134 G4String GetCurrentValue (G4UIcommand* command); 135 void SetNewValue (G4UIcommand* command, G4String newValue); 136 private: 137 G4VisCommandViewerClone (const G4VisCommandViewerClone&); 138 G4VisCommandViewerClone& operator = 139 (const G4VisCommandViewerClone&); 140 G4UIcommand* fpCommand; 141 }; 142 143 class G4VisCommandViewerColourByDensity: public G4VVisCommand { 144 public: 145 G4VisCommandViewerColourByDensity (); 146 virtual ~G4VisCommandViewerColourByDensity (); 147 G4String GetCurrentValue (G4UIcommand* command); 148 void SetNewValue (G4UIcommand* command, G4String newValue); 149 private: 150 G4VisCommandViewerColourByDensity (const G4VisCommandViewerColourByDensity&); 151 G4VisCommandViewerColourByDensity& operator = (const G4VisCommandViewerColourByDensity&); 152 G4UIcommand* fpCommand; 153 }; 154 155 class G4VisCommandViewerCopyViewFrom: public G4VVisCommand { 156 public: 157 G4VisCommandViewerCopyViewFrom (); 158 virtual ~G4VisCommandViewerCopyViewFrom (); 159 G4String GetCurrentValue (G4UIcommand* command); 160 void SetNewValue (G4UIcommand* command, G4String newValue); 161 private: 162 G4VisCommandViewerCopyViewFrom (const G4VisCommandViewerCopyViewFrom&); 163 G4VisCommandViewerCopyViewFrom& operator = 164 (const G4VisCommandViewerCopyViewFrom&); 165 G4UIcmdWithAString* fpCommand; 166 }; 167 168 class G4VisCommandViewerCreate: public G4VVisCommand { 169 public: 170 G4VisCommandViewerCreate (); 171 virtual ~G4VisCommandViewerCreate (); 172 G4String GetCurrentValue (G4UIcommand* command); 173 void SetNewValue (G4UIcommand* command, G4String newValue); 174 private: 175 G4VisCommandViewerCreate (const G4VisCommandViewerCreate&); 176 G4VisCommandViewerCreate& operator = (const G4VisCommandViewerCreate&); 177 G4String NextName (); 178 G4UIcommand* fpCommand; 179 G4int fId; 180 }; 181 182 class G4VisCommandViewerDolly: public G4VVisCommand { 183 public: 184 G4VisCommandViewerDolly (); 185 virtual ~G4VisCommandViewerDolly (); 186 G4String GetCurrentValue (G4UIcommand* command); 187 void SetNewValue (G4UIcommand* command, G4String newValue); 188 private: 189 G4VisCommandViewerDolly (const G4VisCommandViewerDolly&); 190 G4VisCommandViewerDolly& operator = (const G4VisCommandViewerDolly&); 191 G4UIcmdWithADoubleAndUnit* fpCommandDolly; 192 G4UIcmdWithADoubleAndUnit* fpCommandDollyTo; 193 G4double fDollyIncrement; 194 G4double fDollyTo; 195 }; 196 197 class G4VisCommandViewerFlush: public G4VVisCommand { 198 public: 199 G4VisCommandViewerFlush (); 200 virtual ~G4VisCommandViewerFlush (); 201 G4String GetCurrentValue (G4UIcommand* command); 202 void SetNewValue (G4UIcommand* command, G4String newValue); 203 private: 204 G4VisCommandViewerFlush (const G4VisCommandViewerFlush&); 205 G4VisCommandViewerFlush& operator = (const G4VisCommandViewerFlush&); 206 G4UIcmdWithAString* fpCommand; 207 }; 208 209 class G4VisCommandViewerInterpolate: public G4VVisCommand { 210 public: 211 G4VisCommandViewerInterpolate (); 212 virtual ~G4VisCommandViewerInterpolate (); 213 G4String GetCurrentValue (G4UIcommand* command); 214 void SetNewValue (G4UIcommand* command, G4String newValue); 215 private: 216 G4VisCommandViewerInterpolate (const G4VisCommandViewerInterpolate&); 217 G4VisCommandViewerInterpolate& operator = (const G4VisCommandViewerInterpolate&); 218 G4UIcommand* fpCommand; 219 }; 220 221 class G4VisCommandViewerList: public G4VVisCommand { 222 public: 223 G4VisCommandViewerList (); 224 virtual ~G4VisCommandViewerList (); 225 G4String GetCurrentValue (G4UIcommand* command); 226 void SetNewValue (G4UIcommand* command, G4String newValue); 227 private: 228 G4VisCommandViewerList (const G4VisCommandViewerList&); 229 G4VisCommandViewerList& operator = (const G4VisCommandViewerList&); 230 G4UIcommand* fpCommand; 231 }; 232 233 class G4VisCommandViewerPan: public G4VVisCommand { 234 public: 235 G4VisCommandViewerPan (); 236 virtual ~G4VisCommandViewerPan (); 237 G4String GetCurrentValue (G4UIcommand* command); 238 void SetNewValue (G4UIcommand* command, G4String newValue); 239 private: 240 G4VisCommandViewerPan (const G4VisCommandViewerPan&); 241 G4VisCommandViewerPan& operator = (const G4VisCommandViewerPan&); 242 G4UIcommand* fpCommandPan; 243 G4UIcommand* fpCommandPanTo; 244 G4double fPanIncrementRight, fPanIncrementUp; 245 G4double fPanToRight, fPanToUp; 246 }; 247 248 class G4VisCommandViewerRebuild: public G4VVisCommand { 249 public: 250 G4VisCommandViewerRebuild (); 251 virtual ~G4VisCommandViewerRebuild (); 252 G4String GetCurrentValue (G4UIcommand* command); 253 void SetNewValue (G4UIcommand* command, G4String newValue); 254 private: 255 G4VisCommandViewerRebuild (const G4VisCommandViewerRebuild&); 256 G4VisCommandViewerRebuild& operator = (const G4VisCommandViewerRebuild&); 257 G4UIcmdWithAString* fpCommand; 258 }; 259 260 class G4VisCommandViewerRefresh: public G4VVisCommand { 261 public: 262 G4VisCommandViewerRefresh (); 263 virtual ~G4VisCommandViewerRefresh (); 264 G4String GetCurrentValue (G4UIcommand* command); 265 void SetNewValue (G4UIcommand* command, G4String newValue); 266 private: 267 G4VisCommandViewerRefresh (const G4VisCommandViewerRefresh&); 268 G4VisCommandViewerRefresh& operator = (const G4VisCommandViewerRefresh&); 269 G4UIcmdWithAString* fpCommand; 270 }; 271 272 class G4VisCommandViewerReset: public G4VVisCommand { 273 public: 274 G4VisCommandViewerReset (); 275 virtual ~G4VisCommandViewerReset (); 276 G4String GetCurrentValue (G4UIcommand* command); 277 void SetNewValue (G4UIcommand* command, G4String newValue); 278 private: 279 G4VisCommandViewerReset (const G4VisCommandViewerReset&); 280 G4VisCommandViewerReset& operator = (const G4VisCommandViewerReset&); 281 G4UIcmdWithAString* fpCommand; 282 }; 283 284 class G4VisCommandViewerResetCameraParameters: public G4VVisCommand { 285 public: 286 G4VisCommandViewerResetCameraParameters (); 287 virtual ~G4VisCommandViewerResetCameraParameters (); 288 G4String GetCurrentValue (G4UIcommand* command); 289 void SetNewValue (G4UIcommand* command, G4String newValue); 290 private: 291 G4VisCommandViewerResetCameraParameters (const G4VisCommandViewerResetCameraParameters&); 292 G4VisCommandViewerResetCameraParameters& operator = (const G4VisCommandViewerResetCameraParameters&); 293 G4UIcmdWithAString* fpCommand; 294 }; 295 296 class G4VisCommandViewerSave: public G4VVisCommand { 297 public: 298 G4VisCommandViewerSave (); 299 virtual ~G4VisCommandViewerSave (); 300 G4String GetCurrentValue (G4UIcommand* command); 301 void SetNewValue (G4UIcommand* command, G4String newValue); 302 private: 303 G4VisCommandViewerSave (const G4VisCommandViewerSave&); 304 G4VisCommandViewerSave& operator = (const G4VisCommandViewerSave&); 305 G4UIcmdWithAString* fpCommand; 306 }; 307 308 class G4VisCommandViewerScale: public G4VVisCommand { 309 public: 310 G4VisCommandViewerScale (); 311 virtual ~G4VisCommandViewerScale (); 312 G4String GetCurrentValue (G4UIcommand* command); 313 void SetNewValue (G4UIcommand* command, G4String newValue); 314 private: 315 G4VisCommandViewerScale (const G4VisCommandViewerScale&); 316 G4VisCommandViewerScale& operator = (const G4VisCommandViewerScale&); 317 G4UIcmdWith3Vector* fpCommandScale; 318 G4UIcmdWith3Vector* fpCommandScaleTo; 319 G4Vector3D fScaleMultiplier; 320 G4Vector3D fScaleTo; 321 }; 322 323 class G4VisCommandViewerSelect: public G4VVisCommand { 324 public: 325 G4VisCommandViewerSelect (); 326 virtual ~G4VisCommandViewerSelect (); 327 G4String GetCurrentValue (G4UIcommand* command); 328 void SetNewValue (G4UIcommand* command, G4String newValue); 329 private: 330 G4VisCommandViewerSelect (const G4VisCommandViewerSelect&); 331 G4VisCommandViewerSelect& operator = (const G4VisCommandViewerSelect&); 332 G4UIcmdWithAString* fpCommand; 333 }; 334 335 class G4VisCommandViewerUpdate: public G4VVisCommand { 336 public: 337 G4VisCommandViewerUpdate (); 338 virtual ~G4VisCommandViewerUpdate (); 339 G4String GetCurrentValue (G4UIcommand* command); 340 void SetNewValue (G4UIcommand* command, G4String newValue); 341 private: 342 G4VisCommandViewerUpdate (const G4VisCommandViewerUpdate&); 343 G4VisCommandViewerUpdate& operator = (const G4VisCommandViewerUpdate&); 344 G4UIcmdWithAString* fpCommand; 345 }; 346 347 class G4VisCommandViewerZoom: public G4VVisCommand { 348 public: 349 G4VisCommandViewerZoom (); 350 virtual ~G4VisCommandViewerZoom (); 351 G4String GetCurrentValue (G4UIcommand* command); 352 void SetNewValue (G4UIcommand* command, G4String newValue); 353 private: 354 G4VisCommandViewerZoom (const G4VisCommandViewerZoom&); 355 G4VisCommandViewerZoom& operator = (const G4VisCommandViewerZoom&); 356 G4UIcmdWithADouble* fpCommandZoom; 357 G4UIcmdWithADouble* fpCommandZoomTo; 358 G4double fZoomMultiplier; 359 G4double fZoomTo; 360 }; 361 362 #endif 363