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: G4VisCommands.hh,v 1.8 2009-03-09 12:42:00 allison Exp $ 00028 // GEANT4 tag $Name: not supported by cvs2svn $ 00029 00030 // /vis/set - John Allison 21st March 2012 00031 // Set quantities for use in appropriate future commands. 00032 00033 #ifndef G4VISCOMMANDSSET_HH 00034 #define G4VISCOMMANDSSET_HH 00035 00036 #include "G4VVisCommand.hh" 00037 00038 class G4UIcommand; 00039 class G4UIcmdWithADouble; 00040 class G4UIcmdWithAString; 00041 00042 class G4VisCommandSetColour: public G4VVisCommand { 00043 public: 00044 G4VisCommandSetColour (); 00045 virtual ~G4VisCommandSetColour (); 00046 G4String GetCurrentValue (G4UIcommand* command); 00047 void SetNewValue (G4UIcommand* command, G4String newValue); 00048 private: 00049 G4VisCommandSetColour (const G4VisCommandSetColour&); 00050 G4VisCommandSetColour& operator = (const G4VisCommandSetColour&); 00051 G4UIcommand* fpCommand; 00052 }; 00053 00054 class G4VisCommandSetTextColour: public G4VVisCommand { 00055 public: 00056 G4VisCommandSetTextColour (); 00057 virtual ~G4VisCommandSetTextColour (); 00058 G4String GetCurrentValue (G4UIcommand* command); 00059 void SetNewValue (G4UIcommand* command, G4String newValue); 00060 private: 00061 G4VisCommandSetTextColour (const G4VisCommandSetTextColour&); 00062 G4VisCommandSetTextColour& operator = (const G4VisCommandSetTextColour&); 00063 G4UIcommand* fpCommand; 00064 }; 00065 00066 class G4VisCommandSetLineWidth: public G4VVisCommand { 00067 public: 00068 G4VisCommandSetLineWidth (); 00069 virtual ~G4VisCommandSetLineWidth (); 00070 G4String GetCurrentValue (G4UIcommand* command); 00071 void SetNewValue (G4UIcommand* command, G4String newValue); 00072 private: 00073 G4VisCommandSetLineWidth (const G4VisCommandSetLineWidth&); 00074 G4VisCommandSetLineWidth& operator = (const G4VisCommandSetLineWidth&); 00075 G4UIcmdWithADouble* fpCommand; 00076 }; 00077 00078 class G4VisCommandSetTextLayout: public G4VVisCommand { 00079 public: 00080 G4VisCommandSetTextLayout (); 00081 virtual ~G4VisCommandSetTextLayout (); 00082 G4String GetCurrentValue (G4UIcommand* command); 00083 void SetNewValue (G4UIcommand* command, G4String newValue); 00084 private: 00085 G4VisCommandSetTextLayout (const G4VisCommandSetTextLayout&); 00086 G4VisCommandSetTextLayout& operator = (const G4VisCommandSetTextLayout&); 00087 G4UIcmdWithAString* fpCommand; 00088 }; 00089 00090 class G4VisCommandSetTouchable: public G4VVisCommand { 00091 public: 00092 G4VisCommandSetTouchable (); 00093 virtual ~G4VisCommandSetTouchable (); 00094 G4String GetCurrentValue (G4UIcommand* command); 00095 void SetNewValue (G4UIcommand* command, G4String newValue); 00096 private: 00097 G4VisCommandSetTouchable (const G4VisCommandSetTouchable&); 00098 G4VisCommandSetTouchable& operator = (const G4VisCommandSetTouchable&); 00099 G4UIcommand* fpCommand; 00100 }; 00101 00102 #endif