Import Geant4 0.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:09:25 +02:00
parent b97f8d0df7
commit aaa409b6ee
2922 changed files with 55107 additions and 81674 deletions
@@ -5,32 +5,32 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateScene.hh,v 2.2 1998/11/06 13:42:13 allison Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLImmediateSceneHandler.hh,v 1.2 1999/05/10 14:03:39 johna Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 10th February 1997
// G4OpenGLImmediateScene - no Display lists.
// G4OpenGLImmediateSceneHandler - no Display lists.
#ifdef G4VIS_BUILD_OPENGL_DRIVER
#ifndef G4OPENGLIMMEDIATESCENE_HH
#define G4OPENGLIMMEDIATESCENE_HH
#ifndef G4OPENGLIMMEDIATESCENEHANDLER_HH
#define G4OPENGLIMMEDIATESCENEHANDLER_HH
#include "G4VScene.hh"
#include "G4OpenGLView.hh"
#include "G4OpenGLImmediateView.hh"
#include "G4VSceneHandler.hh"
#include "G4OpenGLViewer.hh"
#include "G4OpenGLImmediateViewer.hh"
#include "globals.hh"
#include "G4RotationMatrix.hh"
#include "G4OpenGLScene.hh"
#include "G4OpenGLSceneHandler.hh"
class G4OpenGLImmediate;
class G4OpenGLImmediateScene: public G4OpenGLScene {
class G4OpenGLImmediateSceneHandler: public G4OpenGLSceneHandler {
public:
G4OpenGLImmediateScene (G4VGraphicsSystem& system, const G4String& name);
~G4OpenGLImmediateScene ();
G4OpenGLImmediateSceneHandler (G4VGraphicsSystem& system, const G4String& name);
virtual ~G4OpenGLImmediateSceneHandler ();
void BeginPrimitives (const G4Transform3D& objectTransformation);
void EndPrimitives ();
void BeginModeling ();
@@ -1,44 +0,0 @@
// This code implementation is the intellectual property of
// the RD44 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: G4OpenGLImmediateView.hh,v 2.0 1998/07/02 16:44:02 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// Andrew Walkden 7th February 1997
// Class G4OpenGLImmediateView : Encapsulates the `immediateness' of
// an OpenGL view, for inheritance by
// derived (X, Xm...) classes.
#ifdef G4VIS_BUILD_OPENGL_DRIVER
#ifndef G4OPENGLIMMEDIATEVIEW_HH
#define G4OPENGLIMMEDIATEVIEW_HH
#include "G4VView.hh"
#include "G4OpenGLView.hh"
#include "G4OpenGLScene.hh"
#include "G4OpenGLImmediateScene.hh"
#include "G4OpenGLTransform3D.hh"
#include "globals.hh"
#include <rw/tvordvec.h>
class G4OpenGLScene;
class G4OpenGLImmediateScene;
class G4OpenGLImmediateView: virtual public G4OpenGLView {
public:
G4OpenGLImmediateView (G4OpenGLImmediateScene& scene);
private:
G4OpenGLImmediateScene& fScene; // Graphics Scene for this view.
};
#endif
#endif
@@ -0,0 +1,44 @@
// This code implementation is the intellectual property of
// the RD44 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: G4OpenGLImmediateViewer.hh,v 1.2 1999/01/11 00:47:35 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 7th February 1997
// Class G4OpenGLImmediateViewer : Encapsulates the `immediateness' of
// an OpenGL viewer, for inheritance by
// derived (X, Xm...) classes.
#ifdef G4VIS_BUILD_OPENGL_DRIVER
#ifndef G4OPENGLIMMEDIATEVIEWER_HH
#define G4OPENGLIMMEDIATEVIEWER_HH
#include "G4VViewer.hh"
#include "G4OpenGLViewer.hh"
#include "G4OpenGLSceneHandler.hh"
#include "G4OpenGLImmediateSceneHandler.hh"
#include "G4OpenGLTransform3D.hh"
#include "globals.hh"
#include <rw/tvordvec.h>
class G4OpenGLSceneHandler;
class G4OpenGLImmediateSceneHandler;
class G4OpenGLImmediateViewer: virtual public G4OpenGLViewer {
public:
G4OpenGLImmediateViewer (G4OpenGLImmediateSceneHandler& scene);
private:
G4OpenGLImmediateSceneHandler& fSceneHandler; // Graphics Scene for this view.
};
#endif
#endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateWin32.hh,v 2.0 1998/07/02 16:44:03 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLImmediateWin32.hh,v 1.3 1999/01/11 00:47:36 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// OpenGLImmediateWin32 graphics system factory.
@@ -21,8 +21,8 @@
class G4OpenGLImmediateWin32: public G4VGraphicsSystem {
public:
G4OpenGLImmediateWin32 ();
G4VScene* CreateScene ();
G4VView* CreateView (G4VScene&);
G4VSceneHandler* CreateSceneHandler ();
G4VViewer* CreateViewer (G4VSceneHandler&);
};
#endif
@@ -1,39 +0,0 @@
// This code implementation is the intellectual property of
// the RD44 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: G4OpenGLImmediateWin32View.hh,v 2.0 1998/07/02 16:44:05 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// Class G4OpenGLImmediateWin32View : a class derived from G4OpenGLWin32View and
// G4OpenGLImmediateView.
#ifdef G4VIS_BUILD_OPENGLWIN32_DRIVER
#ifndef G4OpenGLIMMEDIATEWIN32VIEW_HH
#define G4OpenGLIMMEDIATEWIN32VIEW_HH
#include "G4VView.hh"
#include "G4OpenGLImmediateView.hh"
#include "G4OpenGLWin32View.hh"
#include "globals.hh"
#include <rw/tvordvec.h>
class G4OpenGLImmediateScene;
class G4OpenGLImmediateWin32View:
public G4OpenGLWin32View, public G4OpenGLImmediateView{
public:
G4OpenGLImmediateWin32View (G4OpenGLImmediateScene& scene);
void DrawView ();
};
#endif
#endif
@@ -0,0 +1,39 @@
// This code implementation is the intellectual property of
// the RD44 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: G4OpenGLImmediateWin32Viewer.hh,v 1.1 1999/01/09 16:22:37 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Class G4OpenGLImmediateWin32Viewer : a class derived from
// G4OpenGLWin32Viewer and G4OpenGLImmediateViewer.
#ifdef G4VIS_BUILD_OPENGLWIN32_DRIVER
#ifndef G4OpenGLIMMEDIATEWIN32VIEWER_HH
#define G4OpenGLIMMEDIATEWIN32VIEWER_HH
#include "G4VViewer.hh"
#include "G4OpenGLImmediateViewer.hh"
#include "G4OpenGLWin32Viewer.hh"
#include "globals.hh"
#include <rw/tvordvec.h>
class G4OpenGLImmediateSceneHandler;
class G4OpenGLImmediateWin32Viewer:
public G4OpenGLWin32Viewer, public G4OpenGLImmediateViewer{
public:
G4OpenGLImmediateWin32Viewer (G4OpenGLImmediateSceneHandler& scene);
void DrawView ();
};
#endif
#endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateX.hh,v 2.1 1998/11/06 13:42:14 allison Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLImmediateX.hh,v 1.4 1999/05/10 14:03:41 johna Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -22,8 +22,9 @@
class G4OpenGLImmediateX: public G4VGraphicsSystem {
public:
G4OpenGLImmediateX ();
G4VScene* CreateScene (const G4String& name = "");
G4VView* CreateView (G4VScene&, const G4String& name = "");
virtual ~G4OpenGLImmediateX ();
G4VSceneHandler* CreateSceneHandler (const G4String& name = "");
G4VViewer* CreateViewer (G4VSceneHandler&, const G4String& name = "");
};
#endif
@@ -1,41 +0,0 @@
// This code implementation is the intellectual property of
// the RD44 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: G4OpenGLImmediateXView.hh,v 2.1 1998/11/06 13:42:15 allison Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// Andrew Walkden 7th February 1997
// Class G4OpenGLImmediateXView : a class derived from G4OpenGLXView and
// G4OpenGLImmediateView.
#ifdef G4VIS_BUILD_OPENGLX_DRIVER
#ifndef G4OpenGLIMMEDIATEXVIEW_HH
#define G4OpenGLIMMEDIATEXVIEW_HH
#include "G4VView.hh"
#include "G4OpenGLImmediateView.hh"
#include "G4OpenGLXView.hh"
#include "globals.hh"
#include <rw/tvordvec.h>
class G4OpenGLImmediateScene;
class G4OpenGLImmediateXView:
public G4OpenGLXView, public G4OpenGLImmediateView{
public:
G4OpenGLImmediateXView (G4OpenGLImmediateScene& scene,
const G4String& name = "");
void DrawView ();
};
#endif
#endif
@@ -0,0 +1,42 @@
// This code implementation is the intellectual property of
// the RD44 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: G4OpenGLImmediateXViewer.hh,v 1.2 1999/05/10 14:03:42 johna Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 7th February 1997
// Class G4OpenGLImmediateXViewer : a class derived from G4OpenGLXViewer and
// G4OpenGLImmediateViewer.
#ifdef G4VIS_BUILD_OPENGLX_DRIVER
#ifndef G4OpenGLIMMEDIATEXVIEWER_HH
#define G4OpenGLIMMEDIATEXVIEWER_HH
#include "G4VViewer.hh"
#include "G4OpenGLImmediateViewer.hh"
#include "G4OpenGLXViewer.hh"
#include "globals.hh"
#include <rw/tvordvec.h>
class G4OpenGLImmediateSceneHandler;
class G4OpenGLImmediateXViewer:
public G4OpenGLXViewer, public G4OpenGLImmediateViewer{
public:
G4OpenGLImmediateXViewer (G4OpenGLImmediateSceneHandler& scene,
const G4String& name = "");
virtual ~G4OpenGLImmediateXViewer ();
void DrawView ();
};
#endif
#endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateXm.hh,v 2.1 1998/11/06 13:42:16 allison Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLImmediateXm.hh,v 1.3 1999/01/11 00:47:37 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -22,8 +22,8 @@
class G4OpenGLImmediateXm: public G4VGraphicsSystem {
public:
G4OpenGLImmediateXm ();
G4VScene* CreateScene (const G4String& name = "");
G4VView* CreateView (G4VScene&, const G4String& name = "");
G4VSceneHandler* CreateSceneHandler (const G4String& name = "");
G4VViewer* CreateViewer (G4VSceneHandler&, const G4String& name = "");
};
#endif
@@ -5,33 +5,33 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateXmView.hh,v 2.1 1998/11/06 13:42:17 allison Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLImmediateXmViewer.hh,v 1.1 1999/01/09 16:22:41 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 10th February 1997
// G4OpenGLXmView : Class derived from G4OpenGLXView, to provide
// G4OpenGLXmViewer : Class derived from G4OpenGLXViewer, to provide
// (Motif) widget OpenGL functionality for GEANT4.
#ifdef G4VIS_BUILD_OPENGLXM_DRIVER
#ifndef G4OPENGLIMMEDIATEXMVIEW_HH
#define G4OPENGLIMMEDIATEXMVIEW_HH
#ifndef G4OPENGLIMMEDIATEXMVIEWER_HH
#define G4OPENGLIMMEDIATEXMVIEWER_HH
#include "G4VView.hh"
#include "G4OpenGLImmediateView.hh"
#include "G4OpenGLXmView.hh"
#include "G4VViewer.hh"
#include "G4OpenGLImmediateViewer.hh"
#include "G4OpenGLXmViewer.hh"
#include "globals.hh"
#include <rw/tvordvec.h>
class G4OpenGLImmediateScene;
class G4OpenGLImmediateSceneHandler;
class G4OpenGLImmediateXmView:
public G4OpenGLXmView, public G4OpenGLImmediateView{
class G4OpenGLImmediateXmViewer:
public G4OpenGLXmViewer, public G4OpenGLImmediateViewer{
public:
G4OpenGLImmediateXmView (G4OpenGLImmediateScene& scene,
G4OpenGLImmediateXmViewer (G4OpenGLImmediateSceneHandler& scene,
const G4String& name = "");
void DrawView ();
@@ -1,53 +0,0 @@
// This code implementation is the intellectual property of
// the RD44 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: G4OpenGLScene.icc,v 2.1 1998/08/07 12:46:14 barrand Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// Andrew Walkden 20th January 1998
inline void G4OpenGLScene::AddThis (const G4Box& box) {
G4VScene::AddThis (box);
}
inline void G4OpenGLScene::AddThis (const G4Cons& cons) {
G4VScene::AddThis (cons);
}
inline void G4OpenGLScene::AddThis (const G4Tubs& tubs) {
G4VScene::AddThis (tubs);
}
inline void G4OpenGLScene::AddThis (const G4Trd& trd) {
G4VScene::AddThis (trd);
}
inline void G4OpenGLScene::AddThis (const G4Trap& trap) {
G4VScene::AddThis (trap);
}
inline void G4OpenGLScene::AddThis (const G4Sphere& sphere) {
G4VScene::AddThis (sphere);
}
inline void G4OpenGLScene::AddThis (const G4Para& para) {
G4VScene::AddThis (para);
}
inline void G4OpenGLScene::AddThis (const G4Torus& torus) {
G4VScene::AddThis (torus);
}
inline void G4OpenGLScene::AddThis (const G4VSolid& vsolid) {
G4VScene::AddThis (vsolid);
}
inline void G4OpenGLScene::AddPrimitive (const G4Polymarker& polymarker) {
G4VScene::AddPrimitive (polymarker);
}
@@ -5,23 +5,21 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLScene.hh,v 2.3 1998/11/06 13:42:18 allison Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLSceneHandler.hh,v 1.3 1999/06/29 18:06:53 johna Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 27th March 1996
// OpenGL scene - base for immediate mode and stored mode classes to
// inherit from.
// OpenGL scene handler - base for immediate mode and stored mode classes to
// inherit from.
#ifdef G4VIS_BUILD_OPENGL_DRIVER
#ifndef G4OPENGLSCENE_HH
#define G4OPENGLSCENE_HH
#ifndef G4OPENGLSCENEHANDLER_HH
#define G4OPENGLSCENEHANDLER_HH
#include <rw/tvhdict.h>
#include "G4VScene.hh"
#include "G4OpenGLView.hh"
#include "G4VSceneHandler.hh"
#include "G4OpenGLViewer.hh"
#include "globals.hh"
#include "G4RotationMatrix.hh"
@@ -30,7 +28,7 @@
#include <GL/glu.h>
// Base class for various OpenGLScene classes.
class G4OpenGLScene: public G4VScene {
class G4OpenGLSceneHandler: public G4VSceneHandler {
public:
void AddPrimitive (const G4Polyline&);
@@ -52,17 +50,17 @@ public:
void AddThis (const G4VSolid&);
protected:
G4OpenGLScene (G4VGraphicsSystem& system,
G4OpenGLSceneHandler (G4VGraphicsSystem& system,
G4int id,
const G4String& name = "");
~G4OpenGLScene ();
virtual ~G4OpenGLSceneHandler ();
G4bool initialize_hlr;
private:
GLdouble clear_colour[4];
};
#include "G4OpenGLScene.icc"
#include "G4OpenGLSceneHandler.icc"
#endif
@@ -0,0 +1,53 @@
// This code implementation is the intellectual property of
// the RD44 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: G4OpenGLSceneHandler.icc,v 1.1 1999/01/09 16:22:43 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 20th January 1998
inline void G4OpenGLSceneHandler::AddThis (const G4Box& box) {
G4VSceneHandler::AddThis (box);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Cons& cons) {
G4VSceneHandler::AddThis (cons);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Tubs& tubs) {
G4VSceneHandler::AddThis (tubs);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Trd& trd) {
G4VSceneHandler::AddThis (trd);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Trap& trap) {
G4VSceneHandler::AddThis (trap);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Sphere& sphere) {
G4VSceneHandler::AddThis (sphere);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Para& para) {
G4VSceneHandler::AddThis (para);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Torus& torus) {
G4VSceneHandler::AddThis (torus);
}
inline void G4OpenGLSceneHandler::AddThis (const G4VSolid& vsolid) {
G4VSceneHandler::AddThis (vsolid);
}
inline void G4OpenGLSceneHandler::AddPrimitive (const G4Polymarker& polymarker) {
G4VSceneHandler::AddPrimitive (polymarker);
}
@@ -5,33 +5,34 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredScene.hh,v 2.2 1998/11/06 13:42:19 allison Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLStoredSceneHandler.hh,v 1.3 1999/06/29 18:06:54 johna Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 10th February 1997
// G4OpenGLStoredScene - creates OpenGL Display lists.
// G4OpenGLStoredSceneHandler - creates OpenGL Display lists.
#ifdef G4VIS_BUILD_OPENGL_DRIVER
#ifndef G4OPENGLSTOREDSCENE_HH
#define G4OPENGLSTOREDSCENE_HH
#ifndef G4OPENGLSTOREDSCENEHANDLER_HH
#define G4OPENGLSTOREDSCENEHANDLER_HH
#include "G4VScene.hh"
#include "G4OpenGLView.hh"
#include "G4OpenGLStoredView.hh"
#include "G4VSceneHandler.hh"
#include "G4OpenGLViewer.hh"
#include "G4OpenGLStoredViewer.hh"
#include "globals.hh"
#include "G4RotationMatrix.hh"
#include "G4OpenGLScene.hh"
#include "G4OpenGLSceneHandler.hh"
#include <rw/tvhdict.h>
class G4OpenGLStored;
class G4OpenGLStoredScene: public G4OpenGLScene {
class G4OpenGLStoredSceneHandler: public G4OpenGLSceneHandler {
public:
typedef unsigned long G4VSolidPointer;
G4OpenGLStoredScene (G4VGraphicsSystem& system, const G4String& name = "");
~G4OpenGLStoredScene ();
G4OpenGLStoredSceneHandler (G4VGraphicsSystem& system, const G4String& name = "");
virtual ~G4OpenGLStoredSceneHandler ();
void BeginPrimitives (const G4Transform3D& objectTransformation);
void EndPrimitives ();
void BeginModeling ();
@@ -40,7 +41,7 @@ public:
G4bool fMemoryForDisplayLists; // avoid memory overflow
private:
friend class G4OpenGLStoredView;
friend class G4OpenGLStoredViewer;
// ..allows access to P/TODLs.
void ClearStore ();
void RequestPrimitives (const G4VSolid& solid);
@@ -62,7 +63,7 @@ friend class G4OpenGLStoredView;
RWTValHashDictionary<G4VSolidPointer, G4int> fSolidDictionary;
};
inline G4int G4OpenGLStoredScene::GetSceneCount () {
inline G4int G4OpenGLStoredSceneHandler::GetSceneCount () {
return fSceneCount;
}
@@ -1,45 +0,0 @@
// This code implementation is the intellectual property of
// the RD44 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: G4OpenGLStoredView.hh,v 2.0 1998/07/02 16:44:28 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// Andrew Walkden 7th February 1997
// Class G4OpenGLStoredView : Encapsulates the `storedness' of
// an OpenGL view, for inheritance by
// derived (X, Xm...) classes.
#ifdef G4VIS_BUILD_OPENGL_DRIVER
#ifndef G4OPENGLSTOREDVIEW_HH
#define G4OPENGLSTOREDVIEW_HH
#include "G4VView.hh"
#include "G4OpenGLView.hh"
#include "G4OpenGLScene.hh"
#include "G4OpenGLStoredScene.hh"
#include "G4OpenGLTransform3D.hh"
#include "globals.hh"
#include <rw/tvordvec.h>
class G4OpenGLStoredScene;
class G4OpenGLStoredView: virtual public G4OpenGLView {
public:
G4OpenGLStoredView (G4OpenGLStoredScene& scene);
protected:
void KernelVisitDecision ();
void DrawDisplayLists ();
G4OpenGLStoredScene& fScene; // Graphics Scene for this view.
};
#endif
#endif
@@ -0,0 +1,46 @@
// This code implementation is the intellectual property of
// the RD44 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: G4OpenGLStoredViewer.hh,v 1.3 1999/05/10 14:03:46 johna Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 7th February 1997
// Class G4OpenGLStoredViewer : Encapsulates the `storedness' of
// an OpenGL viewer, for inheritance by
// derived (X, Xm...) classes.
#ifdef G4VIS_BUILD_OPENGL_DRIVER
#ifndef G4OPENGLSTOREDVIEWER_HH
#define G4OPENGLSTOREDVIEWER_HH
#include "G4VViewer.hh"
#include "G4OpenGLViewer.hh"
#include "G4OpenGLSceneHandler.hh"
#include "G4OpenGLStoredSceneHandler.hh"
#include "G4OpenGLTransform3D.hh"
#include "globals.hh"
#include <rw/tvordvec.h>
class G4OpenGLStoredSceneHandler;
class G4OpenGLStoredViewer: virtual public G4OpenGLViewer {
public:
G4OpenGLStoredViewer (G4OpenGLStoredSceneHandler& scene);
virtual ~G4OpenGLStoredViewer ();
protected:
void KernelVisitDecision ();
void DrawDisplayLists ();
G4OpenGLStoredSceneHandler& fSceneHandler; // Graphics Scene for this view.
};
#endif
#endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredWin32.hh,v 2.0 1998/07/02 16:44:31 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLStoredWin32.hh,v 1.3 1999/01/11 00:47:39 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// OpenGLStoredWin32 graphics system factory.
@@ -21,8 +21,8 @@
class G4OpenGLStoredWin32: public G4VGraphicsSystem {
public:
G4OpenGLStoredWin32 ();
G4VScene* CreateScene ();
G4VView* CreateView (G4VScene&);
G4VSceneHandler* CreateSceneHandler ();
G4VViewer* CreateViewer (G4VSceneHandler&);
};
#endif
@@ -1,37 +0,0 @@
// This code implementation is the intellectual property of
// the RD44 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: G4OpenGLStoredWin32View.hh,v 2.0 1998/07/02 16:44:32 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// Class G4OpenGLStoredWin32View : a class derived from G4OpenGLWin32View and
// G4OpenGLStoredView.
#ifdef G4VIS_BUILD_OPENGLWIN32_DRIVER
#ifndef G4OPENGLSTOREDWIN32VIEW_HH
#define G4OPENGLSTOREDWIN32VIEW_HH
#include "G4VView.hh"
#include "G4OpenGLStoredView.hh"
#include "G4OpenGLWin32View.hh"
class G4OpenGLStoredScene;
class G4OpenGLStoredWin32View:
public G4OpenGLWin32View, public G4OpenGLStoredView{
public:
G4OpenGLStoredWin32View (G4OpenGLStoredScene& scene);
void DrawView ();
};
#endif
#endif
@@ -0,0 +1,37 @@
// This code implementation is the intellectual property of
// the RD44 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: G4OpenGLStoredWin32Viewer.hh,v 1.1 1999/01/09 16:22:46 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Class G4OpenGLStoredWin32Viewer : a class derived from
// G4OpenGLWin32Viewer and G4OpenGLStoredViewer.
#ifdef G4VIS_BUILD_OPENGLWIN32_DRIVER
#ifndef G4OPENGLSTOREDWIN32VIEWER_HH
#define G4OPENGLSTOREDWIN32VIEWER_HH
#include "G4VViewer.hh"
#include "G4OpenGLStoredViewer.hh"
#include "G4OpenGLWin32Viewer.hh"
class G4OpenGLStoredSceneHandler;
class G4OpenGLStoredWin32Viewer:
public G4OpenGLWin32Viewer, public G4OpenGLStoredViewer{
public:
G4OpenGLStoredWin32Viewer (G4OpenGLStoredSceneHandler& scene);
void DrawView ();
};
#endif
#endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredX.hh,v 2.1 1998/11/06 13:42:20 allison Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLStoredX.hh,v 1.4 1999/05/10 14:03:47 johna Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -22,8 +22,9 @@
class G4OpenGLStoredX: public G4VGraphicsSystem {
public:
G4OpenGLStoredX ();
G4VScene* CreateScene (const G4String& name = "");
G4VView* CreateView (G4VScene&, const G4String& name = "");
virtual ~G4OpenGLStoredX ();
G4VSceneHandler* CreateSceneHandler (const G4String& name = "");
G4VViewer* CreateViewer (G4VSceneHandler&, const G4String& name = "");
};
#endif
@@ -1,38 +0,0 @@
// This code implementation is the intellectual property of
// the RD44 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: G4OpenGLStoredXView.hh,v 2.1 1998/11/06 13:42:21 allison Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// Andrew Walkden 7th February 1997
// Class G4OpenGLStoredXView : a class derived from G4OpenGLXView and
// G4OpenGLStoredView.
#ifdef G4VIS_BUILD_OPENGLX_DRIVER
#ifndef G4OPENGLSTOREDXVIEW_HH
#define G4OPENGLSTOREDXVIEW_HH
#include "G4VView.hh"
#include "G4OpenGLStoredView.hh"
#include "G4OpenGLXView.hh"
class G4OpenGLStoredScene;
class G4OpenGLStoredXView:
public G4OpenGLXView, public G4OpenGLStoredView{
public:
G4OpenGLStoredXView (G4OpenGLStoredScene& scene, const G4String& name = "");
void DrawView ();
};
#endif
#endif
@@ -0,0 +1,39 @@
// This code implementation is the intellectual property of
// the RD44 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: G4OpenGLStoredXViewer.hh,v 1.2 1999/05/10 14:03:49 johna Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 7th February 1997
// Class G4OpenGLStoredXViewer : a class derived from G4OpenGLXViewer and
// G4OpenGLStoredViewer.
#ifdef G4VIS_BUILD_OPENGLX_DRIVER
#ifndef G4OPENGLSTOREDXVIEWER_HH
#define G4OPENGLSTOREDXVIEWER_HH
#include "G4VViewer.hh"
#include "G4OpenGLStoredViewer.hh"
#include "G4OpenGLXViewer.hh"
class G4OpenGLStoredSceneHandler;
class G4OpenGLStoredXViewer:
public G4OpenGLXViewer, public G4OpenGLStoredViewer{
public:
G4OpenGLStoredXViewer (G4OpenGLStoredSceneHandler& scene, const G4String& name = "");
virtual ~G4OpenGLStoredXViewer ();
void DrawView ();
};
#endif
#endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredXm.hh,v 2.1 1998/11/06 13:42:21 allison Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLStoredXm.hh,v 1.3 1999/01/11 00:47:40 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -22,8 +22,8 @@
class G4OpenGLStoredXm: public G4VGraphicsSystem {
public:
G4OpenGLStoredXm ();
G4VScene* CreateScene (const G4String& name = "");
G4VView* CreateView (G4VScene&, const G4String& name = "");
G4VSceneHandler* CreateSceneHandler (const G4String& name = "");
G4VViewer* CreateViewer (G4VSceneHandler&, const G4String& name = "");
};
#endif
@@ -1,38 +0,0 @@
// This code implementation is the intellectual property of
// the RD44 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: G4OpenGLStoredXmView.hh,v 2.1 1998/11/06 13:42:22 allison Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// Andrew Walkden 10th February 1997
// Class G4OpenGLStoredXmView : a class derived from G4OpenGLXmView
// and G4OpenGLStoredView.
#ifdef G4VIS_BUILD_OPENGLXM_DRIVER
#ifndef G4OpenGLSTOREDXMVIEW_HH
#define G4OpenGLSTOREDXMVIEW_HH
#include "G4VView.hh"
#include "G4OpenGLStoredView.hh"
#include "G4OpenGLXmView.hh"
class G4OpenGLStoredScene;
class G4OpenGLStoredXmView:
public G4OpenGLXmView, public G4OpenGLStoredView{
public:
G4OpenGLStoredXmView (G4OpenGLStoredScene& scene, const G4String& name = "");
void DrawView ();
};
#endif
#endif
@@ -0,0 +1,38 @@
// This code implementation is the intellectual property of
// the RD44 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: G4OpenGLStoredXmViewer.hh,v 1.1 1999/01/09 16:22:50 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 10th February 1997
// Class G4OpenGLStoredXmViewer : a class derived from G4OpenGLXmViewer
// and G4OpenGLStoredViewer.
#ifdef G4VIS_BUILD_OPENGLXM_DRIVER
#ifndef G4OpenGLSTOREDXMVIEWER_HH
#define G4OpenGLSTOREDXMVIEWER_HH
#include "G4VViewer.hh"
#include "G4OpenGLStoredViewer.hh"
#include "G4OpenGLXmViewer.hh"
class G4OpenGLStoredSceneHandler;
class G4OpenGLStoredXmViewer:
public G4OpenGLXmViewer, public G4OpenGLStoredViewer{
public:
G4OpenGLStoredXmViewer (G4OpenGLStoredSceneHandler& scene, const G4String& name = "");
void DrawView ();
};
#endif
#endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLTransform3D.hh,v 2.0 1998/07/02 16:44:42 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLTransform3D.hh,v 1.2 1999/01/09 16:22:51 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 24th October 1996
@@ -5,32 +5,33 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLView.hh,v 2.0 1998/07/02 16:44:46 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLViewer.hh,v 1.3 1999/05/10 14:03:50 johna Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 27th March 1996
// OpenGL view - opens window, hard copy, etc.
// OpenGL viewer - opens window, hard copy, etc.
#ifdef G4VIS_BUILD_OPENGL_DRIVER
#ifndef G4OPENGLVIEW_HH
#define G4OPENGLVIEW_HH
#ifndef G4OPENGLVIEWER_HH
#define G4OPENGLVIEWER_HH
#include "G4VView.hh"
#include "G4VViewer.hh"
#include "globals.hh"
#include <rw/tvordvec.h>
class G4OpenGLScene;
class G4OpenGLSceneHandler;
// Base class for various OpenGLView classes.
class G4OpenGLView: virtual public G4VView {
class G4OpenGLViewer: virtual public G4VViewer {
public:
void ClearView ();
protected:
G4OpenGLView (G4OpenGLScene& scene);
G4OpenGLViewer (G4OpenGLSceneHandler& scene);
virtual ~G4OpenGLViewer ();
void SetView ();
void HaloingFirstPass ();
void HaloingSecondPass ();
@@ -46,14 +47,14 @@ protected:
static int snglBuf_RGBA[10];
static int dblBuf_RGBA[11];
G4OpenGLScene& fScene; // Graphics Scene for this view.
G4OpenGLSceneHandler& fSceneHandler; // Graphics Scene for this view.
private:
// G4OpenGLScene& fScene; // Graphics Scene for this view.
// G4OpenGLSceneHandler& fSceneHandler; // Graphics Scene for this view.
};
class G4OpenGLImmediateScene;
class G4OpenGLStoredScene;
class G4OpenGLImmediateSceneHandler;
class G4OpenGLStoredSceneHandler;
#endif
@@ -5,20 +5,20 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLWin32View.hh,v 2.0 1998/07/02 16:44:47 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLWin32Viewer.hh,v 1.1 1999/01/09 16:22:53 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// G4OpenGLWin32View : Class to provide WindowsNT specific
// functionality for OpenGL in GEANT4
// G4OpenGLWin32Viewer : Class to provide WindowsNT specific
// functionality for OpenGL in GEANT4
#ifdef G4VIS_BUILD_OPENGLWIN32_DRIVER
#ifndef G4OPENGLWIN32VIEW_HH
#define G4OPENGLWIN32VIEW_HH
#ifndef G4OPENGLWIN32VIEWER_HH
#define G4OPENGLWIN32VIEWER_HH
#include "G4VView.hh"
#include "G4OpenGLScene.hh"
#include "G4VViewer.hh"
#include "G4OpenGLSceneHandler.hh"
#include "globals.hh"
#include <rw/tvordvec.h>
@@ -28,13 +28,13 @@
#include <GL/glx.h>
#include <GL/glu.h>
class G4OpenGLScene;
class G4OpenGLSceneHandler;
class G4OpenGLWin32View: virtual public G4OpenGLView {
class G4OpenGLWin32Viewer: virtual public G4OpenGLViewer {
public:
G4OpenGLWin32View (G4OpenGLScene& scene);
~G4OpenGLWin32View ();
G4OpenGLWin32Viewer (G4OpenGLSceneHandler& scene);
~G4OpenGLWin32Viewer ();
void FinishView ();
protected:
@@ -5,21 +5,21 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXView.hh,v 2.5 1998/10/29 09:37:23 barrand Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXViewer.hh,v 1.4 1999/06/29 18:06:56 johna Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 7th February 1997
// G4OpenGLXView : Class to provide XWindows specific
// functionality for OpenGL in GEANT4
// G4OpenGLXViewer : Class to provide XWindows specific
// functionality for OpenGL in GEANT4
#ifdef G4VIS_BUILD_OPENGLX_DRIVER
#ifdef G4VIS_BUILD_OPENGL_DRIVER
#ifndef G4OPENGLXVIEW_HH
#define G4OPENGLXVIEW_HH
#ifndef G4OPENGLXVIEWER_HH
#define G4OPENGLXVIEWER_HH
#include "G4VView.hh"
#include "G4OpenGLScene.hh"
#include "G4VViewer.hh"
#include "G4OpenGLSceneHandler.hh"
#include "globals.hh"
#include <rw/tvordvec.h>
@@ -31,13 +31,15 @@
#include <GL/glx.h>
#include <GL/glu.h>
class G4OpenGLScene;
class G4OpenGLSceneHandler;
class G4OpenGLXView: virtual public G4OpenGLView {
class G4OpenGLXViewer: virtual public G4OpenGLViewer {
public:
G4OpenGLXView (G4OpenGLScene& scene);
~G4OpenGLXView ();
G4OpenGLXViewer (G4OpenGLSceneHandler& scene);
virtual ~G4OpenGLXViewer ();
void SetView ();
void ShowView ();
void FinishView ();
void print();
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmBox.hh,v 2.0 1998/07/02 16:44:53 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmBox.hh,v 1.2 1999/01/09 16:22:55 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
//Box container class
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmConvenienceRoutines.hh,v 2.1 1998/07/12 03:09:31 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmConvenienceRoutines.hh,v 1.2 1999/01/09 16:22:55 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -15,7 +15,7 @@
#ifndef G4OPENGLXMCONVENIENCEROUTINES_HH
#define G4OPENGLXMCONVENIENCEROUTINES_HH
#include "G4OpenGLXmView.hh"
#include "G4OpenGLXmViewer.hh"
// Methods contained in G4OpenGLXmConvenienceRoutines:
//
@@ -27,7 +27,7 @@
//
// Description of methods in G4OpenGLXmConvenienceRoutines:
//
// 1) Add_four_arrow_buttons (G4OpenGLXmView* pView,
// 1) Add_four_arrow_buttons (G4OpenGLXmViewer* pView,
// XtCallbackProc* arrow_callbacks,
// Widget* parent_widget)
//
@@ -44,7 +44,7 @@
// G4int default_button,
// char* radio_box_name,
// char** button_names,
// G4OpenGLXmView* pView);
// G4OpenGLXmViewer* pView);
//
// Adds a row column widget containing num_buttons toggle buttons, to the
// row column parent_widget passed in the arguments List. label_string is
@@ -64,7 +64,7 @@
// Widget* row_col_box,
// Widget* wid,
// G4float* val,
// G4OpenGLXmView* pView);
// G4OpenGLXmViewer* pView);
//
// Adds a text field widget to the row_col_box supplied in the arguments
// List. widget goes towards giving the widgets created within Add_set_field
@@ -76,7 +76,7 @@
// 4) Add_slider_box (char* label_string,
// G4int num_sliders,
// char** slider_names,
// G4OpenGLXmView* pView,
// G4OpenGLXmViewer* pView,
// G4float* min_array,
// G4float* max_array,
// G4float* value_array,
@@ -112,7 +112,7 @@
// This XtCallbackProc reads a character string from a text field widget,
// and converts it to a floating point number.
void Add_four_arrow_buttons (G4OpenGLXmView* pView,
void Add_four_arrow_buttons (G4OpenGLXmViewer* pView,
XtCallbackProc* arrow_callbacks,
Widget* parent_widget);
@@ -123,19 +123,19 @@ void Add_radio_box (char* label_string,
G4int default_button,
char* radio_box_name,
char** button_names,
G4OpenGLXmView* pView);
G4OpenGLXmViewer* pView);
void Add_set_field (char* widget,
char* widget_text,
Widget* row_col_box,
Widget* wid,
G4float* val,
G4OpenGLXmView* pView);
G4OpenGLXmViewer* pView);
void Add_slider_box (char* label_string,
G4int num_sliders,
char** slider_names,
G4OpenGLXmView* pView,
G4OpenGLXmViewer* pView,
G4float* min_array,
G4float* max_array,
G4float* value_array,
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmFourArrowButtons.hh,v 2.0 1998/07/02 16:44:58 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmFourArrowButtons.hh,v 1.2 1999/01/09 16:22:56 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
//Four arrow buttons class. Inherits from G4OpenGLXmVWidgetComponent
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmFramedBox.hh,v 2.0 1998/07/02 16:45:01 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmFramedBox.hh,v 1.2 1999/01/09 16:22:56 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
//Framed box container class
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmMainMenubarCallbacks.hh,v 2.0 1998/07/02 16:45:03 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmMainMenubarCallbacks.hh,v 1.2 1999/01/09 16:22:57 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -15,7 +15,7 @@
#ifndef G4OPENGLXMMAINMENUBARCALLBACKS_HH
#define G4OPENGLXMMAINMENUBARCALLBACKS_HH
#include "G4OpenGLXmView.hh"
#include "G4OpenGLXmViewer.hh"
void misc_callback (Widget w, XtPointer clientData, XtPointer callData);
void actions_callback (Widget w, XtPointer clientData, XtPointer callData);
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmPanningCallbacks.hh,v 2.0 1998/07/02 16:45:05 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmPanningCallbacks.hh,v 1.2 1999/01/09 16:22:58 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -15,7 +15,7 @@
#ifndef G4OPENGLXMPANNINGCALLBACKS_HH
#define G4OPENGLXMPANNINGCALLBACKS_HH
#include "G4OpenGLXmView.hh"
#include "G4OpenGLXmViewer.hh"
void zoom_callback (Widget w,
XtPointer clientData,
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmPushButton.hh,v 2.0 1998/07/02 16:45:08 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmPushButton.hh,v 1.2 1999/01/09 16:22:58 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
//Push button class. Inherits from G4OpenGLXmVWidgetComponent
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmRadioButton.hh,v 2.0 1998/07/02 16:45:10 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmRadioButton.hh,v 1.2 1999/01/09 16:22:59 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
//Radio button class. Inherits from G4OpenGLXmVWidgetComponent
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmResources.hh,v 2.1 1998/10/04 11:32:49 ajw Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmResources.hh,v 1.2 1999/01/09 16:22:59 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Default resources file for GEANT4 OpenGL Motif windows.
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmRotationCallbacks.hh,v 2.0 1998/07/02 16:45:16 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmRotationCallbacks.hh,v 1.2 1999/01/09 16:23:00 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -15,7 +15,7 @@
#ifndef G4OPENGLXMROTATIONCALLBACKS_HH
#define G4OPENGLXMROTATIONCALLBACKS_HH
#include "G4OpenGLXmView.hh"
#include "G4OpenGLXmViewer.hh"
void theta_rotation_callback (Widget w,
XtPointer clientData,
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmSeparator.hh,v 2.0 1998/07/02 16:45:17 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmSeparator.hh,v 1.2 1999/01/09 16:23:01 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
//Separator class. Inherits from G4OpenGLXmVWidgetComponent
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmSliderBar.hh,v 2.0 1998/07/02 16:45:20 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmSliderBar.hh,v 1.2 1999/01/09 16:23:01 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
//Slider bar class. Inherits from G4OpenGLXmVWidgetComponent
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmStyleCallbacks.hh,v 2.0 1998/07/02 16:45:22 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmStyleCallbacks.hh,v 1.2 1999/01/09 16:23:02 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -15,7 +15,7 @@
#ifndef G4OPENGLXMSTYLECALLBACKS_HH
#define G4OPENGLXMSTYLECALLBACKS_HH
#include "G4OpenGLXmView.hh"
#include "G4OpenGLXmViewer.hh"
void drawing_style_callback (Widget w,
XtPointer clientData,
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmTextField.hh,v 2.2 1998/08/07 12:46:30 barrand Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmTextField.hh,v 1.2 1999/01/09 16:23:02 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
//Text field class. Inherits from G4OpenGLXmVWidgetComponent
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmTopLevelShell.hh,v 2.0 1998/07/02 16:45:28 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmTopLevelShell.hh,v 1.2 1999/01/09 16:23:03 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
//Top level shell class
@@ -24,7 +24,7 @@ class G4OpenGLXmTopLevelShell : public G4OpenGLXmVWidgetShell
{
public:
G4OpenGLXmTopLevelShell(G4OpenGLXmView*, char*); //constructor
G4OpenGLXmTopLevelShell(G4OpenGLXmViewer*, char*); //constructor
~G4OpenGLXmTopLevelShell(); //destructor
void AddChild (G4OpenGLXmVWidgetContainer*);
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmVWidgetComponent.hh,v 2.0 1998/07/02 16:45:31 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmVWidgetComponent.hh,v 1.2 1999/01/09 16:23:04 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
//Base class for all Motif component widgets
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmVWidgetContainer.hh,v 2.0 1998/07/02 16:45:34 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmVWidgetContainer.hh,v 1.2 1999/01/09 16:23:04 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
//Base class for all Motif container widgets
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmVWidgetObject.hh,v 2.0 1998/07/02 16:45:35 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmVWidgetObject.hh,v 1.2 1999/01/09 16:23:05 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
//Virtual base class for all Motif widgets.
@@ -20,7 +20,7 @@
#include <Xm/Xm.h>
#include "X11/Intrinsic.h"
#include <X11/Xlib.h>
#include "G4OpenGLXmView.hh"
#include "G4OpenGLXmViewer.hh"
class G4OpenGLXmVWidgetObject {
@@ -29,11 +29,11 @@ public:
G4OpenGLXmVWidgetObject (); //constructor
~G4OpenGLXmVWidgetObject (); //destructor
G4OpenGLXmView* GetView (); //access to the pView
G4OpenGLXmViewer* GetView (); //access to the pView
void ProcesspView ();
protected:
G4OpenGLXmView* pView;
G4OpenGLXmViewer* pView;
Colormap cmap;
Pixel borcol;
Pixel bgnd;
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmVWidgetShell.hh,v 2.0 1998/07/02 16:45:38 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmVWidgetShell.hh,v 1.2 1999/01/09 16:23:06 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
//Base class for all Motif window widgets (shells)
@@ -5,21 +5,21 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmView.hh,v 2.4 1998/10/04 11:32:50 ajw Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmViewer.hh,v 1.1 1999/01/09 16:23:07 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// Andrew Walkden 10th February 1997
// G4OpenGLXmView : Class derived from G4OpenGLXView, to provide
// (Motif) widget OpenGL functionality for GEANT4.
// G4OpenGLXmViewer : Class derived from G4OpenGLXViewer, to provide
// (Motif) widget OpenGL functionality for GEANT4.
#ifdef G4VIS_BUILD_OPENGLXM_DRIVER
#ifndef G4OPENGLXMVIEW_HH
#define G4OPENGLXMVIEW_HH
#ifndef G4OPENGLXMVIEWER_HH
#define G4OPENGLXMVIEWER_HH
#include "G4OpenGLXView.hh"
#include "G4OpenGLScene.hh"
#include "G4OpenGLXViewer.hh"
#include "G4OpenGLSceneHandler.hh"
#include "globals.hh"
#include <rw/tvordvec.h>
@@ -53,11 +53,11 @@ class G4OpenGLXmFramedBox;
class G4OpenGLXmFourArrowButtons;
class G4OpenGLXmSeparator;
class G4OpenGLXmView: public G4OpenGLXView {
class G4OpenGLXmViewer: public G4OpenGLXViewer {
public:
G4OpenGLXmView (G4OpenGLScene& scene);
~G4OpenGLXmView ();
G4OpenGLXmViewer (G4OpenGLSceneHandler& scene);
~G4OpenGLXmViewer ();
protected:
virtual void ShowView ();
@@ -213,7 +213,7 @@ public:
Widget* row_col_box,
Widget* wid,
G4double* val,
G4OpenGLXmView* pView);
G4OpenGLXmViewer* pView);
static void zoom_callback (Widget w,
XtPointer clientData,
@@ -299,16 +299,16 @@ public:
G4int default_button,
char* radio_box_name,
char** button_names,
G4OpenGLXmView* pView);
G4OpenGLXmViewer* pView);
static void Add_four_arrow_buttons (G4OpenGLXmView* pView,
static void Add_four_arrow_buttons (G4OpenGLXmViewer* pView,
XtCallbackRec** arrow_callbacks,
Widget* parent_widget);
static void Add_slider_box (char* label_string,
G4int num_sliders,
char** slider_name,
G4OpenGLXmView* pView,
G4OpenGLXmViewer* pView,
G4double* min_array,
G4double* max_array,
G4double* value_array,
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmWindowHandlingCallbacks.hh,v 2.0 1998/07/02 16:45:43 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpenGLXmWindowHandlingCallbacks.hh,v 1.2 1999/01/09 16:23:07 allison Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -15,7 +15,7 @@
#ifndef G4OPENGLXMWINDOWHANDLINGCALLBACKS_HH
#define G4OPENGLXMWINDOWHANDLINGCALLBACKS_HH
#include "G4OpenGLXmView.hh"
#include "G4OpenGLXmViewer.hh"
void expose_callback (Widget w, XtPointer clientData, XtPointer callData);
void resize_callback (Widget w, XtPointer clientData, XtPointer callData);