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/ top level commands - John Allison 5th February 2001 29 30 #ifndef G4VISCOMMANDS_HH 31 #define G4VISCOMMANDS_HH 32 33 #include "G4VVisCommand.hh" 34 35 class G4UIcmdWithABool; 36 class G4UIcmdWithAString; 37 class G4UIcmdWithoutParameter; 38 39 class G4VisCommandAbortReviewKeptEvents: public G4VVisCommand { 40 public: 41 G4VisCommandAbortReviewKeptEvents (); 42 virtual ~G4VisCommandAbortReviewKeptEvents (); 43 G4String GetCurrentValue (G4UIcommand* command); 44 void SetNewValue (G4UIcommand* command, G4String newValue); 45 private: 46 G4VisCommandAbortReviewKeptEvents (const G4VisCommandAbortReviewKeptEvents&); 47 G4VisCommandAbortReviewKeptEvents& operator = (const G4VisCommandAbortReviewKeptEvents&); 48 G4UIcmdWithABool* fpCommand; 49 }; 50 51 class G4VisCommandAbortReviewPlots: public G4VVisCommand { 52 public: 53 G4VisCommandAbortReviewPlots (); 54 virtual ~G4VisCommandAbortReviewPlots (); 55 G4String GetCurrentValue (G4UIcommand* command); 56 void SetNewValue (G4UIcommand* command, G4String newValue); 57 private: 58 G4VisCommandAbortReviewPlots (const G4VisCommandAbortReviewPlots&); 59 G4VisCommandAbortReviewPlots& operator = (const G4VisCommandAbortReviewKeptEvents&); 60 G4UIcmdWithABool* fpCommand; 61 }; 62 63 class G4VisCommandDrawOnlyToBeKeptEvents: public G4VVisCommand { 64 public: 65 G4VisCommandDrawOnlyToBeKeptEvents (); 66 virtual ~G4VisCommandDrawOnlyToBeKeptEvents (); 67 G4String GetCurrentValue (G4UIcommand* command); 68 void SetNewValue (G4UIcommand* command, G4String newValue); 69 private: 70 G4VisCommandDrawOnlyToBeKeptEvents (const G4VisCommandDrawOnlyToBeKeptEvents&); 71 G4VisCommandDrawOnlyToBeKeptEvents& operator = (const G4VisCommandDrawOnlyToBeKeptEvents&); 72 G4UIcmdWithABool* fpCommand; 73 }; 74 75 class G4VisCommandEnable: public G4VVisCommand { 76 public: 77 G4VisCommandEnable (); 78 virtual ~G4VisCommandEnable (); 79 G4String GetCurrentValue (G4UIcommand* command); 80 void SetNewValue (G4UIcommand* command, G4String newValue); 81 private: 82 G4VisCommandEnable (const G4VisCommandEnable&); 83 G4VisCommandEnable& operator = (const G4VisCommandEnable&); 84 G4UIcmdWithABool* fpCommand; 85 G4UIcmdWithoutParameter* fpCommand1; 86 }; 87 88 class G4VisCommandInitialize: public G4VVisCommand { 89 public: 90 G4VisCommandInitialize (); 91 virtual ~G4VisCommandInitialize (); 92 void SetNewValue (G4UIcommand* command, G4String newValue); 93 private: 94 G4VisCommandInitialize (const G4VisCommandInitialize&); 95 G4VisCommandInitialize& operator = (const G4VisCommandInitialize&); 96 G4UIcmdWithoutParameter* fpCommand; 97 }; 98 99 class G4VisCommandList: public G4VVisCommand { 100 public: 101 G4VisCommandList (); 102 virtual ~G4VisCommandList (); 103 G4String GetCurrentValue (G4UIcommand* command); 104 void SetNewValue (G4UIcommand* command, G4String newValue); 105 private: 106 G4VisCommandList (const G4VisCommandList&); 107 G4VisCommandList& operator = (const G4VisCommandList&); 108 G4UIcmdWithAString* fpCommand; 109 }; 110 111 class G4VisCommandReviewKeptEvents: public G4VVisCommand { 112 public: 113 G4VisCommandReviewKeptEvents (); 114 virtual ~G4VisCommandReviewKeptEvents (); 115 G4String GetCurrentValue (G4UIcommand* command); 116 void SetNewValue (G4UIcommand* command, G4String newValue); 117 private: 118 G4VisCommandReviewKeptEvents (const G4VisCommandReviewKeptEvents&); 119 G4VisCommandReviewKeptEvents& operator = (const G4VisCommandReviewKeptEvents&); 120 G4UIcmdWithAString* fpCommand; 121 }; 122 123 class G4VisCommandReviewPlots: public G4VVisCommand { 124 public: 125 G4VisCommandReviewPlots (); 126 virtual ~G4VisCommandReviewPlots (); 127 G4String GetCurrentValue (G4UIcommand* command); 128 void SetNewValue (G4UIcommand* command, G4String newValue); 129 private: 130 G4VisCommandReviewPlots (const G4VisCommandReviewPlots&); 131 G4VisCommandReviewPlots& operator = (const G4VisCommandReviewPlots&); 132 G4UIcmdWithoutParameter* fpCommand; 133 }; 134 135 class G4VisCommandVerbose: public G4VVisCommand { 136 public: 137 G4VisCommandVerbose (); 138 virtual ~G4VisCommandVerbose (); 139 G4String GetCurrentValue (G4UIcommand* command); 140 void SetNewValue (G4UIcommand* command, G4String newValue); 141 private: 142 G4VisCommandVerbose (const G4VisCommandVerbose&); 143 G4VisCommandVerbose& operator = (const G4VisCommandVerbose&); 144 G4UIcmdWithAString* fpCommand; 145 }; 146 147 #endif 148