G4VisCommandsViewer.hh

Go to the documentation of this file.
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/viewer commands - John Allison  25th October 1998
00030 
00031 #ifndef G4VISCOMMANDSVIEWER_HH
00032 #define G4VISCOMMANDSVIEWER_HH
00033 
00034 #include "G4VVisCommand.hh"
00035 
00036 class G4VViewer;
00037 class G4ViewParameters;
00038 class G4UIcommand;
00039 class G4UIcmdWithoutParameter;
00040 class G4UIcmdWithAString;
00041 class G4UIcmdWithADouble;
00042 class G4UIcmdWithADoubleAndUnit;
00043 class G4UIcmdWith3Vector;
00044 
00045 class G4VVisCommandViewer: public G4VVisCommand {
00046 public:
00047   G4VVisCommandViewer ();
00048   virtual ~G4VVisCommandViewer ();
00049 protected:
00050   void SetViewParameters(G4VViewer*, const G4ViewParameters&);
00051   void RefreshIfRequired(G4VViewer*);
00052 private:
00053   G4VVisCommandViewer (const G4VVisCommandViewer&);
00054   G4VVisCommandViewer& operator = (const G4VVisCommandViewer&);
00055 };
00056 
00057 class G4VisCommandViewerAddCutawayPlane: public G4VVisCommandViewer {
00058 public:
00059   G4VisCommandViewerAddCutawayPlane ();
00060   virtual ~G4VisCommandViewerAddCutawayPlane ();
00061   G4String GetCurrentValue (G4UIcommand* command);
00062   void SetNewValue (G4UIcommand* command, G4String newValue);
00063 private:
00064   G4VisCommandViewerAddCutawayPlane (const G4VisCommandViewerAddCutawayPlane&);
00065   G4VisCommandViewerAddCutawayPlane& operator = (const G4VisCommandViewerAddCutawayPlane&);
00066   G4UIcommand* fpCommand;
00067 };
00068 
00069 class G4VisCommandViewerChangeCutawayPlane: public G4VVisCommandViewer {
00070 public:
00071   G4VisCommandViewerChangeCutawayPlane ();
00072   virtual ~G4VisCommandViewerChangeCutawayPlane ();
00073   G4String GetCurrentValue (G4UIcommand* command);
00074   void SetNewValue (G4UIcommand* command, G4String newValue);
00075 private:
00076   G4VisCommandViewerChangeCutawayPlane (const G4VisCommandViewerChangeCutawayPlane&);
00077   G4VisCommandViewerChangeCutawayPlane& operator = (const G4VisCommandViewerChangeCutawayPlane&);
00078   G4UIcommand* fpCommand;
00079 };
00080 
00081 class G4VisCommandViewerClear: public G4VVisCommandViewer {
00082 public:
00083   G4VisCommandViewerClear ();
00084   virtual ~G4VisCommandViewerClear ();
00085   G4String GetCurrentValue (G4UIcommand* command);
00086   void SetNewValue (G4UIcommand* command, G4String newValue);
00087 private:
00088   G4VisCommandViewerClear (const G4VisCommandViewerClear&);
00089   G4VisCommandViewerClear& operator = (const G4VisCommandViewerClear&);
00090   G4UIcmdWithAString* fpCommand;
00091 };
00092 
00093 class G4VisCommandViewerClearCutawayPlanes: public G4VVisCommandViewer {
00094 public:
00095   G4VisCommandViewerClearCutawayPlanes ();
00096   virtual ~G4VisCommandViewerClearCutawayPlanes ();
00097   G4String GetCurrentValue (G4UIcommand* command);
00098   void SetNewValue (G4UIcommand* command, G4String newValue);
00099 private:
00100   G4VisCommandViewerClearCutawayPlanes (const G4VisCommandViewerClearCutawayPlanes&);
00101   G4VisCommandViewerClearCutawayPlanes& operator = (const G4VisCommandViewerClearCutawayPlanes&);
00102   G4UIcmdWithoutParameter* fpCommand;
00103 };
00104 
00105 class G4VisCommandViewerClearTransients: public G4VVisCommandViewer {
00106 public:
00107   G4VisCommandViewerClearTransients ();
00108   virtual ~G4VisCommandViewerClearTransients ();
00109   G4String GetCurrentValue (G4UIcommand* command);
00110   void SetNewValue (G4UIcommand* command, G4String newValue);
00111 private:
00112   G4VisCommandViewerClearTransients (const G4VisCommandViewerClearTransients&);
00113   G4VisCommandViewerClearTransients& operator =
00114   (const G4VisCommandViewerClearTransients&);
00115   G4UIcmdWithAString* fpCommand;
00116 };
00117 
00118 class G4VisCommandViewerClone: public G4VVisCommandViewer {
00119 public:
00120   G4VisCommandViewerClone ();
00121   virtual ~G4VisCommandViewerClone ();
00122   G4String GetCurrentValue (G4UIcommand* command);
00123   void SetNewValue (G4UIcommand* command, G4String newValue);
00124 private:
00125   G4VisCommandViewerClone (const G4VisCommandViewerClone&);
00126   G4VisCommandViewerClone& operator =
00127   (const G4VisCommandViewerClone&);
00128   G4UIcommand* fpCommand;
00129 };
00130 
00131 class G4VisCommandViewerCopyViewFrom: public G4VVisCommandViewer {
00132 public:
00133   G4VisCommandViewerCopyViewFrom ();
00134   virtual ~G4VisCommandViewerCopyViewFrom ();
00135   G4String GetCurrentValue (G4UIcommand* command);
00136   void SetNewValue (G4UIcommand* command, G4String newValue);
00137 private:
00138   G4VisCommandViewerCopyViewFrom (const G4VisCommandViewerCopyViewFrom&);
00139   G4VisCommandViewerCopyViewFrom& operator =
00140   (const G4VisCommandViewerCopyViewFrom&);
00141   G4UIcmdWithAString* fpCommand;
00142 };
00143 
00144 class G4VisCommandViewerCreate: public G4VVisCommandViewer {
00145 public:
00146   G4VisCommandViewerCreate ();
00147   virtual ~G4VisCommandViewerCreate ();
00148   G4String GetCurrentValue (G4UIcommand* command);
00149   void SetNewValue (G4UIcommand* command, G4String newValue);
00150 private:
00151   G4VisCommandViewerCreate (const G4VisCommandViewerCreate&);
00152   G4VisCommandViewerCreate& operator = (const G4VisCommandViewerCreate&);
00153   G4String NextName ();
00154   G4UIcommand* fpCommand;
00155   G4int fId;
00156 };
00157 
00158 class G4VisCommandViewerDolly: public G4VVisCommandViewer {
00159 public:
00160   G4VisCommandViewerDolly ();
00161   virtual ~G4VisCommandViewerDolly ();
00162   G4String GetCurrentValue (G4UIcommand* command);
00163   void SetNewValue (G4UIcommand* command, G4String newValue);
00164 private:
00165   G4VisCommandViewerDolly (const G4VisCommandViewerDolly&);
00166   G4VisCommandViewerDolly& operator = (const G4VisCommandViewerDolly&);
00167   G4UIcmdWithADoubleAndUnit* fpCommandDolly;
00168   G4UIcmdWithADoubleAndUnit* fpCommandDollyTo;
00169   G4double fDollyIncrement;
00170   G4double fDollyTo;
00171 };
00172 
00173 class G4VisCommandViewerFlush: public G4VVisCommandViewer {
00174 public:
00175   G4VisCommandViewerFlush ();
00176   virtual ~G4VisCommandViewerFlush ();
00177   G4String GetCurrentValue (G4UIcommand* command);
00178   void SetNewValue (G4UIcommand* command, G4String newValue);
00179 private:
00180   G4VisCommandViewerFlush (const G4VisCommandViewerFlush&);
00181   G4VisCommandViewerFlush& operator = (const G4VisCommandViewerFlush&);
00182   G4UIcmdWithAString* fpCommand;
00183 };
00184 
00185 class G4VisCommandViewerList: public G4VVisCommandViewer {
00186 public:
00187   G4VisCommandViewerList ();
00188   virtual ~G4VisCommandViewerList ();
00189   G4String GetCurrentValue (G4UIcommand* command);
00190   void SetNewValue (G4UIcommand* command, G4String newValue);
00191 private:
00192   G4VisCommandViewerList (const G4VisCommandViewerList&);
00193   G4VisCommandViewerList& operator = (const G4VisCommandViewerList&);
00194   G4UIcommand* fpCommand;
00195 };
00196 
00197 class G4VisCommandViewerPan: public G4VVisCommandViewer {
00198 public:
00199   G4VisCommandViewerPan ();
00200   virtual ~G4VisCommandViewerPan ();
00201   G4String GetCurrentValue (G4UIcommand* command);
00202   void SetNewValue (G4UIcommand* command, G4String newValue);
00203 private:
00204   G4VisCommandViewerPan (const G4VisCommandViewerPan&);
00205   G4VisCommandViewerPan& operator = (const G4VisCommandViewerPan&);
00206   G4UIcommand* fpCommandPan;
00207   G4UIcommand* fpCommandPanTo;
00208   G4double fPanIncrementRight, fPanIncrementUp;
00209   G4double fPanToRight, fPanToUp;
00210 };
00211 
00212 class G4VisCommandViewerReset: public G4VVisCommandViewer {
00213 public:
00214   G4VisCommandViewerReset ();
00215   virtual ~G4VisCommandViewerReset ();
00216   G4String GetCurrentValue (G4UIcommand* command);
00217   void SetNewValue (G4UIcommand* command, G4String newValue);
00218 private:
00219   G4VisCommandViewerReset (const G4VisCommandViewerReset&);
00220   G4VisCommandViewerReset& operator = (const G4VisCommandViewerReset&);
00221   G4UIcmdWithAString* fpCommand;
00222 };
00223 
00224 class G4VisCommandViewerRefresh: public G4VVisCommandViewer {
00225 public:
00226   G4VisCommandViewerRefresh ();
00227   virtual ~G4VisCommandViewerRefresh ();
00228   G4String GetCurrentValue (G4UIcommand* command);
00229   void SetNewValue (G4UIcommand* command, G4String newValue);
00230 private:
00231   G4VisCommandViewerRefresh (const G4VisCommandViewerRefresh&);
00232   G4VisCommandViewerRefresh& operator = (const G4VisCommandViewerRefresh&);
00233   G4UIcmdWithAString* fpCommand;
00234 };
00235 
00236 class G4VisCommandViewerRebuild: public G4VVisCommandViewer {
00237 public:
00238   G4VisCommandViewerRebuild ();
00239   virtual ~G4VisCommandViewerRebuild ();
00240   G4String GetCurrentValue (G4UIcommand* command);
00241   void SetNewValue (G4UIcommand* command, G4String newValue);
00242 private:
00243   G4VisCommandViewerRebuild (const G4VisCommandViewerRebuild&);
00244   G4VisCommandViewerRebuild& operator = (const G4VisCommandViewerRebuild&);
00245   G4UIcmdWithAString* fpCommand;
00246 };
00247 
00248 class G4VisCommandViewerSave: public G4VVisCommandViewer {
00249 public:
00250   G4VisCommandViewerSave ();
00251   virtual ~G4VisCommandViewerSave ();
00252   G4String GetCurrentValue (G4UIcommand* command);
00253   void SetNewValue (G4UIcommand* command, G4String newValue);
00254 private:
00255   G4VisCommandViewerSave (const G4VisCommandViewerSave&);
00256   G4VisCommandViewerSave& operator = (const G4VisCommandViewerSave&);
00257   G4UIcmdWithAString* fpCommand;
00258 };
00259 
00260 class G4VisCommandViewerScale: public G4VVisCommandViewer {
00261 public:
00262   G4VisCommandViewerScale ();
00263   virtual ~G4VisCommandViewerScale ();
00264   G4String GetCurrentValue (G4UIcommand* command);
00265   void SetNewValue (G4UIcommand* command, G4String newValue);
00266 private:
00267   G4VisCommandViewerScale (const G4VisCommandViewerScale&);
00268   G4VisCommandViewerScale& operator = (const G4VisCommandViewerScale&);
00269   G4UIcmdWith3Vector* fpCommandScale;
00270   G4UIcmdWith3Vector* fpCommandScaleTo;
00271   G4Vector3D fScaleMultiplier;
00272   G4Vector3D fScaleTo;
00273 };
00274 
00275 class G4VisCommandViewerSelect: public G4VVisCommandViewer {
00276 public:
00277   G4VisCommandViewerSelect ();
00278   virtual ~G4VisCommandViewerSelect ();
00279   G4String GetCurrentValue (G4UIcommand* command);
00280   void SetNewValue (G4UIcommand* command, G4String newValue);
00281 private:
00282   G4VisCommandViewerSelect (const G4VisCommandViewerSelect&);
00283   G4VisCommandViewerSelect& operator = (const G4VisCommandViewerSelect&);
00284   G4UIcmdWithAString* fpCommand;
00285 };
00286 
00287 class G4VisCommandViewerUpdate: public G4VVisCommandViewer {
00288 public:
00289   G4VisCommandViewerUpdate ();
00290   virtual ~G4VisCommandViewerUpdate ();
00291   G4String GetCurrentValue (G4UIcommand* command);
00292   void SetNewValue (G4UIcommand* command, G4String newValue);
00293 private:
00294   G4VisCommandViewerUpdate (const G4VisCommandViewerUpdate&);
00295   G4VisCommandViewerUpdate& operator = (const G4VisCommandViewerUpdate&);
00296   G4UIcmdWithAString* fpCommand;
00297 };
00298 
00299 class G4VisCommandViewerZoom: public G4VVisCommandViewer {
00300 public:
00301   G4VisCommandViewerZoom ();
00302   virtual ~G4VisCommandViewerZoom ();
00303   G4String GetCurrentValue (G4UIcommand* command);
00304   void SetNewValue (G4UIcommand* command, G4String newValue);
00305 private:
00306   G4VisCommandViewerZoom (const G4VisCommandViewerZoom&);
00307   G4VisCommandViewerZoom& operator = (const G4VisCommandViewerZoom&);
00308   G4UIcmdWithADouble* fpCommandZoom;
00309   G4UIcmdWithADouble* fpCommandZoomTo;
00310   G4double fZoomMultiplier;
00311   G4double fZoomTo;
00312 };
00313 
00314 #endif

Generated on Mon May 27 17:50:16 2013 for Geant4 by  doxygen 1.4.7