Import Geant4 3.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:03:00 +02:00
parent cfcb558cfe
commit 137e303ecc
2843 changed files with 37082 additions and 38426 deletions
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4GraphicsSystemList.hh,v 1.4 1999/12/15 14:54:17 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4GraphicsSystemList.hh,v 1.6 2001/03/07 14:37:40 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// John Allison 2nd April 1996
@@ -14,10 +14,17 @@
#ifndef G4GRAPHICSSYSTEMLIST_HH
#define G4GRAPHICSSYSTEMLIST_HH
#include "g4rw/tpordvec.h"
#include "g4std/vector"
#include "G4VGraphicsSystem.hh"
class G4GraphicsSystemList: public G4RWTPtrOrderedVector<G4VGraphicsSystem> {
class G4GraphicsSystemList: public G4std::vector<G4VGraphicsSystem*> {
public:
void remove(G4VGraphicsSystem*);
};
typedef G4std::vector<G4VGraphicsSystem*>::iterator
G4GraphicsSystemListIterator;
typedef G4std::vector<G4VGraphicsSystem*>::const_iterator
G4GraphicsSystemListConstIterator;
#endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Scene.hh,v 1.7 1999/12/15 14:54:17 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4Scene.hh,v 1.8 2001/02/23 15:43:15 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// Scene John Allison 19th July 1996.
@@ -26,7 +26,7 @@ class G4VPhysicalVolume;
#include "G4VisExtent.hh"
#include "G4Point3D.hh"
#include "G4VModel.hh"
#include "g4rw/tpordvec.h"
#include "g4std/vector"
class G4Scene {
@@ -52,11 +52,11 @@ public: // With description
G4bool IsEmpty () const;
const G4RWTPtrOrderedVector <G4VModel>& GetRunDurationModelList () const;
const G4std::vector<G4VModel*>& GetRunDurationModelList () const;
// Contains models which are expected to last for the duration of
// the run, for example geometry volumes.
const G4RWTPtrOrderedVector <G4VModel>& GetEndOfEventModelList () const;
const G4std::vector<G4VModel*>& GetEndOfEventModelList () const;
// Contains models which are described at the end of event when the
// scene is current.
@@ -85,10 +85,10 @@ public: // With description
// the scene is current.
// Returns false if model is already in the list.
G4RWTPtrOrderedVector <G4VModel>& SetRunDurationModelList ();
G4std::vector<G4VModel*>& SetRunDurationModelList ();
// Allows you to change the model list - do with care!
G4RWTPtrOrderedVector <G4VModel>& SetEndOfEventModelList ();
G4std::vector<G4VModel*>& SetEndOfEventModelList ();
// Allows you to change the model list - do with care!
void Clear ();
@@ -96,8 +96,8 @@ public: // With description
private:
G4String fName;
G4RWTPtrOrderedVector <G4VModel> fRunDurationModelList;
G4RWTPtrOrderedVector <G4VModel> fEndOfEventModelList;
G4std::vector<G4VModel*> fRunDurationModelList;
G4std::vector<G4VModel*> fEndOfEventModelList;
G4VisExtent fExtent;
G4Point3D fStandardTargetPoint;
};
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Scene.icc,v 1.6 2000/05/22 08:25:34 johna Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4Scene.icc,v 1.7 2001/02/23 15:43:15 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// Scene data John Allison 19th July 1996.
@@ -20,15 +20,15 @@ inline const G4String& G4Scene::GetName () const {
}
inline G4bool G4Scene::IsEmpty () const {
return fRunDurationModelList.entries () == 0;
return fRunDurationModelList.size () == 0;
}
inline const G4RWTPtrOrderedVector <G4VModel>&
inline const G4std::vector<G4VModel*>&
G4Scene::GetRunDurationModelList () const {
return fRunDurationModelList;
}
inline const G4RWTPtrOrderedVector <G4VModel>&
inline const G4std::vector<G4VModel*>&
G4Scene::GetEndOfEventModelList () const {
return fEndOfEventModelList;
}
@@ -41,12 +41,12 @@ inline const G4Point3D& G4Scene::GetStandardTargetPoint () const {
return fStandardTargetPoint;
}
inline G4RWTPtrOrderedVector <G4VModel>& G4Scene::SetRunDurationModelList ()
inline G4std::vector<G4VModel*>& G4Scene::SetRunDurationModelList ()
{
return fRunDurationModelList;
}
inline G4RWTPtrOrderedVector <G4VModel>& G4Scene::SetEndOfEventModelList ()
inline G4std::vector<G4VModel*>& G4Scene::SetEndOfEventModelList ()
{
return fRunDurationModelList;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4SceneHandlerList.hh,v 1.3 1999/12/15 14:54:17 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4SceneHandlerList.hh,v 1.5 2001/03/07 14:37:41 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// John Allison May 1996
@@ -14,10 +14,16 @@
#ifndef G4SCENEHANDLERLIST_HH
#define G4SCENEHANDLERLIST_HH
#include "g4rw/tpordvec.h"
#include "g4std/vector"
#include "G4VSceneHandler.hh"
class G4SceneHandlerList: public G4RWTPtrOrderedVector<G4VSceneHandler> {
class G4SceneHandlerList: public G4std::vector<G4VSceneHandler*> {
public:
void remove(G4VSceneHandler*);
};
typedef G4std::vector<G4VSceneHandler*>::iterator G4SceneHandlerListIterator;
typedef G4std::vector<G4VSceneHandler*>::const_iterator
G4SceneHandlerListConstIterator;
#endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4SceneList.hh,v 1.5 1999/12/15 14:54:18 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4SceneList.hh,v 1.7 2001/03/07 14:37:42 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// John Allison 9th August 1998
@@ -15,8 +15,14 @@
#define G4SCENELIST_HH
#include "G4Scene.hh"
#include "g4rw/tpordvec.h"
#include "g4std/vector"
class G4SceneList: public G4RWTPtrOrderedVector <G4Scene> {};
class G4SceneList: public G4std::vector <G4Scene*> {
public:
void remove(G4Scene*);
};
typedef G4std::vector<G4Scene*>::iterator G4SceneListIterator;
typedef G4std::vector<G4Scene*>::const_iterator G4SceneListConstIterator;
#endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VGraphicsSystem.hh,v 1.6 1999/12/15 14:54:18 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VGraphicsSystem.hh,v 1.7 2001/02/23 15:43:16 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// John Allison 27th March 1996
@@ -50,9 +50,6 @@ public: // With description
virtual ~G4VGraphicsSystem ();
// For G4RWTPtrOrderedVector...
G4bool operator == (const G4VGraphicsSystem& system) const;
virtual G4VSceneHandler* CreateSceneHandler (const G4String& name) = 0;
virtual G4VViewer* CreateViewer (G4VSceneHandler&, const G4String& name) = 0;
@@ -5,18 +5,13 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VGraphicsSystem.icc,v 1.4 1999/12/15 14:54:18 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VGraphicsSystem.icc,v 1.5 2001/02/23 15:43:17 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// John Allison 27th March 1996
// Abstract interface class for graphics systems.
inline G4bool
G4VGraphicsSystem::operator == (const G4VGraphicsSystem& system) const {
return this == &system;
}
inline const G4String& G4VGraphicsSystem::GetName () const {
return fName;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VSceneHandler.hh,v 1.11 2000/05/02 09:49:27 johna Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VSceneHandler.hh,v 1.13 2001/02/23 15:43:17 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// John Allison 19th July 1996.
@@ -50,9 +50,6 @@ public: // With description
virtual ~G4VSceneHandler ();
// For G4RWTPtrOrderedVector...
G4bool operator == (const G4VSceneHandler& scene) const;
//////////////////////////////////////////////////////////////
// Functions for adding raw GEANT4 objects, if the graphics system
// can can understand them (optional on the part of the graphics
@@ -256,6 +253,9 @@ protected:
private:
G4VSceneHandler (const G4VSceneHandler&);
G4VSceneHandler& operator = (const G4VSceneHandler&);
//////////////////////////////////////////////////////////////
// Friend function accessed only by views of this scene.
@@ -5,17 +5,12 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VSceneHandler.icc,v 1.8 2000/05/02 09:49:28 johna Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VSceneHandler.icc,v 1.9 2001/02/23 15:43:17 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// John Allison 19th July 1996.
inline G4bool G4VSceneHandler::operator ==
(const G4VSceneHandler& scene) const {
return this == &scene;
}
inline G4VGraphicsSystem* G4VSceneHandler::GetGraphicsSystem () const {
return &fSystem;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VViewer.hh,v 1.7 2000/05/02 09:51:22 johna Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VViewer.hh,v 1.9 2001/02/23 15:43:18 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// John Allison 27th March 1996
@@ -33,9 +33,6 @@ public: // With description
G4VViewer (G4VSceneHandler& scene, G4int id, const G4String& name = "");
virtual ~G4VViewer ();
// For G4RWTPtrOrderedVector...
G4bool operator == (const G4VViewer& view) const;
//////////////////////////////////////////////////////////////
// View manipulation functions.
@@ -68,8 +65,10 @@ public: // With description
void SetName (const G4String&);
G4int GetViewId () const;
G4VSceneHandler* GetSceneHandler () const;
const G4ViewParameters& GetViewParameters () const;
void SetViewParameters (const G4ViewParameters& vp);
const G4ViewParameters& GetViewParameters () const;
const G4ViewParameters& GetDefaultViewParameters () const;
void SetViewParameters (const G4ViewParameters& vp);
void SetDefaultViewParameters (const G4ViewParameters& vp);
//////////////////////////////////////////////////////////////
// Public utility functions.
@@ -95,7 +94,8 @@ protected:
G4int fViewId; // Id of this instance.
G4String fName;
G4String fShortName; // Up to first ' ' character, if any.
G4ViewParameters fVP; // Viewing parameters.
G4ViewParameters fVP; // View parameters.
G4ViewParameters fDefaultVP; // Default view parameters.
//////////////////////////////////////////////////////////////
// Other parameters.
@@ -5,16 +5,12 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VViewer.icc,v 1.4 2000/05/02 09:51:22 johna Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VViewer.icc,v 1.7 2001/02/23 15:43:18 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// John Allison 30th December 1996
inline G4bool G4VViewer::operator == (const G4VViewer& view) const{
return this == &view;
}
inline G4int G4VViewer::GetViewId () const {
return fViewId;
}
@@ -35,8 +31,14 @@ inline const G4ViewParameters& G4VViewer::GetViewParameters () const {
return fVP;
}
inline const G4ViewParameters& G4VViewer::GetDefaultViewParameters () const {
return fDefaultVP;
}
inline void G4VViewer::SetDefaultViewParameters (const G4ViewParameters& vp) {
fDefaultVP = vp;
}
inline void G4VViewer::SetNeedKernelVisit () {
fNeedKernelVisit = true;
}
inline void G4VViewer::FinishView () {}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VVisCommand.hh,v 1.6 1999/12/16 17:19:15 johna Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VVisCommand.hh,v 1.10 2001/03/28 14:11:37 gcosmo Exp $
// GEANT4 tag $Name: geant4-03-01 $
// Base class for visualization commands - John Allison 9th August 1998
// It is really a messenger - we have one command per messenger.
@@ -15,6 +15,7 @@
#define G4VVISCOMMAND_HH
#include "G4UImessenger.hh"
#include "G4ThreeVector.hh"
#include "g4std/vector"
class G4VisManager;
@@ -27,6 +28,18 @@ public:
G4VVisCommand ();
virtual ~G4VVisCommand ();
static void SetVisManager (G4VisManager*);
static G4double ValueOf(G4String unitName);
static G4String ConvertToString(G4bool blValue);
static G4String ConvertToString(G4double x, G4double y,
const char * unitName);
static G4String ConvertToString(const G4ThreeVector& vec);
static G4bool GetNewBoolValue(const G4String& paramString);
static G4int GetNewIntValue(const G4String& paramString);
static G4double GetNewDoubleValue(const G4String& paramString);
static G4ThreeVector GetNew3VectorValue(const G4String& paramString);
static void GetNewDoublePairValue(const G4String& paramString,
G4double& xval,
G4double& yval);
protected:
static G4VisManager* fpVisManager;
static G4std::vector<G4UIcommand*> sceneNameCommands;
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VVisCommand.icc,v 1.3 1999/12/15 14:54:20 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
// Base class for visualization commands - John Allison 9th August 1998
// It is really a messenger - we have one command per messenger.
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4ViewParameters.hh,v 1.8 2000/05/13 10:51:31 johna Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4ViewParameters.hh,v 1.12 2001/03/07 14:30:12 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// John Allison 19th July 1996
@@ -56,21 +56,19 @@
#ifndef G4VIEWPARAMETERS_HH
#define G4VIEWPARAMETERS_HH
#include "g4rw/tvordvec.h"
#include "g4std/vector"
#include "G4Vector3D.hh"
#include "G4Point3D.hh"
#include "G4Plane3D.hh"
#include "G4VisAttributes.hh"
#include "G4VMarker.hh"
typedef G4RWTValOrderedVector<G4Plane3D> G4Planes;
typedef G4std::vector<G4Plane3D> G4Planes;
class G4ViewParameters {
public: // With description
friend G4std::ostream& operator << (G4std::ostream& os, const G4ViewParameters& v);
enum DrawingStyle {
wireframe, // Draw edges - no hidden line removal.
hlr, // Draw edges - hidden lines removed.
@@ -83,6 +81,12 @@ public: // With description
nurbs // Use G4NURBS.
};
friend G4std::ostream& operator << (G4std::ostream&,
const DrawingStyle&);
friend G4std::ostream& operator << (G4std::ostream&,
const G4ViewParameters&);
G4ViewParameters ();
~G4ViewParameters ();
@@ -125,6 +129,7 @@ public: // With description
G4bool IsMarkerNotHidden () const;
G4int GetWindowSizeHintX () const;
G4int GetWindowSizeHintY () const;
G4bool IsAutoRefresh () const;
// Here Follow functions to evaluate the above algorithms as a
// function of the radius of the Bounding Sphere of the object being
@@ -166,6 +171,8 @@ public: // With description
void IncrementDolly (G4double dollyIncrement);
void SetLightpointDirection (const G4Vector3D& lightpointDirection);
void SetLightsMoveWithCamera (G4bool moves);
void SetPan (G4double right, G4double up);
void IncrementPan (G4double right, G4double up);
void SetViewGeom ();
void UnsetViewGeom ();
void SetViewHits ();
@@ -179,11 +186,7 @@ public: // With description
void SetMarkerHidden ();
void SetMarkerNotHidden ();
void SetWindowSizeHint (G4int xHint, G4int yHint);
void Pan (G4double right, G4double up);
// Note: the result of above "pan"operation is always an Increment
// relative to the current target point and also depends on the
// veiwpoint and up directions.
void SetAutoRefresh (G4bool);
void PrintDifferences (const G4ViewParameters& v) const;
@@ -228,6 +231,7 @@ private:
// removed.
G4int fWindowSizeHintX; // Size hints for pixel-based window systems.
G4int fWindowSizeHintY;
G4bool fAutoRefresh; // ...after change of view parameters.
};
#include "G4ViewParameters.icc"
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4ViewParameters.icc,v 1.3 1999/12/15 14:54:20 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4ViewParameters.icc,v 1.4 2001/02/04 20:23:04 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// John Allison 20th October 1996
@@ -143,6 +143,10 @@ inline G4int G4ViewParameters::GetWindowSizeHintY () const {
return fWindowSizeHintY;
}
inline G4bool G4ViewParameters::IsAutoRefresh () const {
return fAutoRefresh;
}
inline void
G4ViewParameters::SetDrawingStyle (G4ViewParameters::DrawingStyle style) {
fDrawingStyle = style;
@@ -282,3 +286,7 @@ inline void G4ViewParameters::SetWindowSizeHint (G4int xHint, G4int yHint) {
fWindowSizeHintX = xHint;
fWindowSizeHintY = yHint;
}
inline void G4ViewParameters::SetAutoRefresh (G4bool state) {
fAutoRefresh = state;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4ViewerList.hh,v 1.3 1999/12/15 14:54:20 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4ViewerList.hh,v 1.5 2001/03/07 14:37:43 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// John Allison May 1996
@@ -14,9 +14,15 @@
#ifndef G4VIEWERLIST_HH
#define G4VIEWERLIST_HH
#include "g4rw/tpordvec.h"
#include "g4std/vector"
#include "G4VViewer.hh"
class G4ViewerList: public G4RWTPtrOrderedVector<G4VViewer> {};
class G4ViewerList: public G4std::vector<G4VViewer*> {
public:
void remove(G4VViewer*);
};
typedef G4std::vector<G4VViewer*>::iterator G4ViewerListIterator;
typedef G4std::vector<G4VViewer*>::const_iterator G4ViewerListConstIterator;
#endif
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VisCommandTemplates.hh,v 1.3 1999/12/15 14:54:20 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// Visualization Command Messenger Templates.
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VisCommandTemplates.icc,v 1.3 1999/12/15 14:54:20 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// Command Messenger Templates.
@@ -0,0 +1,47 @@
// This code implementation is the intellectual property of
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisCommands.hh,v 1.1 2001/02/23 15:04:02 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
// /vis/ top level commands - John Allison 5th February 2001
#ifndef G4VISCOMMANDS_HH
#define G4VISCOMMANDS_HH
#include "G4VVisCommand.hh"
class G4UIcmdWithABool;
class G4UIcmdWithAnInteger;
class G4UIcmdWithoutParameter;
class G4VisCommandEnable: public G4VVisCommand {
public:
G4VisCommandEnable ();
virtual ~G4VisCommandEnable ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandEnable (const G4VisCommandEnable&);
G4VisCommandEnable& operator = (const G4VisCommandEnable&);
G4UIcmdWithABool* fpCommand;
G4UIcmdWithoutParameter* fpCommand1;
};
class G4VisCommandVerbose: public G4VVisCommand {
public:
G4VisCommandVerbose ();
virtual ~G4VisCommandVerbose ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandVerbose (const G4VisCommandVerbose&);
G4VisCommandVerbose& operator = (const G4VisCommandVerbose&);
G4UIcmdWithAnInteger* fpCommand;
};
#endif
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VisCommandsCamera.hh,v 1.3 1999/12/15 14:54:20 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// /vis~/camera/ commands
@@ -1,32 +0,0 @@
// This code implementation is the intellectual property of
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisCommandsCameraMessengers.hh,v 1.3 1999/12/15 14:54:21 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
//
// Messengers for /vis~/camera commands - John Allison 6th April 1998.
#ifndef G4VISCOMMANDSCAMERAMESSENGERS_HH
#define G4VISCOMMANDSCAMERAMESSENGERS_HH
#include "globals.hh"
#include "G4UImessenger.hh"
class G4UIcommand;
class G4VisCommandsCameraSetMessenger: public G4UImessenger {
public:
G4VisCommandsCameraSetMessenger ();
~G4VisCommandsCameraSetMessenger ();
G4String GetCurrentValue(G4UIcommand * command);
void SetNewValue (G4UIcommand* command, G4String newValues);
private:
G4UIcommand* fpCommand;
};
#endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisCommandsClear.hh,v 1.4 1999/12/15 14:54:21 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VisCommandsClear.hh,v 1.5 2001/02/05 02:33:48 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// /vis~/clear/ commands
@@ -67,6 +67,7 @@ public:
return "Clears visible window of current view.";
}
void SetValue () {
G4VisManager::PrintCommandDeprecation("Use \"/vis/viewer/clear\".");
G4VisManager* pVMan = G4VisManager::GetInstance ();
if (pVMan -> IsValidView ()) {
pVMan -> ClearView ();
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisCommandsCompound.hh,v 1.2 2000/05/15 11:49:02 johna Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VisCommandsCompound.hh,v 1.5 2001/02/05 02:33:50 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
// Compound /vis/ commands - John Allison 15th May 2000
@@ -15,33 +15,47 @@
#include "G4VVisCommand.hh"
class G4VisCommandDrawVolume: public G4VVisCommand {
class G4VisCommandDrawView: public G4VVisCommand {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandDrawVolume ();
~G4VisCommandDrawVolume ();
G4VisCommandDrawView ();
virtual ~G4VisCommandDrawView ();
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandDrawView (const G4VisCommandDrawView&);
G4VisCommandDrawView& operator = (const G4VisCommandDrawView&);
G4UIcommand* fpCommand;
};
class G4VisCommandDrawVolume: public G4VVisCommand {
public:
G4VisCommandDrawVolume ();
virtual ~G4VisCommandDrawVolume ();
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandDrawVolume (const G4VisCommandDrawVolume&);
G4VisCommandDrawVolume& operator = (const G4VisCommandDrawVolume&);
G4UIcmdWithAString* fpCommand;
};
class G4VisCommandOpen: public G4VVisCommand {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandOpen ();
~G4VisCommandOpen ();
virtual ~G4VisCommandOpen ();
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4UIcmdWithAString* fpCommand;
G4VisCommandOpen (const G4VisCommandOpen&);
G4VisCommandOpen& operator = (const G4VisCommandOpen&);
G4UIcommand* fpCommand;
};
class G4VisCommandSpecify: public G4VVisCommand {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandSpecify ();
~G4VisCommandSpecify ();
virtual ~G4VisCommandSpecify ();
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandSpecify (const G4VisCommandSpecify&);
G4VisCommandSpecify& operator = (const G4VisCommandSpecify&);
G4UIcmdWithAString* fpCommand;
};
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisCommandsCopy.hh,v 1.4 1999/12/15 14:54:21 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VisCommandsCopy.hh,v 1.5 2001/02/05 02:33:51 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// /vis~/copy/ commands
@@ -98,6 +98,7 @@ public:
" WARNING: this overwrites the current view parameters.";
}
void SetValue () {
G4VisManager::PrintCommandDeprecation("Use \"/vis/viewer/set/all\".");
G4VisManager* pVMan = G4VisManager::GetInstance ();
if (pVMan -> IsValidView ()) {
pVMan -> CopyViewParameters ();
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VisCommandsCreateScene.hh,v 1.3 1999/12/15 14:54:21 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// /vis~/create_scene/ commands
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisCommandsCreateView.hh,v 1.4 1999/12/15 14:54:21 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VisCommandsCreateView.hh,v 1.5 2001/02/05 02:33:53 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// /vis~/create_view/ commands
@@ -41,6 +41,7 @@ public:
return "Creates a new scene and a new view; both become current.";
}
void SetValue () {
G4VisManager::PrintCommandDeprecation("Use \"/vis/viewer/create\".");
G4VisManager* pVMan = G4VisManager::GetInstance ();
if (pVMan -> IsValidView ()) {
pVMan -> CreateSceneHandler ();
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisCommandsDelete.hh,v 1.4 1999/12/15 14:54:21 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VisCommandsDelete.hh,v 1.5 2001/02/05 02:33:55 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// /vis~/delete/ commands
@@ -42,6 +42,8 @@ public:
return "Deletes the current scene and its views.";
}
void SetValue () {
G4VisManager::PrintCommandDeprecation
("Use \"/vis/scene/remove\" and/or \"/vis/sceneHandler/remove\".");
G4VisManager* pVMan = G4VisManager::GetInstance ();
if (pVMan -> GetVerboseLevel () > 1) {
pVMan -> PrintCurrentView ();
@@ -64,6 +66,7 @@ public:
return "Deletes the current view.";
}
void SetValue () {
G4VisManager::PrintCommandDeprecation("Use \"/vis/viewer/remove\".");
G4VisManager* pVMan = G4VisManager::GetInstance ();
if (pVMan -> GetVerboseLevel () > 1) {
pVMan -> PrintCurrentView ();
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisCommandsDraw.hh,v 1.3 1999/12/15 14:54:21 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VisCommandsDraw.hh,v 1.4 2001/02/05 02:33:56 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// /vis~/draw/ commands
@@ -44,6 +44,8 @@ public:
"view parameters.";
}
void SetValue () {
G4VisManager::PrintCommandDeprecation
("Use \"/vis/viewer/refresh\" or \"/vis/scene/notifyHandlers\".");
G4VisManager* pVMan = G4VisManager::GetInstance ();
if (pVMan -> IsValidView ()) {
if (pVMan -> GetVerboseLevel () > 1) {
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisCommandsLights.hh,v 1.4 1999/12/15 14:54:21 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VisCommandsLights.hh,v 1.6 2001/02/05 02:33:58 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// /vis~/lights/ commands
@@ -47,14 +47,14 @@ public:
GetLightsMoveWithCamera ();
}
void SetValue (G4bool value) {
G4VisManager::PrintCommandDeprecation
("Use \"/vis/viewer/set/lightsMove\".");
G4VisManager* pVMan = G4VisManager::GetInstance ();
pVMan -> SetCurrentViewParameters ().SetLightsMoveWithCamera (value);
G4VViewer* pView = pVMan -> GetCurrentViewer ();
if (pView) {
// Copy current view parameters into current view.
pView -> SetViewParameters (pVMan -> GetCurrentViewParameters ());
// Recalculate projection matrices, etc.
pView -> SetView ();
}
G4cout << "Issue Draw or refresh to see effect." << G4endl;
}
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VisCommandsPrint.hh,v 1.3 1999/12/15 14:54:21 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// /vis~/print/ commands
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisCommandsRefresh.hh,v 1.3 1999/12/15 14:54:21 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VisCommandsRefresh.hh,v 1.4 2001/02/05 02:33:59 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// /vis~/refresh/ commands
@@ -43,6 +43,7 @@ public:
"double buffer and graphical database, if any.";
}
void SetValue () {
G4VisManager::PrintCommandDeprecation("Use \"/vis/viewer/refresh\".");
G4VisManager* pVMan = G4VisManager::GetInstance ();
if (pVMan -> IsValidView ()) {
pVMan -> RefreshCurrentView ();
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisCommandsScene.hh,v 1.8 1999/12/15 14:54:21 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VisCommandsScene.hh,v 1.9 2001/02/03 18:39:44 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
// /vis/scene commands - John Allison 9th August 1998
@@ -21,23 +21,26 @@ class G4UIcmdWithoutParameter;
class G4VVisCommandScene: public G4VVisCommand {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VVisCommandScene ();
~G4VVisCommandScene ();
virtual ~G4VVisCommandScene ();
protected:
G4String CurrentSceneName ();
void UpdateCandidateLists ();
void UpdateVisManagerScene (const G4String& sceneName = "");
private:
G4VVisCommandScene (const G4VVisCommandScene&);
G4VVisCommandScene& operator = (const G4VVisCommandScene&);
};
class G4VisCommandSceneCreate: public G4VVisCommandScene {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandSceneCreate ();
~G4VisCommandSceneCreate ();
virtual ~G4VisCommandSceneCreate ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandSceneCreate (const G4VisCommandSceneCreate&);
G4VisCommandSceneCreate& operator = (const G4VisCommandSceneCreate&);
G4String NextName ();
G4UIcmdWithAString* fpCommand;
G4int fId;
@@ -45,56 +48,62 @@ private:
class G4VisCommandSceneEdit: public G4VVisCommandScene {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandSceneEdit ();
~G4VisCommandSceneEdit ();
virtual ~G4VisCommandSceneEdit ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandSceneEdit (const G4VisCommandSceneEdit&);
G4VisCommandSceneEdit& operator = (const G4VisCommandSceneEdit&);
G4UIcmdWithAString* fpCommand;
};
class G4VisCommandSceneList: public G4VVisCommandScene {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandSceneList ();
~G4VisCommandSceneList ();
virtual ~G4VisCommandSceneList ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandSceneList (const G4VisCommandSceneList&);
G4VisCommandSceneList& operator = (const G4VisCommandSceneList&);
G4UIcommand* fpCommand;
};
class G4VisCommandSceneNotifyHandlers: public G4VVisCommandScene {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandSceneNotifyHandlers ();
~G4VisCommandSceneNotifyHandlers ();
virtual ~G4VisCommandSceneNotifyHandlers ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandSceneNotifyHandlers (const G4VisCommandSceneNotifyHandlers&);
G4VisCommandSceneNotifyHandlers& operator =
(const G4VisCommandSceneNotifyHandlers&);
G4UIcmdWithAString* fpCommand;
};
class G4VisCommandSceneRemove: public G4VVisCommandScene {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandSceneRemove ();
~G4VisCommandSceneRemove ();
virtual ~G4VisCommandSceneRemove ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandSceneRemove (const G4VisCommandSceneRemove&);
G4VisCommandSceneRemove& operator = (const G4VisCommandSceneRemove&);
G4UIcmdWithAString* fpCommand;
};
class G4VisCommandSceneSelect: public G4VVisCommandScene {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandSceneSelect ();
~G4VisCommandSceneSelect ();
virtual ~G4VisCommandSceneSelect ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandSceneSelect (const G4VisCommandSceneSelect&);
G4VisCommandSceneSelect& operator = (const G4VisCommandSceneSelect&);
G4UIcmdWithAString* fpCommand;
};
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisCommandsSceneAdd.hh,v 1.5 2000/05/19 09:17:42 johna Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VisCommandsSceneAdd.hh,v 1.6 2001/02/03 18:39:46 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
// /vis/scene commands - John Allison 9th August 1998
@@ -17,56 +17,64 @@
class G4VisCommandSceneAddGhosts: public G4VVisCommandScene {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandSceneAddGhosts ();
~G4VisCommandSceneAddGhosts ();
virtual ~G4VisCommandSceneAddGhosts ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandSceneAddGhosts (const G4VisCommandSceneAddGhosts&);
G4VisCommandSceneAddGhosts& operator =
(const G4VisCommandSceneAddGhosts&);
G4UIcmdWithAString* fpCommand;
};
class G4VisCommandSceneAddHits: public G4VVisCommandScene {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandSceneAddHits ();
~G4VisCommandSceneAddHits ();
virtual ~G4VisCommandSceneAddHits ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandSceneAddHits (const G4VisCommandSceneAddHits&);
G4VisCommandSceneAddHits& operator = (const G4VisCommandSceneAddHits&);
G4UIcmdWithoutParameter* fpCommand;
};
class G4VisCommandSceneAddLogicalVolume: public G4VVisCommandScene {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandSceneAddLogicalVolume ();
~G4VisCommandSceneAddLogicalVolume ();
virtual ~G4VisCommandSceneAddLogicalVolume ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandSceneAddLogicalVolume (const G4VisCommandSceneAddLogicalVolume&);
G4VisCommandSceneAddLogicalVolume& operator =
(const G4VisCommandSceneAddLogicalVolume&);
G4UIcommand* fpCommand;
};
class G4VisCommandSceneAddTrajectories: public G4VVisCommandScene {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandSceneAddTrajectories ();
~G4VisCommandSceneAddTrajectories ();
virtual ~G4VisCommandSceneAddTrajectories ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandSceneAddTrajectories (const G4VisCommandSceneAddTrajectories&);
G4VisCommandSceneAddTrajectories& operator =
(const G4VisCommandSceneAddTrajectories&);
G4UIcmdWithoutParameter* fpCommand;
};
class G4VisCommandSceneAddVolume: public G4VVisCommandScene {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandSceneAddVolume ();
~G4VisCommandSceneAddVolume ();
virtual ~G4VisCommandSceneAddVolume ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandSceneAddVolume (const G4VisCommandSceneAddVolume&);
G4VisCommandSceneAddVolume& operator = (const G4VisCommandSceneAddVolume&);
G4UIcommand* fpCommand;
};
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VisCommandsSceneHandler.hh,v 1.5 1999/12/16 17:19:16 johna Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
// /vis/sceneHandler commands - John Allison 10th October 1998
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VisCommandsSceneInclude.hh,v 1.3 1999/12/15 14:54:22 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
// /vis/scene commands - John Allison 9th August 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisCommandsSet.hh,v 1.4 1999/12/15 14:54:22 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VisCommandsSet.hh,v 1.6 2001/02/05 02:34:01 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// /vis~/set/ commands
@@ -47,14 +47,13 @@ public:
IsCulling ();
}
void SetValue (G4bool value) {
G4VisManager::PrintCommandDeprecation("Use \"/vis/viewer/set/culling\".");
G4VisManager* pVMan = G4VisManager::GetInstance ();
pVMan -> SetCurrentViewParameters ().SetCulling (value);
G4VViewer* pView = pVMan -> GetCurrentViewer ();
if (pView) {
// Copy current view parameters into current view.
pView -> SetViewParameters (pVMan -> GetCurrentViewParameters ());
// Recalculate projection matrices, etc.
pView -> SetView ();
}
G4cout << "Issue Draw or refresh to see effect." << G4endl;
}
@@ -76,6 +75,7 @@ public:
IsCullingCovered ();
}
void SetValue (G4bool value) {
G4VisManager::PrintCommandDeprecation("Use \"/vis/viewer/set/culling\".");
G4cout << "\nNote: this is only effective in surface drawing style,"
"\nand then only if the volumes are visible and opaque, and then"
"\nonly if no sections or cutways are in operation."
@@ -86,8 +86,6 @@ public:
if (pView) {
// Copy current view parameters into current view.
pView -> SetViewParameters (pVMan -> GetCurrentViewParameters ());
// Recalculate projection matrices, etc.
pView -> SetView ();
}
G4cout << "Issue Draw or refresh to see effect." << G4endl;
}
@@ -109,14 +107,13 @@ public:
IsCullingInvisible ();
}
void SetValue (G4bool value) {
G4VisManager::PrintCommandDeprecation("Use \"/vis/viewer/set/culling\".");
G4VisManager* pVMan = G4VisManager::GetInstance ();
pVMan -> SetCurrentViewParameters ().SetCullingInvisible (value);
G4VViewer* pView = pVMan -> GetCurrentViewer ();
if (pView) {
// Copy current view parameters into current view.
pView -> SetViewParameters (pVMan -> GetCurrentViewParameters ());
// Recalculate projection matrices, etc.
pView -> SetView ();
}
G4cout << "Issue Draw or refresh to see effect." << G4endl;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisCommandsShow.hh,v 1.3 1999/12/15 14:54:22 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VisCommandsShow.hh,v 1.4 2001/02/05 02:34:03 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// /vis~/show/ commands
@@ -45,6 +45,7 @@ public:
"graphics systems which use such techniques).";
}
void SetValue () {
G4VisManager::PrintCommandDeprecation("Use \"/vis/viewer/update\".");
G4VisManager* pVMan = G4VisManager::GetInstance ();
if (pVMan -> IsValidView ()) {
if (pVMan -> GetVerboseLevel () > 1) {
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisCommandsViewer.hh,v 1.9 2000/06/07 08:43:28 johna Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VisCommandsViewer.hh,v 1.13 2001/02/05 02:34:04 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
// /vis/viewer commands - John Allison 25th October 1998
@@ -15,96 +15,195 @@
#include "G4VVisCommand.hh"
class G4VViewer;
class G4ViewParameters;
class G4UIcommand;
class G4UIcmdWithAString;
class G4UIcmdWithADouble;
class G4UIcmdWithADoubleAndUnit;
class G4VVisCommandViewer: public G4VVisCommand {
public:
// Uses compiler defaults for destructor, copy constructor and assignment.
G4VVisCommandViewer ();
~G4VVisCommandViewer ();
virtual ~G4VVisCommandViewer ();
protected:
void SetViewParameters(G4VViewer*, const G4ViewParameters&);
void UpdateCandidateLists ();
private:
G4VVisCommandViewer (const G4VVisCommandViewer&);
G4VVisCommandViewer& operator = (const G4VVisCommandViewer&);
};
class G4VisCommandViewerClear: public G4VVisCommandViewer {
public:
G4VisCommandViewerClear ();
virtual ~G4VisCommandViewerClear ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandViewerClear (const G4VisCommandViewerClear&);
G4VisCommandViewerClear& operator = (const G4VisCommandViewerClear&);
G4UIcmdWithAString* fpCommand;
};
class G4VisCommandViewerCreate: public G4VVisCommandViewer {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandViewerCreate ();
~G4VisCommandViewerCreate ();
virtual ~G4VisCommandViewerCreate ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandViewerCreate (const G4VisCommandViewerCreate&);
G4VisCommandViewerCreate& operator = (const G4VisCommandViewerCreate&);
G4String NextName ();
G4UIcommand* fpCommand;
G4int fId;
};
class G4VisCommandViewerList: public G4VVisCommandViewer {
class G4VisCommandViewerDolly: public G4VVisCommandViewer {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandViewerList ();
~G4VisCommandViewerList ();
G4VisCommandViewerDolly ();
virtual ~G4VisCommandViewerDolly ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandViewerDolly (const G4VisCommandViewerDolly&);
G4VisCommandViewerDolly& operator = (const G4VisCommandViewerDolly&);
G4UIcmdWithADoubleAndUnit* fpCommandDolly;
G4UIcmdWithADoubleAndUnit* fpCommandDollyTo;
G4double fDollyIncrement;
G4double fDollyTo;
};
class G4VisCommandViewerLights: public G4VVisCommandViewer {
public:
G4VisCommandViewerLights ();
virtual ~G4VisCommandViewerLights ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandViewerLights (const G4VisCommandViewerLights&);
G4VisCommandViewerLights& operator = (const G4VisCommandViewerLights&);
G4UIcommand* fpCommandLightsThetaPhi;
G4UIcommand* fpCommandLightsVector;
G4ThreeVector fLightsVector;
};
class G4VisCommandViewerList: public G4VVisCommandViewer {
public:
G4VisCommandViewerList ();
virtual ~G4VisCommandViewerList ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandViewerList (const G4VisCommandViewerList&);
G4VisCommandViewerList& operator = (const G4VisCommandViewerList&);
G4UIcommand* fpCommand;
};
class G4VisCommandViewerPan: public G4VVisCommandViewer {
public:
G4VisCommandViewerPan ();
virtual ~G4VisCommandViewerPan ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandViewerPan (const G4VisCommandViewerPan&);
G4VisCommandViewerPan& operator = (const G4VisCommandViewerPan&);
G4UIcommand* fpCommandPan;
G4UIcommand* fpCommandPanTo;
G4double fPanIncrementRight, fPanIncrementUp;
G4double fPanToRight, fPanToUp;
};
class G4VisCommandViewerRefresh: public G4VVisCommandViewer {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandViewerRefresh ();
~G4VisCommandViewerRefresh ();
virtual ~G4VisCommandViewerRefresh ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandViewerRefresh (const G4VisCommandViewerRefresh&);
G4VisCommandViewerRefresh& operator = (const G4VisCommandViewerRefresh&);
G4UIcmdWithAString* fpCommand;
};
class G4VisCommandViewerRemove: public G4VVisCommandViewer {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandViewerRemove ();
~G4VisCommandViewerRemove ();
virtual ~G4VisCommandViewerRemove ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandViewerRemove (const G4VisCommandViewerRemove&);
G4VisCommandViewerRemove& operator = (const G4VisCommandViewerRemove&);
G4UIcmdWithAString* fpCommand;
};
class G4VisCommandViewerReset: public G4VVisCommandViewer {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandViewerReset ();
~G4VisCommandViewerReset ();
virtual ~G4VisCommandViewerReset ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandViewerReset (const G4VisCommandViewerReset&);
G4VisCommandViewerReset& operator = (const G4VisCommandViewerReset&);
G4UIcmdWithAString* fpCommand;
};
class G4VisCommandViewerSelect: public G4VVisCommandViewer {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandViewerSelect ();
~G4VisCommandViewerSelect ();
virtual ~G4VisCommandViewerSelect ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandViewerSelect (const G4VisCommandViewerSelect&);
G4VisCommandViewerSelect& operator = (const G4VisCommandViewerSelect&);
G4UIcmdWithAString* fpCommand;
};
class G4VisCommandViewerUpdate: public G4VVisCommandViewer {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandViewerUpdate ();
~G4VisCommandViewerUpdate ();
virtual ~G4VisCommandViewerUpdate ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandViewerUpdate (const G4VisCommandViewerUpdate&);
G4VisCommandViewerUpdate& operator = (const G4VisCommandViewerUpdate&);
G4UIcmdWithAString* fpCommand;
G4UIcmdWithAString* fpCommand1;
};
class G4VisCommandViewerViewpoint: public G4VVisCommandViewer {
public:
G4VisCommandViewerViewpoint ();
virtual ~G4VisCommandViewerViewpoint ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandViewerViewpoint (const G4VisCommandViewerViewpoint&);
G4VisCommandViewerViewpoint& operator = (const G4VisCommandViewerViewpoint&);
G4UIcommand* fpCommandViewpointThetaPhi;
G4UIcommand* fpCommandViewpointVector;
G4ThreeVector fViewpointVector;
};
class G4VisCommandViewerZoom: public G4VVisCommandViewer {
public:
G4VisCommandViewerZoom ();
virtual ~G4VisCommandViewerZoom ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4VisCommandViewerZoom (const G4VisCommandViewerZoom&);
G4VisCommandViewerZoom& operator = (const G4VisCommandViewerZoom&);
G4UIcmdWithADouble* fpCommandZoom;
G4UIcmdWithADouble* fpCommandZoomTo;
G4double fZoomMultiplier;
G4double fZoomTo;
};
#endif
@@ -5,37 +5,43 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisCommandsViewerSet.hh,v 1.3 2000/05/19 09:17:47 johna Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VisCommandsViewerSet.hh,v 1.8 2001/02/06 23:36:52 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
// /vis/viewer/set commands - John Allison 16th May 2000
#ifndef G4VISCOMMANDSVIEWERSET_HH
#define G4VISCOMMANDSVIEWERSET_HH
#include "G4VVisCommand.hh"
#include "G4VisCommandsViewer.hh"
#include "g4std/vector"
class G4UIcommand;
class G4UIcmdWithAString;
class G4UIcmdWithABool;
class G4UIcmdWithAnInteger;
class G4VisCommandsViewerSet: public G4VVisCommand {
class G4VisCommandsViewerSet: public G4VVisCommandViewer {
public:
// Uses compiler defaults for copy constructor and assignment.
G4VisCommandsViewerSet ();
~G4VisCommandsViewerSet ();
virtual ~G4VisCommandsViewerSet ();
G4String GetCurrentValue (G4UIcommand* command);
void SetNewValue (G4UIcommand* command, G4String newValue);
private:
G4String ConvertToString(G4bool blValue);
G4bool GetNewBoolValue(const G4String& paramString);
G4UIcmdWithAString* fpCommandAll;
G4UIcmdWithAString* fpCommandStyle;
G4UIcmdWithABool* fpCommandEdge;
G4UIcmdWithABool* fpCommandHiddenEdge;
G4UIcommand* fpCommandCulling;
G4VisCommandsViewerSet (const G4VisCommandsViewerSet&);
G4VisCommandsViewerSet& operator = (const G4VisCommandsViewerSet&);
G4UIcmdWithAString* fpCommandAll;
G4UIcmdWithABool* fpCommandAutoRefresh;
G4UIcommand* fpCommandCulling;
G4UIcmdWithABool* fpCommandEdge;
G4UIcmdWithABool* fpCommandHiddenEdge;
G4UIcmdWithABool* fpCommandHiddenMarker;
G4UIcmdWithAnInteger* fpCommandLineSegments;
G4UIcmdWithAString* fpCommandLightsMove;
G4UIcommand* fpCommandProjection;
G4UIcommand* fpCommandSectionPlane;
G4UIcmdWithAString* fpCommandStyle;
};
#endif
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VisFeaturesOfDAWNFILE.hh,v 1.3 1999/12/15 14:54:22 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
#ifndef G4VISFEATURESOFDAWNFILE_HH
#define G4VISFEATURESOFDAWNFILE_HH
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VisFeaturesOfFukuiRenderer.hh,v 1.3 1999/12/15 14:54:22 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VisFeaturesOfOpenGL.hh,v 1.3 1999/12/15 14:54:22 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VisFeaturesOfOpenInventor.hh,v 1.3 1999/12/15 14:54:22 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisManMessenger.hh,v 1.4 1999/12/15 14:54:22 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VisManMessenger.hh,v 1.6 2001/02/23 15:43:19 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// GEANT4 Visualization Manager Messenger - John Allison 22nd July 1996.
@@ -16,8 +16,7 @@
#include "G4UImessenger.hh"
#include "globals.hh"
#include "g4rw/tpordvec.h"
#include "g4std//vector"
class G4VisManager;
class G4UIcommand;
@@ -25,10 +24,12 @@ class G4UIcommand;
class G4VisManMessenger: public G4UImessenger {
public:
G4VisManMessenger (G4VisManager* pVMan);
~G4VisManMessenger ();
virtual ~G4VisManMessenger ();
void SetNewValue (G4UIcommand* command, G4String newValues);
G4String GetCurrentValue (G4UIcommand* command);
private:
G4VisManMessenger (const G4VisManMessenger&);
G4VisManMessenger& operator = (const G4VisManMessenger&);
void AddCommandCamera ();
// void AddCommandClear ();
// void AddCommandCopy ();
@@ -56,7 +57,7 @@ private:
G4bool ViewValid ();
void RotateViewpointAboutUpVectorBy (G4double dbeta);
G4VisManager* fpVMan;
G4RWTPtrOrderedVector <G4UIcommand> fCommandList;
G4std::vector<G4UIcommand*> fCommandList;
};
#endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisManager.hh,v 1.13 2000/05/02 09:57:15 johna Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VisManager.hh,v 1.17 2001/02/23 15:43:20 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
@@ -71,8 +71,8 @@
#include "G4Transform3D.hh"
#include "G4UImessenger.hh"
#include "g4rw/tpordvec.h"
#include "g4std/iostream"
#include "g4std/vector"
class G4VisManMessenger;
class G4VPhysicalVolume;
@@ -148,6 +148,11 @@ public: // With description
private:
// Private copy constructor and assigment operator - copying and
// assignment not allowed. Keeps CodeWizard happy.
G4VisManager (const G4VisManager&);
G4VisManager& operator = (const G4VisManager&);
static G4VisManager* GetInstance ();
// Returns pointer to itself. Throws a G4Exception if called before
// instantiation. Private so that only friends can use; the normal
@@ -258,6 +263,10 @@ public: // With description
/////////////////////////////////////////////////////////////////////
// Access functions.
void Enable();
void Disable();
// Global enable/disable functions.
G4VGraphicsSystem* GetCurrentGraphicsSystem () const;
G4Scene* GetCurrentScene () const;
G4VSceneHandler* GetCurrentSceneHandler () const;
@@ -296,6 +305,9 @@ public: // With description
G4bool IsValidView ();
// True if view is valid. Prints messages and sanitises varoius data.
static void PrintCommandDeprecation(const G4String&);
// Temporary deprecation printing.
protected:
virtual void RegisterGraphicsSystems () = 0;
@@ -316,7 +328,7 @@ protected:
G4ViewParameters fVP; // Current viewing parameters.
G4int fVerbose; // Verbosity level 0-10.
G4VisManMessenger* fpMessenger; // Pointer to messenger.
G4RWTPtrOrderedVector <G4UImessenger> fMessengerList;
G4std::vector<G4UImessenger*> fMessengerList;
G4VisStateDependent* fpStateDependent; // Friend state dependent class.
};
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VisManager.icc,v 1.5 1999/12/15 14:54:22 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// GEANT4 Visualization Manager - John Allison 02/Jan/1996.
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VisStateDependent.hh,v 1.3 1999/12/15 14:54:23 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
// A "state dependent" service class for G4VisManager.
// John Allison 29th November 1999
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VisToOldVisCommands.hh,v 1.4 1999/12/15 14:54:23 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4VisToOldVisCommands.hh,v 1.5 2001/02/23 15:43:20 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// Implements some /vis/ commands as /vis~/ temporarily.
@@ -18,8 +18,6 @@
#include "G4UImessenger.hh"
#include "globals.hh"
#include "g4rw/tpordvec.h"
class G4VisToOldVisCommands: public G4UImessenger {
public:
G4VisToOldVisCommands ();
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: MyVisManager.cc,v 1.5 2000/01/29 00:43:10 asaim Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// John Allison 24th January 1998.
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: MyVisManager.hh,v 1.4 1999/12/15 14:54:23 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// John Allison 24th January 1998.