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/set - John Allison 21st March 2012 29 // Set quantities for use in appropriate future commands. 30 31 #ifndef G4VISCOMMANDSSET_HH 32 #define G4VISCOMMANDSSET_HH 33 34 #include "G4VVisCommand.hh" 35 36 class G4UIcommand; 37 class G4UIcmdWithAnInteger; 38 class G4UIcmdWithADouble; 39 class G4UIcmdWithAString; 40 41 class G4VisCommandSetArrow3DLineSegmentsPerCircle: public G4VVisCommand { 42 public: 43 G4VisCommandSetArrow3DLineSegmentsPerCircle (); 44 virtual ~G4VisCommandSetArrow3DLineSegmentsPerCircle (); 45 G4String GetCurrentValue (G4UIcommand* command); 46 void SetNewValue (G4UIcommand* command, G4String newValue); 47 private: 48 G4VisCommandSetArrow3DLineSegmentsPerCircle (const G4VisCommandSetArrow3DLineSegmentsPerCircle&); 49 G4VisCommandSetArrow3DLineSegmentsPerCircle& operator = (const G4VisCommandSetArrow3DLineSegmentsPerCircle&); 50 G4UIcmdWithAnInteger* fpCommand; 51 }; 52 53 class G4VisCommandSetColour: public G4VVisCommand { 54 public: 55 G4VisCommandSetColour (); 56 virtual ~G4VisCommandSetColour (); 57 G4String GetCurrentValue (G4UIcommand* command); 58 void SetNewValue (G4UIcommand* command, G4String newValue); 59 private: 60 G4VisCommandSetColour (const G4VisCommandSetColour&); 61 G4VisCommandSetColour& operator = (const G4VisCommandSetColour&); 62 G4UIcommand* fpCommand; 63 }; 64 65 class G4VisCommandSetExtentForField: public G4VVisCommand { 66 public: 67 G4VisCommandSetExtentForField (); 68 virtual ~G4VisCommandSetExtentForField (); 69 G4String GetCurrentValue (G4UIcommand* command); 70 void SetNewValue (G4UIcommand* command, G4String newValue); 71 private: 72 G4VisCommandSetExtentForField (const G4VisCommandSetExtentForField&); 73 G4VisCommandSetExtentForField& operator = (const G4VisCommandSetExtentForField&); 74 G4UIcommand* fpCommand; 75 }; 76 77 class G4VisCommandSetLineWidth: public G4VVisCommand { 78 public: 79 G4VisCommandSetLineWidth (); 80 virtual ~G4VisCommandSetLineWidth (); 81 G4String GetCurrentValue (G4UIcommand* command); 82 void SetNewValue (G4UIcommand* command, G4String newValue); 83 private: 84 G4VisCommandSetLineWidth (const G4VisCommandSetLineWidth&); 85 G4VisCommandSetLineWidth& operator = (const G4VisCommandSetLineWidth&); 86 G4UIcmdWithADouble* fpCommand; 87 }; 88 89 class G4VisCommandSetTextColour: public G4VVisCommand { 90 public: 91 G4VisCommandSetTextColour (); 92 virtual ~G4VisCommandSetTextColour (); 93 G4String GetCurrentValue (G4UIcommand* command); 94 void SetNewValue (G4UIcommand* command, G4String newValue); 95 private: 96 G4VisCommandSetTextColour (const G4VisCommandSetTextColour&); 97 G4VisCommandSetTextColour& operator = (const G4VisCommandSetTextColour&); 98 G4UIcommand* fpCommand; 99 }; 100 101 class G4VisCommandSetTextLayout: public G4VVisCommand { 102 public: 103 G4VisCommandSetTextLayout (); 104 virtual ~G4VisCommandSetTextLayout (); 105 G4String GetCurrentValue (G4UIcommand* command); 106 void SetNewValue (G4UIcommand* command, G4String newValue); 107 private: 108 G4VisCommandSetTextLayout (const G4VisCommandSetTextLayout&); 109 G4VisCommandSetTextLayout& operator = (const G4VisCommandSetTextLayout&); 110 G4UIcmdWithAString* fpCommand; 111 }; 112 113 class G4VisCommandSetTextSize: public G4VVisCommand { 114 public: 115 G4VisCommandSetTextSize (); 116 virtual ~G4VisCommandSetTextSize (); 117 G4String GetCurrentValue (G4UIcommand* command); 118 void SetNewValue (G4UIcommand* command, G4String newValue); 119 private: 120 G4VisCommandSetTextSize (const G4VisCommandSetTextSize&); 121 G4VisCommandSetTextSize& operator = (const G4VisCommandSetTextSize&); 122 G4UIcmdWithADouble* fpCommand; 123 }; 124 125 class G4VisCommandSetTouchable: public G4VVisCommand { 126 public: 127 G4VisCommandSetTouchable (); 128 virtual ~G4VisCommandSetTouchable (); 129 G4String GetCurrentValue (G4UIcommand* command); 130 void SetNewValue (G4UIcommand* command, G4String newValue); 131 private: 132 G4VisCommandSetTouchable (const G4VisCommandSetTouchable&); 133 G4VisCommandSetTouchable& operator = (const G4VisCommandSetTouchable&); 134 G4UIcommand* fpCommand; 135 }; 136 137 class G4VisCommandSetVolumeForField: public G4VVisCommand { 138 public: 139 G4VisCommandSetVolumeForField (); 140 virtual ~G4VisCommandSetVolumeForField (); 141 G4String GetCurrentValue (G4UIcommand* command); 142 void SetNewValue (G4UIcommand* command, G4String newValue); 143 private: 144 G4VisCommandSetVolumeForField (const G4VisCommandSetVolumeForField&); 145 G4VisCommandSetVolumeForField& operator = (const G4VisCommandSetVolumeForField&); 146 G4UIcommand* fpCommand; 147 }; 148 149 #endif 150