00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 00029 // /vis/scene commands - John Allison 9th August 1998 00030 00031 #ifndef G4VISCOMMANDSSCENE_HH 00032 #define G4VISCOMMANDSSCENE_HH 00033 00034 #include "G4VVisCommand.hh" 00035 00036 class G4UIcommand; 00037 class G4UIcmdWithAString; 00038 class G4UIcmdWithoutParameter; 00039 00040 class G4VVisCommandScene: public G4VVisCommand { 00041 public: 00042 G4VVisCommandScene (); 00043 virtual ~G4VVisCommandScene (); 00044 protected: 00045 G4String CurrentSceneName (); 00046 private: 00047 G4VVisCommandScene (const G4VVisCommandScene&); 00048 G4VVisCommandScene& operator = (const G4VVisCommandScene&); 00049 }; 00050 00051 class G4VisCommandSceneActivateModel: public G4VVisCommandScene { 00052 public: 00053 G4VisCommandSceneActivateModel (); 00054 virtual ~G4VisCommandSceneActivateModel (); 00055 G4String GetCurrentValue (G4UIcommand* command); 00056 void SetNewValue (G4UIcommand* command, G4String newValue); 00057 private: 00058 G4VisCommandSceneActivateModel (const G4VisCommandSceneActivateModel&); 00059 G4VisCommandSceneActivateModel& operator = 00060 (const G4VisCommandSceneActivateModel&); 00061 G4UIcommand* fpCommand; 00062 }; 00063 00064 class G4VisCommandSceneCreate: public G4VVisCommandScene { 00065 public: 00066 G4VisCommandSceneCreate (); 00067 virtual ~G4VisCommandSceneCreate (); 00068 G4String GetCurrentValue (G4UIcommand* command); 00069 void SetNewValue (G4UIcommand* command, G4String newValue); 00070 private: 00071 G4VisCommandSceneCreate (const G4VisCommandSceneCreate&); 00072 G4VisCommandSceneCreate& operator = (const G4VisCommandSceneCreate&); 00073 G4String NextName (); 00074 G4UIcmdWithAString* fpCommand; 00075 G4int fId; 00076 }; 00077 00078 class G4VisCommandSceneEndOfEventAction: public G4VVisCommandScene { 00079 public: 00080 G4VisCommandSceneEndOfEventAction (); 00081 virtual ~G4VisCommandSceneEndOfEventAction (); 00082 G4String GetCurrentValue (G4UIcommand* command); 00083 void SetNewValue (G4UIcommand* command, G4String newValue); 00084 private: 00085 G4VisCommandSceneEndOfEventAction (const G4VisCommandSceneEndOfEventAction&); 00086 G4VisCommandSceneEndOfEventAction& operator = 00087 (const G4VisCommandSceneEndOfEventAction&); 00088 G4UIcommand* fpCommand; 00089 }; 00090 00091 class G4VisCommandSceneEndOfRunAction: public G4VVisCommandScene { 00092 public: 00093 G4VisCommandSceneEndOfRunAction (); 00094 virtual ~G4VisCommandSceneEndOfRunAction (); 00095 G4String GetCurrentValue (G4UIcommand* command); 00096 void SetNewValue (G4UIcommand* command, G4String newValue); 00097 private: 00098 G4VisCommandSceneEndOfRunAction (const G4VisCommandSceneEndOfRunAction&); 00099 G4VisCommandSceneEndOfRunAction& operator = 00100 (const G4VisCommandSceneEndOfRunAction&); 00101 G4UIcmdWithAString* fpCommand; 00102 }; 00103 00104 class G4VisCommandSceneList: public G4VVisCommandScene { 00105 public: 00106 G4VisCommandSceneList (); 00107 virtual ~G4VisCommandSceneList (); 00108 G4String GetCurrentValue (G4UIcommand* command); 00109 void SetNewValue (G4UIcommand* command, G4String newValue); 00110 private: 00111 G4VisCommandSceneList (const G4VisCommandSceneList&); 00112 G4VisCommandSceneList& operator = (const G4VisCommandSceneList&); 00113 G4UIcommand* fpCommand; 00114 }; 00115 00116 class G4VisCommandSceneNotifyHandlers: public G4VVisCommandScene { 00117 public: 00118 G4VisCommandSceneNotifyHandlers (); 00119 virtual ~G4VisCommandSceneNotifyHandlers (); 00120 G4String GetCurrentValue (G4UIcommand* command); 00121 void SetNewValue (G4UIcommand* command, G4String newValue); 00122 private: 00123 G4VisCommandSceneNotifyHandlers (const G4VisCommandSceneNotifyHandlers&); 00124 G4VisCommandSceneNotifyHandlers& operator = 00125 (const G4VisCommandSceneNotifyHandlers&); 00126 G4UIcommand* fpCommand; 00127 }; 00128 00129 class G4VisCommandSceneSelect: public G4VVisCommandScene { 00130 public: 00131 G4VisCommandSceneSelect (); 00132 virtual ~G4VisCommandSceneSelect (); 00133 G4String GetCurrentValue (G4UIcommand* command); 00134 void SetNewValue (G4UIcommand* command, G4String newValue); 00135 private: 00136 G4VisCommandSceneSelect (const G4VisCommandSceneSelect&); 00137 G4VisCommandSceneSelect& operator = (const G4VisCommandSceneSelect&); 00138 G4UIcmdWithAString* fpCommand; 00139 }; 00140 00141 #endif