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/sceneHandler commands - John Allison 10th October 1998 00030 00031 #ifndef G4VISCOMMANDSSCENEHANDLER_HH 00032 #define G4VISCOMMANDSSCENEHANDLER_HH 00033 00034 #include "G4VVisCommand.hh" 00035 00036 class G4UIcommand; 00037 class G4UIcmdWithAString; 00038 00039 class G4VisCommandSceneHandlerAttach: public G4VVisCommand { 00040 public: 00041 // Uses compiler defaults for copy constructor and assignment. 00042 G4VisCommandSceneHandlerAttach (); 00043 ~G4VisCommandSceneHandlerAttach (); 00044 G4String GetCurrentValue (G4UIcommand* command); 00045 void SetNewValue (G4UIcommand* command, G4String newValue); 00046 private: 00047 G4UIcmdWithAString* fpCommand; 00048 }; 00049 00050 class G4VisCommandSceneHandlerCreate: public G4VVisCommand { 00051 public: 00052 // Uses compiler defaults for copy constructor and assignment. 00053 G4VisCommandSceneHandlerCreate (); 00054 ~G4VisCommandSceneHandlerCreate (); 00055 G4String GetCurrentValue (G4UIcommand* command); 00056 void SetNewValue (G4UIcommand* command, G4String newValue); 00057 private: 00058 G4String NextName (); 00059 G4UIcommand* fpCommand; 00060 G4int fId; 00061 }; 00062 00063 class G4VisCommandSceneHandlerList: public G4VVisCommand { 00064 public: 00065 // Uses compiler defaults for copy constructor and assignment. 00066 G4VisCommandSceneHandlerList (); 00067 ~G4VisCommandSceneHandlerList (); 00068 G4String GetCurrentValue (G4UIcommand* command); 00069 void SetNewValue (G4UIcommand* command, G4String newValue); 00070 private: 00071 G4UIcommand* fpCommand; 00072 }; 00073 00074 class G4VisCommandSceneHandlerSelect: public G4VVisCommand { 00075 public: 00076 // Uses compiler defaults for copy constructor and assignment. 00077 G4VisCommandSceneHandlerSelect (); 00078 ~G4VisCommandSceneHandlerSelect (); 00079 G4String GetCurrentValue (G4UIcommand* command); 00080 void SetNewValue (G4UIcommand* command, G4String newValue); 00081 private: 00082 G4UIcmdWithAString* fpCommand; 00083 }; 00084 00085 #endif