[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: G4VisCommandsScene.hh,v 1.19 2006/11/14 14:59:54 allison Exp $ |
---|
| 28 | // GEANT4 tag $Name: geant4-08-02-patch-01 $ |
---|
| 29 | |
---|
| 30 | // /vis/scene commands - John Allison 9th August 1998 |
---|
| 31 | |
---|
| 32 | #ifndef G4VISCOMMANDSSCENE_HH |
---|
| 33 | #define G4VISCOMMANDSSCENE_HH |
---|
| 34 | |
---|
| 35 | #include "G4VVisCommand.hh" |
---|
| 36 | |
---|
| 37 | class G4UIcommand; |
---|
| 38 | class G4UIcmdWithAString; |
---|
| 39 | class G4UIcmdWithoutParameter; |
---|
| 40 | |
---|
| 41 | class G4VVisCommandScene: public G4VVisCommand { |
---|
| 42 | public: |
---|
| 43 | G4VVisCommandScene (); |
---|
| 44 | virtual ~G4VVisCommandScene (); |
---|
| 45 | protected: |
---|
| 46 | G4String CurrentSceneName (); |
---|
| 47 | private: |
---|
| 48 | G4VVisCommandScene (const G4VVisCommandScene&); |
---|
| 49 | G4VVisCommandScene& operator = (const G4VVisCommandScene&); |
---|
| 50 | }; |
---|
| 51 | |
---|
| 52 | class G4VisCommandSceneCreate: public G4VVisCommandScene { |
---|
| 53 | public: |
---|
| 54 | G4VisCommandSceneCreate (); |
---|
| 55 | virtual ~G4VisCommandSceneCreate (); |
---|
| 56 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 57 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 58 | private: |
---|
| 59 | G4VisCommandSceneCreate (const G4VisCommandSceneCreate&); |
---|
| 60 | G4VisCommandSceneCreate& operator = (const G4VisCommandSceneCreate&); |
---|
| 61 | G4String NextName (); |
---|
| 62 | G4UIcmdWithAString* fpCommand; |
---|
| 63 | G4int fId; |
---|
| 64 | }; |
---|
| 65 | |
---|
| 66 | class G4VisCommandSceneEndOfEventAction: public G4VVisCommandScene { |
---|
| 67 | public: |
---|
| 68 | G4VisCommandSceneEndOfEventAction (); |
---|
| 69 | virtual ~G4VisCommandSceneEndOfEventAction (); |
---|
| 70 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 71 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 72 | private: |
---|
| 73 | G4VisCommandSceneEndOfEventAction (const G4VisCommandSceneEndOfEventAction&); |
---|
| 74 | G4VisCommandSceneEndOfEventAction& operator = |
---|
| 75 | (const G4VisCommandSceneEndOfEventAction&); |
---|
| 76 | G4UIcommand* fpCommand; |
---|
| 77 | }; |
---|
| 78 | |
---|
| 79 | class G4VisCommandSceneEndOfRunAction: public G4VVisCommandScene { |
---|
| 80 | public: |
---|
| 81 | G4VisCommandSceneEndOfRunAction (); |
---|
| 82 | virtual ~G4VisCommandSceneEndOfRunAction (); |
---|
| 83 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 84 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 85 | private: |
---|
| 86 | G4VisCommandSceneEndOfRunAction (const G4VisCommandSceneEndOfRunAction&); |
---|
| 87 | G4VisCommandSceneEndOfRunAction& operator = |
---|
| 88 | (const G4VisCommandSceneEndOfRunAction&); |
---|
| 89 | G4UIcmdWithAString* fpCommand; |
---|
| 90 | }; |
---|
| 91 | |
---|
| 92 | class G4VisCommandSceneList: public G4VVisCommandScene { |
---|
| 93 | public: |
---|
| 94 | G4VisCommandSceneList (); |
---|
| 95 | virtual ~G4VisCommandSceneList (); |
---|
| 96 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 97 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 98 | private: |
---|
| 99 | G4VisCommandSceneList (const G4VisCommandSceneList&); |
---|
| 100 | G4VisCommandSceneList& operator = (const G4VisCommandSceneList&); |
---|
| 101 | G4UIcommand* fpCommand; |
---|
| 102 | }; |
---|
| 103 | |
---|
| 104 | class G4VisCommandSceneNotifyHandlers: public G4VVisCommandScene { |
---|
| 105 | public: |
---|
| 106 | G4VisCommandSceneNotifyHandlers (); |
---|
| 107 | virtual ~G4VisCommandSceneNotifyHandlers (); |
---|
| 108 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 109 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 110 | private: |
---|
| 111 | G4VisCommandSceneNotifyHandlers (const G4VisCommandSceneNotifyHandlers&); |
---|
| 112 | G4VisCommandSceneNotifyHandlers& operator = |
---|
| 113 | (const G4VisCommandSceneNotifyHandlers&); |
---|
| 114 | G4UIcommand* fpCommand; |
---|
| 115 | }; |
---|
| 116 | |
---|
| 117 | class G4VisCommandSceneSelect: public G4VVisCommandScene { |
---|
| 118 | public: |
---|
| 119 | G4VisCommandSceneSelect (); |
---|
| 120 | virtual ~G4VisCommandSceneSelect (); |
---|
| 121 | G4String GetCurrentValue (G4UIcommand* command); |
---|
| 122 | void SetNewValue (G4UIcommand* command, G4String newValue); |
---|
| 123 | private: |
---|
| 124 | G4VisCommandSceneSelect (const G4VisCommandSceneSelect&); |
---|
| 125 | G4VisCommandSceneSelect& operator = (const G4VisCommandSceneSelect&); |
---|
| 126 | G4UIcmdWithAString* fpCommand; |
---|
| 127 | }; |
---|
| 128 | |
---|
| 129 | #endif |
---|