Import Geant4 2.0.0 source tree
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4GraphicsSystemList.hh,v 1.4 1999/12/15 14:54:17 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 2nd April 1996
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Scene.hh,v 1.7 1999/12/15 14:54:17 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// Scene John Allison 19th July 1996.
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Scene.icc,v 1.5 1999/12/15 14:54:17 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4Scene.icc,v 1.6 2000/05/22 08:25:34 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// Scene data John Allison 19th July 1996.
|
||||
@@ -20,8 +20,7 @@ inline const G4String& G4Scene::GetName () const {
|
||||
}
|
||||
|
||||
inline G4bool G4Scene::IsEmpty () const {
|
||||
return fRunDurationModelList.entries () == 0 &&
|
||||
fEndOfEventModelList.entries () == 0;
|
||||
return fRunDurationModelList.entries () == 0;
|
||||
}
|
||||
|
||||
inline const G4RWTPtrOrderedVector <G4VModel>&
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SceneHandlerList.hh,v 1.3 1999/12/15 14:54:17 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// John Allison May 1996
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SceneList.hh,v 1.5 1999/12/15 14:54:18 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 9th August 1998
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VGraphicsSystem.hh,v 1.6 1999/12/15 14:54:18 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 27th March 1996
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VGraphicsSystem.icc,v 1.4 1999/12/15 14:54:18 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 27th March 1996
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VSceneHandler.hh,v 1.9 1999/12/15 14:54:19 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4VSceneHandler.hh,v 1.11 2000/05/02 09:49:27 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 19th July 1996.
|
||||
@@ -23,31 +23,18 @@
|
||||
#include "globals.hh"
|
||||
|
||||
#include "G4VGraphicsScene.hh"
|
||||
#include "G4Scene.hh"
|
||||
#include "G4ViewerList.hh"
|
||||
#include "G4ViewParameters.hh"
|
||||
#include "G4Box.hh"
|
||||
#include "G4Cons.hh"
|
||||
#include "G4Tubs.hh"
|
||||
#include "G4Trd.hh"
|
||||
#include "G4Trap.hh"
|
||||
#include "G4Sphere.hh"
|
||||
#include "G4Para.hh"
|
||||
#include "G4Torus.hh"
|
||||
#include "G4Polycone.hh"
|
||||
#include "G4Polyhedra.hh"
|
||||
#include "G4Transform3D.hh"
|
||||
#include "G4VModel.hh"
|
||||
|
||||
class G4VGraphicsSystem;
|
||||
class G4Scene;
|
||||
class G4VViewer;
|
||||
class G4VSolid;
|
||||
class G4VisAttributes;
|
||||
class G4Colour;
|
||||
class G4Visible;
|
||||
class G4VSolid;
|
||||
class G4ModelingParameters;
|
||||
class G4VModel;
|
||||
class G4VGraphicsSystem;
|
||||
class G4LogicalVolume;
|
||||
class G4VPhysicalVolume;
|
||||
|
||||
class G4VSceneHandler: public G4VGraphicsScene {
|
||||
|
||||
@@ -160,7 +147,7 @@ public: // With description
|
||||
// Access functions.
|
||||
const G4String& GetName () const;
|
||||
void SetName (const G4String&);
|
||||
G4int GetSceneId () const;
|
||||
G4int GetSceneHandlerId () const;
|
||||
G4int GetViewCount () const;
|
||||
G4VGraphicsSystem* GetGraphicsSystem () const;
|
||||
G4Scene* GetScene () const;
|
||||
@@ -248,13 +235,13 @@ protected:
|
||||
//////////////////////////////////////////////////////////////
|
||||
// Data members
|
||||
|
||||
G4VGraphicsSystem& fSystem; // Graphics system.
|
||||
const G4int fSceneId; // Id of this instance.
|
||||
G4VGraphicsSystem& fSystem; // Graphics system.
|
||||
const G4int fSceneHandlerId; // Id of this instance.
|
||||
G4String fName;
|
||||
G4int fViewCount; // To determine view ids.
|
||||
G4ViewerList fViewerList; // Viewers.
|
||||
G4VViewer* fpViewer; // Current viewer.
|
||||
G4Scene* fpScene; // Scene for this scene handler.
|
||||
G4int fViewCount; // To determine view ids.
|
||||
G4ViewerList fViewerList; // Viewers.
|
||||
G4VViewer* fpViewer; // Current viewer.
|
||||
G4Scene* fpScene; // Scene for this scene handler.
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
// Workspace...
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VSceneHandler.icc,v 1.7 1999/12/15 14:54:19 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4VSceneHandler.icc,v 1.8 2000/05/02 09:49:28 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 19th July 1996.
|
||||
@@ -20,8 +20,8 @@ inline G4VGraphicsSystem* G4VSceneHandler::GetGraphicsSystem () const {
|
||||
return &fSystem;
|
||||
}
|
||||
|
||||
inline G4int G4VSceneHandler::GetSceneId () const {
|
||||
return fSceneId;
|
||||
inline G4int G4VSceneHandler::GetSceneHandlerId () const {
|
||||
return fSceneHandlerId;
|
||||
}
|
||||
|
||||
inline G4int G4VSceneHandler::GetViewCount () const {
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VViewer.hh,v 1.5 1999/12/15 14:54:19 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4VViewer.hh,v 1.7 2000/05/02 09:51:22 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 27th March 1996
|
||||
@@ -64,9 +64,10 @@ public: // With description
|
||||
//////////////////////////////////////////////////////////////
|
||||
// Access functions.
|
||||
const G4String& GetName () const;
|
||||
const G4String& GetShortName () const;
|
||||
void SetName (const G4String&);
|
||||
G4int GetViewId () const;
|
||||
G4VSceneHandler* GetScene () const;
|
||||
G4VSceneHandler* GetSceneHandler () const;
|
||||
const G4ViewParameters& GetViewParameters () const;
|
||||
void SetViewParameters (const G4ViewParameters& vp);
|
||||
|
||||
@@ -93,6 +94,7 @@ protected:
|
||||
G4VSceneHandler& fSceneHandler; // Abstract scene for this view.
|
||||
G4int fViewId; // Id of this instance.
|
||||
G4String fName;
|
||||
G4String fShortName; // Up to first ' ' character, if any.
|
||||
G4ViewParameters fVP; // Viewing parameters.
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VViewer.icc,v 1.3 1999/12/15 14:54:19 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4VViewer.icc,v 1.4 2000/05/02 09:51:22 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 30th December 1996
|
||||
@@ -23,11 +23,11 @@ inline const G4String& G4VViewer::GetName () const {
|
||||
return fName;
|
||||
}
|
||||
|
||||
inline void G4VViewer::SetName (const G4String& name) {
|
||||
fName = name;
|
||||
inline const G4String& G4VViewer::GetShortName () const {
|
||||
return fShortName;
|
||||
}
|
||||
|
||||
inline G4VSceneHandler* G4VViewer::GetScene () const {
|
||||
inline G4VSceneHandler* G4VViewer::GetSceneHandler () const {
|
||||
return &fSceneHandler;
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VVisCommand.hh,v 1.6 1999/12/16 17:19:15 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
|
||||
// Base class for visualization commands - John Allison 9th August 1998
|
||||
// It is really a messenger - we have one command per messenger.
|
||||
|
||||
@@ -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-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
|
||||
// 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.6 1999/12/15 14:54:20 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4ViewParameters.hh,v 1.8 2000/05/13 10:51:31 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 19th July 1996
|
||||
@@ -17,46 +17,41 @@
|
||||
//
|
||||
// THE STANDARD VIEW AND ALL THAT.
|
||||
//
|
||||
// In GEANT4 visualization, we have the concept of a ``Standard
|
||||
// View''. This is the view when the complete set of objects being
|
||||
// In GEANT4 visualization, we have the concept of a "Standard
|
||||
// View". This is the view when the complete set of objects being
|
||||
// viewed is comfortably in view from any viewpoint. It is defined by
|
||||
// the ``Bounding Sphere'' of ``visible'' objects when initially
|
||||
// the "Bounding Sphere" of "visible" objects when initially
|
||||
// registered in the scene, and by the View Parameters.
|
||||
//
|
||||
// There is also the ``Standard Target Point'', which is the centre of
|
||||
// There is also the "Standard Target Point", which is the centre of
|
||||
// the Bounding Sphere (note that this belongs to the scene and is
|
||||
// stored in the G4Scene object). The ``Current Target Point'', initially
|
||||
// set to the Standard Target Point, is incremented by the ``dolly''
|
||||
// and ``zoom'' commands, and can be reset to the Standard Target
|
||||
// Point with the {\tt /vis~/camera/reset} command.
|
||||
// stored in the G4Scene object). The "Current Target Point", defined
|
||||
// relative to the Standard Target Point, is changed by the
|
||||
// "dolly" and "zoom" commands, and can be reset to the Standard
|
||||
// Target Point with the "/vis/viewer/reset" command.
|
||||
//
|
||||
// Also, the ``Standard Camera Position'' is the ``Standard Camera
|
||||
// Distance'' along the Viewpoint Direction vector from the Standard
|
||||
// Also, the "Standard Camera Position" is the "Standard Camera
|
||||
// Distance" along the Viewpoint Direction vector from the Standard
|
||||
// Target Point. The Standard Camera Distance is the radius of the
|
||||
// Bounding Sphere divided by {\tt fFieldHalfAngle}. It is not stored
|
||||
// explicitly because of the singularity at {\tt fFieldHalfAngle} = 0,
|
||||
// Bounding Sphere divided by fFieldHalfAngle. It is not stored
|
||||
// explicitly because of the singularity at fFieldHalfAngle = 0,
|
||||
// which implies parallel projection.
|
||||
//
|
||||
// Similarly, the ``Current Camera Position'' is the ``Current Camera
|
||||
// Distance'' along the Viewpoint Direction vector from the Current
|
||||
// Similarly, the "Current Camera Position" is the "Current Camera
|
||||
// Distance" along the Viewpoint Direction vector from the Current
|
||||
// Target Point. The Current Camera Distance is given by the formulae
|
||||
// below, but note that it can be negative, meaning that the camera
|
||||
// has moved {\em beyond} the Current Target Point, which is
|
||||
// has moved *beyond* the Current Target Point, which is
|
||||
// conceptually possible, but which might give some problems when
|
||||
// setting up the view matrix --- see, for example, {\tt
|
||||
// G4OpenGLView::SetView ()}.
|
||||
// setting up the view matrix - see, for example, G4OpenGLView::SetView ().
|
||||
//
|
||||
// All viewers are expected to keep the ``Up Vector'' vertical.
|
||||
// All viewers are expected to keep the "Up Vector" vertical.
|
||||
//
|
||||
// Finally, the view is magnified by the ``Zoom Factor'' which is
|
||||
// reset to 1 by the \linebreak {\tt /vis~/camera/reset} command.
|
||||
//
|
||||
// Note: the camera movements pan, dolly and zoom, are currently coded
|
||||
// in \linebreak {\tt G4VisManMessenger.cc}.
|
||||
// Finally, the view is magnified by the "Zoom Factor" which is
|
||||
// reset to 1 by the "/vis/viewer/reset" command.
|
||||
//
|
||||
// The algorithms for calculating various useful quantities from the
|
||||
// View Parameters are encapsulated in the functions described in
|
||||
// Appendix \ref{ap:useful}.
|
||||
// View Parameters, such as GetCameraDistance, are described below.
|
||||
|
||||
#ifndef G4VIEWPARAMETERS_HH
|
||||
#define G4VIEWPARAMETERS_HH
|
||||
@@ -213,11 +208,11 @@ private:
|
||||
// to fViewpointDirection!)
|
||||
G4double fFieldHalfAngle; // Radius / camara distance, 0 for parallel.
|
||||
G4double fZoomFactor; // Magnification relative to Standard View.
|
||||
G4Point3D fCurrentTargetPoint;
|
||||
G4Point3D fCurrentTargetPoint; // Relative to standard target point.
|
||||
G4double fDolly; // Distance towards current target point.
|
||||
G4bool fLightsMoveWithCamera;
|
||||
G4Vector3D fRelativeLightpointDirection;
|
||||
// i.e., rel. to object or camera accoding to G4bool LightsMoveWithCamera.
|
||||
// i.e., rel. to object or camera accoding to G4bool fLightsMoveWithCamera.
|
||||
G4Vector3D fActualLightpointDirection;
|
||||
G4bool fViewGeom; // View geometry objects.
|
||||
G4bool fViewHits; // View hits, if any.
|
||||
@@ -238,4 +233,3 @@ private:
|
||||
#include "G4ViewParameters.icc"
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ViewParameters.icc,v 1.3 1999/12/15 14:54:20 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 20th October 1996
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ViewerList.hh,v 1.3 1999/12/15 14:54:20 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// John Allison May 1996
|
||||
|
||||
@@ -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-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// 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-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// Command Messenger Templates.
|
||||
|
||||
@@ -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-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// /vis~/camera/ commands
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VisCommandsCameraMessengers.hh,v 1.3 1999/12/15 14:54:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// Messengers for /vis~/camera commands - John Allison 6th April 1998.
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VisCommandsClear.hh,v 1.4 1999/12/15 14:54:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// /vis~/clear/ commands
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
// 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: G4VisCommandsCompound.hh,v 1.2 2000/05/15 11:49:02 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
|
||||
// Compound /vis/ commands - John Allison 15th May 2000
|
||||
|
||||
#ifndef G4VISCOMMANDSCOMPOUND_HH
|
||||
#define G4VISCOMMANDSCOMPOUND_HH
|
||||
|
||||
#include "G4VVisCommand.hh"
|
||||
|
||||
class G4VisCommandDrawVolume: public G4VVisCommand {
|
||||
public:
|
||||
// Uses compiler defaults for copy constructor and assignment.
|
||||
G4VisCommandDrawVolume ();
|
||||
~G4VisCommandDrawVolume ();
|
||||
void SetNewValue (G4UIcommand* command, G4String newValue);
|
||||
private:
|
||||
G4UIcmdWithAString* fpCommand;
|
||||
};
|
||||
|
||||
class G4VisCommandOpen: public G4VVisCommand {
|
||||
public:
|
||||
// Uses compiler defaults for copy constructor and assignment.
|
||||
G4VisCommandOpen ();
|
||||
~G4VisCommandOpen ();
|
||||
void SetNewValue (G4UIcommand* command, G4String newValue);
|
||||
private:
|
||||
G4UIcmdWithAString* fpCommand;
|
||||
};
|
||||
|
||||
class G4VisCommandSpecify: public G4VVisCommand {
|
||||
public:
|
||||
// Uses compiler defaults for copy constructor and assignment.
|
||||
G4VisCommandSpecify ();
|
||||
~G4VisCommandSpecify ();
|
||||
void SetNewValue (G4UIcommand* command, G4String newValue);
|
||||
private:
|
||||
G4UIcmdWithAString* fpCommand;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VisCommandsCopy.hh,v 1.4 1999/12/15 14:54:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// /vis~/copy/ commands
|
||||
|
||||
@@ -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-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// /vis~/create_scene/ commands
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VisCommandsCreateView.hh,v 1.4 1999/12/15 14:54:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// /vis~/create_view/ commands
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VisCommandsDelete.hh,v 1.4 1999/12/15 14:54:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// /vis~/delete/ commands
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VisCommandsDraw.hh,v 1.3 1999/12/15 14:54:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// /vis~/draw/ commands
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VisCommandsLights.hh,v 1.4 1999/12/15 14:54:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// /vis~/lights/ commands
|
||||
|
||||
@@ -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-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// /vis~/print/ commands
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VisCommandsRefresh.hh,v 1.3 1999/12/15 14:54:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// /vis~/refresh/ commands
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VisCommandsScene.hh,v 1.8 1999/12/15 14:54:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
|
||||
// /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: G4VisCommandsSceneAdd.hh,v 1.4 1999/12/15 14:54:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4VisCommandsSceneAdd.hh,v 1.5 2000/05/19 09:17:42 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
|
||||
// /vis/scene commands - John Allison 9th August 1998
|
||||
|
||||
@@ -15,15 +15,26 @@
|
||||
|
||||
#include "G4VisCommandsScene.hh"
|
||||
|
||||
class G4VisCommandSceneAddVolume: public G4VVisCommandScene {
|
||||
class G4VisCommandSceneAddGhosts: public G4VVisCommandScene {
|
||||
public:
|
||||
// Uses compiler defaults for copy constructor and assignment.
|
||||
G4VisCommandSceneAddVolume ();
|
||||
~G4VisCommandSceneAddVolume ();
|
||||
G4VisCommandSceneAddGhosts ();
|
||||
~G4VisCommandSceneAddGhosts ();
|
||||
G4String GetCurrentValue (G4UIcommand* command);
|
||||
void SetNewValue (G4UIcommand* command, G4String newValue);
|
||||
private:
|
||||
G4UIcommand* fpCommand;
|
||||
G4UIcmdWithAString* fpCommand;
|
||||
};
|
||||
|
||||
class G4VisCommandSceneAddHits: public G4VVisCommandScene {
|
||||
public:
|
||||
// Uses compiler defaults for copy constructor and assignment.
|
||||
G4VisCommandSceneAddHits ();
|
||||
~G4VisCommandSceneAddHits ();
|
||||
G4String GetCurrentValue (G4UIcommand* command);
|
||||
void SetNewValue (G4UIcommand* command, G4String newValue);
|
||||
private:
|
||||
G4UIcmdWithoutParameter* fpCommand;
|
||||
};
|
||||
|
||||
class G4VisCommandSceneAddLogicalVolume: public G4VVisCommandScene {
|
||||
@@ -37,15 +48,26 @@ private:
|
||||
G4UIcommand* fpCommand;
|
||||
};
|
||||
|
||||
class G4VisCommandSceneAddGhosts: public G4VVisCommandScene {
|
||||
class G4VisCommandSceneAddTrajectories: public G4VVisCommandScene {
|
||||
public:
|
||||
// Uses compiler defaults for copy constructor and assignment.
|
||||
G4VisCommandSceneAddGhosts ();
|
||||
~G4VisCommandSceneAddGhosts ();
|
||||
G4VisCommandSceneAddTrajectories ();
|
||||
~G4VisCommandSceneAddTrajectories ();
|
||||
G4String GetCurrentValue (G4UIcommand* command);
|
||||
void SetNewValue (G4UIcommand* command, G4String newValue);
|
||||
private:
|
||||
G4UIcmdWithAString* fpCommand;
|
||||
G4UIcmdWithoutParameter* fpCommand;
|
||||
};
|
||||
|
||||
class G4VisCommandSceneAddVolume: public G4VVisCommandScene {
|
||||
public:
|
||||
// Uses compiler defaults for copy constructor and assignment.
|
||||
G4VisCommandSceneAddVolume ();
|
||||
~G4VisCommandSceneAddVolume ();
|
||||
G4String GetCurrentValue (G4UIcommand* command);
|
||||
void SetNewValue (G4UIcommand* command, G4String newValue);
|
||||
private:
|
||||
G4UIcommand* fpCommand;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
|
||||
// /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-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
|
||||
// /vis/scene commands - John Allison 9th August 1998
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VisCommandsSet.hh,v 1.4 1999/12/15 14:54:22 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// /vis~/set/ commands
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VisCommandsShow.hh,v 1.3 1999/12/15 14:54:22 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// /vis~/show/ commands
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VisCommandsViewer.hh,v 1.7 2000/01/11 17:22:29 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4VisCommandsViewer.hh,v 1.9 2000/06/07 08:43:28 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
|
||||
// /vis/viewer commands - John Allison 25th October 1998
|
||||
|
||||
@@ -24,7 +24,6 @@ public:
|
||||
G4VVisCommandViewer ();
|
||||
~G4VVisCommandViewer ();
|
||||
protected:
|
||||
G4String ShortName (const G4String &);
|
||||
void UpdateCandidateLists ();
|
||||
};
|
||||
|
||||
@@ -74,6 +73,17 @@ private:
|
||||
G4UIcmdWithAString* fpCommand;
|
||||
};
|
||||
|
||||
class G4VisCommandViewerReset: public G4VVisCommandViewer {
|
||||
public:
|
||||
// Uses compiler defaults for copy constructor and assignment.
|
||||
G4VisCommandViewerReset ();
|
||||
~G4VisCommandViewerReset ();
|
||||
G4String GetCurrentValue (G4UIcommand* command);
|
||||
void SetNewValue (G4UIcommand* command, G4String newValue);
|
||||
private:
|
||||
G4UIcmdWithAString* fpCommand;
|
||||
};
|
||||
|
||||
class G4VisCommandViewerSelect: public G4VVisCommandViewer {
|
||||
public:
|
||||
// Uses compiler defaults for copy constructor and assignment.
|
||||
@@ -85,11 +95,11 @@ private:
|
||||
G4UIcmdWithAString* fpCommand;
|
||||
};
|
||||
|
||||
class G4VisCommandViewerShow: public G4VVisCommandViewer {
|
||||
class G4VisCommandViewerUpdate: public G4VVisCommandViewer {
|
||||
public:
|
||||
// Uses compiler defaults for copy constructor and assignment.
|
||||
G4VisCommandViewerShow ();
|
||||
~G4VisCommandViewerShow ();
|
||||
G4VisCommandViewerUpdate ();
|
||||
~G4VisCommandViewerUpdate ();
|
||||
G4String GetCurrentValue (G4UIcommand* command);
|
||||
void SetNewValue (G4UIcommand* command, G4String newValue);
|
||||
private:
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
// 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: G4VisCommandsViewerSet.hh,v 1.3 2000/05/19 09:17:47 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
|
||||
// /vis/viewer/set commands - John Allison 16th May 2000
|
||||
|
||||
#ifndef G4VISCOMMANDSVIEWERSET_HH
|
||||
#define G4VISCOMMANDSVIEWERSET_HH
|
||||
|
||||
#include "G4VVisCommand.hh"
|
||||
|
||||
#include "g4std/vector"
|
||||
|
||||
class G4UIcommand;
|
||||
class G4UIcmdWithAString;
|
||||
class G4UIcmdWithABool;
|
||||
|
||||
class G4VisCommandsViewerSet: public G4VVisCommand {
|
||||
public:
|
||||
// Uses compiler defaults for copy constructor and assignment.
|
||||
G4VisCommandsViewerSet ();
|
||||
~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;
|
||||
};
|
||||
|
||||
#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-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
#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-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -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-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -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-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VisManMessenger.hh,v 1.4 1999/12/15 14:54:22 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// GEANT4 Visualization Manager Messenger - John Allison 22nd July 1996.
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VisManager.hh,v 1.11 1999/12/15 18:27:14 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4VisManager.hh,v 1.13 2000/05/02 09:57:15 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -98,8 +98,12 @@ class G4VisManager: public G4VVisManager {
|
||||
// G4VVisManager::GetConcreteInstance (), always testing for
|
||||
// non-zero.
|
||||
|
||||
// Odd friends that need access to various methods of the G4VisManager...
|
||||
friend void G4OpenGLXmViewerSecondaryLoopPostAction (); // Mmmm!
|
||||
friend class G4RTSteppingAction;
|
||||
friend class G4RayTrajectory;
|
||||
|
||||
// Management friends...
|
||||
friend class G4VSceneHandler;
|
||||
friend class G4VViewer;
|
||||
|
||||
@@ -266,7 +270,6 @@ public: // With description
|
||||
const G4SceneHandlerList& GetAvailableSceneHandlers () const;
|
||||
const G4SceneList& GetSceneList () const;
|
||||
G4int GetVerboseLevel () const;
|
||||
G4bool IsValidView ();
|
||||
void SetCurrentGraphicsSystemAndCreateViewer
|
||||
(G4VGraphicsSystem* pSystem);
|
||||
void SetCurrentGraphicsSystem (G4VGraphicsSystem* pSystem);
|
||||
@@ -278,6 +281,21 @@ public: // With description
|
||||
G4SceneList& SetSceneList (); // Returns lvalue.
|
||||
void SetVerboseLevel (G4int vLevel);
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
// Utility functions.
|
||||
|
||||
G4String ViewerShortName (const G4String& viewerName) const;
|
||||
// Returns shortened version of viewer name, i.e., up to first space,
|
||||
// if any.
|
||||
|
||||
G4VViewer* GetViewer (const G4String& viewerName) const;
|
||||
// Returns zero if not found. Can use long or short name, but find
|
||||
// is done on short name.
|
||||
|
||||
G4bool IsValidView ();
|
||||
// True if view is valid. Prints messages and sanitises varoius data.
|
||||
|
||||
protected:
|
||||
|
||||
virtual void RegisterGraphicsSystems () = 0;
|
||||
|
||||
@@ -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-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// 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-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
// A "state dependent" service class for G4VisManager.
|
||||
// John Allison 29th November 1999
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VisToOldVisCommands.hh,v 1.4 1999/12/15 14:54:23 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// Implements some /vis/ commands as /vis~/ temporarily.
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: MyVisManager.cc,v 1.4 1999/12/15 14:54:23 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: MyVisManager.cc,v 1.5 2000/01/29 00:43:10 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 24th January 1998.
|
||||
@@ -23,6 +23,10 @@
|
||||
#include "G4DAWNFILE.hh"
|
||||
#endif
|
||||
|
||||
#ifdef G4VIS_USE_RAYTRACER
|
||||
#include "G4RayTracer.hh"
|
||||
#endif
|
||||
|
||||
#ifdef G4VIS_USE_OPACS
|
||||
#include "G4Wo.hh"
|
||||
#include "G4Xo.hh"
|
||||
@@ -73,6 +77,10 @@ void MyVisManager::RegisterGraphicsSystems () {
|
||||
RegisterGraphicsSystem (new G4DAWNFILE);
|
||||
#endif
|
||||
|
||||
#ifdef G4VIS_USE_RAYTRACER
|
||||
RegisterGraphicsSystem (new G4RayTracer);
|
||||
#endif
|
||||
|
||||
#ifdef G4VIS_USE_OPACS
|
||||
RegisterGraphicsSystem (new G4Wo);
|
||||
RegisterGraphicsSystem (new G4Xo);
|
||||
|
||||
@@ -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-01-01 $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 24th January 1998.
|
||||
|
||||
Reference in New Issue
Block a user