Import Geant4 3.1.0 source tree
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLImmediateSceneHandler.hh,v 1.4 2000/08/19 18:34:20 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 10th February 1997
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLImmediateViewer.hh,v 1.4 1999/12/15 14:54:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLImmediateViewer.hh,v 1.5 2001/02/23 15:43:07 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 7th February 1997
|
||||
@@ -25,7 +25,6 @@
|
||||
#include "G4OpenGLImmediateSceneHandler.hh"
|
||||
#include "G4OpenGLTransform3D.hh"
|
||||
#include "globals.hh"
|
||||
#include "g4rw/tvordvec.h"
|
||||
|
||||
class G4OpenGLSceneHandler;
|
||||
class G4OpenGLImmediateSceneHandler;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLImmediateWin32.hh,v 1.4 1999/12/15 14:54:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// OpenGLImmediateWin32 graphics system factory.
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLImmediateWin32Viewer.hh,v 1.3 1999/12/15 14:54:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLImmediateWin32Viewer.hh,v 1.4 2001/02/23 15:43:07 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Class G4OpenGLImmediateWin32Viewer : a class derived from
|
||||
@@ -22,7 +22,6 @@
|
||||
#include "G4OpenGLWin32Viewer.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
#include "g4rw/tvordvec.h"
|
||||
|
||||
class G4OpenGLImmediateSceneHandler;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLImmediateX.hh,v 1.5 1999/12/15 14:54:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 10th February 1997
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLImmediateXViewer.hh,v 1.4 1999/12/15 14:54:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLImmediateXViewer.hh,v 1.5 2001/02/23 15:43:08 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 7th February 1997
|
||||
@@ -23,7 +23,6 @@
|
||||
#include "G4OpenGLXViewer.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
#include "g4rw/tvordvec.h"
|
||||
|
||||
class G4OpenGLImmediateSceneHandler;
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLImmediateXm.hh,v 1.4 1999/12/15 14:54:04 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLImmediateXm.hh,v 1.5 2001/02/03 18:39:00 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 10th February 1997
|
||||
@@ -22,6 +22,7 @@
|
||||
class G4OpenGLImmediateXm: public G4VGraphicsSystem {
|
||||
public:
|
||||
G4OpenGLImmediateXm ();
|
||||
virtual ~G4OpenGLImmediateXm ();
|
||||
G4VSceneHandler* CreateSceneHandler (const G4String& name = "");
|
||||
G4VViewer* CreateViewer (G4VSceneHandler&, const G4String& name = "");
|
||||
};
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLImmediateXmViewer.hh,v 1.3 1999/12/15 14:54:04 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLImmediateXmViewer.hh,v 1.5 2001/02/23 15:43:08 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 10th February 1997
|
||||
@@ -23,7 +23,6 @@
|
||||
#include "G4OpenGLXmViewer.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
#include "g4rw/tvordvec.h"
|
||||
|
||||
class G4OpenGLImmediateSceneHandler;
|
||||
|
||||
@@ -33,6 +32,7 @@ public G4OpenGLXmViewer, public G4OpenGLImmediateViewer{
|
||||
public:
|
||||
G4OpenGLImmediateXmViewer (G4OpenGLImmediateSceneHandler& scene,
|
||||
const G4String& name = "");
|
||||
virtual ~G4OpenGLImmediateXmViewer ();
|
||||
void DrawView ();
|
||||
|
||||
};
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLSceneHandler.hh,v 1.5 1999/12/16 17:25:05 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLSceneHandler.hh,v 1.7 2001/01/18 11:59:00 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 27th March 1996
|
||||
@@ -53,13 +53,29 @@ public:
|
||||
|
||||
protected:
|
||||
G4OpenGLSceneHandler (G4VGraphicsSystem& system,
|
||||
G4int id,
|
||||
const G4String& name = "");
|
||||
G4int id,
|
||||
const G4String& name = "");
|
||||
virtual ~G4OpenGLSceneHandler ();
|
||||
G4bool initialize_hlr;
|
||||
|
||||
private:
|
||||
void AddCircleSquare (const G4VMarker&, G4int nSides);
|
||||
/**************************************************
|
||||
Not needed - but see note on future development in .cc.
|
||||
void DrawScreenPolygon (G4double size,
|
||||
const G4Point3D& centre,
|
||||
G4int nSides);
|
||||
// Draws in screen coordinates.
|
||||
*********************************/
|
||||
|
||||
void DrawXYPolygon (G4double size,
|
||||
const G4Point3D& centre,
|
||||
G4int nSides);
|
||||
// Draws in world coordinates a polygon in the screen plane knowing
|
||||
// viewpoint direction and up vector.
|
||||
|
||||
GLdouble clear_colour[4];
|
||||
static const GLubyte fStippleMaskHashed [128];
|
||||
};
|
||||
|
||||
#include "G4OpenGLSceneHandler.icc"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLSceneHandler.icc,v 1.3 1999/12/16 17:25:06 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 20th January 1998
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLStoredSceneHandler.hh,v 1.8 2000/08/19 18:34:23 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLStoredSceneHandler.hh,v 1.10 2001/02/23 15:43:08 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 10th February 1997
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "G4RotationMatrix.hh"
|
||||
#include "G4OpenGLSceneHandler.hh"
|
||||
#include "g4std/map"
|
||||
#include "g4std/vector"
|
||||
|
||||
class G4OpenGLStored;
|
||||
|
||||
@@ -37,7 +38,6 @@ public:
|
||||
void BeginModeling ();
|
||||
void EndModeling ();
|
||||
static G4int GetSceneCount ();
|
||||
G4bool fMemoryForDisplayLists; // avoid memory overflow
|
||||
|
||||
private:
|
||||
friend class G4OpenGLStoredViewer;
|
||||
@@ -47,15 +47,16 @@ friend class G4OpenGLStoredViewer;
|
||||
static G4int fSceneIdCount; // static counter for OpenGLStored scenes.
|
||||
static G4int fSceneCount; // No. of extanct scene handlers.
|
||||
G4int fDisplayListId; // Workspace.
|
||||
G4bool fMemoryForDisplayLists; // avoid memory overflow
|
||||
|
||||
// PODL = Persistent Object Display List.
|
||||
GLint fTopPODL; // List which calls the other PODLs.
|
||||
G4RWTValOrderedVector<G4int> fPODLList;
|
||||
G4RWTValOrderedVector<G4Transform3D> fPODLTransformList;
|
||||
G4std::vector<G4int> fPODLList;
|
||||
G4std::vector<G4Transform3D> fPODLTransformList;
|
||||
|
||||
// TODL = Transient Object Display List.
|
||||
G4RWTValOrderedVector<G4int> fTODLList;
|
||||
G4RWTValOrderedVector<G4Transform3D> fTODLTransformList;
|
||||
G4std::vector<G4int> fTODLList;
|
||||
G4std::vector<G4Transform3D> fTODLTransformList;
|
||||
|
||||
// Stop-gap solution of structure re-use.
|
||||
// A proper implementation would use geometry hierarchy.
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLStoredViewer.hh,v 1.5 1999/12/15 14:54:04 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLStoredViewer.hh,v 1.6 2001/02/23 15:43:09 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 7th February 1997
|
||||
@@ -25,7 +25,6 @@
|
||||
#include "G4OpenGLStoredSceneHandler.hh"
|
||||
#include "G4OpenGLTransform3D.hh"
|
||||
#include "globals.hh"
|
||||
#include "g4rw/tvordvec.h"
|
||||
|
||||
class G4OpenGLStoredSceneHandler;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLStoredWin32.hh,v 1.4 1999/12/15 14:54:04 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// OpenGLStoredWin32 graphics system factory.
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLStoredWin32Viewer.hh,v 1.2 1999/12/15 14:54:04 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Class G4OpenGLStoredWin32Viewer : a class derived from
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLStoredX.hh,v 1.5 1999/12/15 14:54:04 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 10th February 1997
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLStoredXViewer.hh,v 1.3 1999/12/15 14:54:04 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 7th February 1997
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLStoredXm.hh,v 1.4 1999/12/15 14:54:05 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 10th February 1997
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLStoredXmViewer.hh,v 1.2 1999/12/15 14:54:05 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLStoredXmViewer.hh,v 1.3 2001/02/03 18:39:04 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 10th February 1997
|
||||
@@ -29,6 +29,7 @@ public G4OpenGLXmViewer, public G4OpenGLStoredViewer{
|
||||
|
||||
public:
|
||||
G4OpenGLStoredXmViewer (G4OpenGLStoredSceneHandler& scene, const G4String& name = "");
|
||||
virtual ~G4OpenGLStoredXmViewer ();
|
||||
void DrawView ();
|
||||
|
||||
};
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLTransform3D.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 24th October 1996
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLViewer.hh,v 1.5 1999/12/15 14:54:05 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLViewer.hh,v 1.6 2001/02/23 15:43:09 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 27th March 1996
|
||||
@@ -19,7 +19,6 @@
|
||||
|
||||
#include "G4VViewer.hh"
|
||||
#include "globals.hh"
|
||||
#include "g4rw/tvordvec.h"
|
||||
|
||||
class G4OpenGLSceneHandler;
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLWin32Viewer.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLWin32Viewer.hh,v 1.4 2001/02/23 15:43:09 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// G4OpenGLWin32Viewer : Class to provide WindowsNT specific
|
||||
@@ -20,7 +20,6 @@
|
||||
#include "G4VViewer.hh"
|
||||
#include "G4OpenGLSceneHandler.hh"
|
||||
#include "globals.hh"
|
||||
#include "g4rw/tvordvec.h"
|
||||
|
||||
//Win32 includes?
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXViewer.hh,v 1.8 2000/05/22 08:06:50 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLXViewer.hh,v 1.10 2001/02/23 15:43:10 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 7th February 1997
|
||||
@@ -21,7 +21,6 @@
|
||||
#include "G4VViewer.hh"
|
||||
#include "G4OpenGLSceneHandler.hh"
|
||||
#include "globals.hh"
|
||||
#include "g4rw/tvordvec.h"
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Intrinsic.h>
|
||||
@@ -102,6 +101,9 @@ protected:
|
||||
iconName;
|
||||
char charViewName [100];
|
||||
|
||||
private:
|
||||
G4OpenGLXViewer (const G4OpenGLXViewer&);
|
||||
G4OpenGLXViewer& operator = (const G4OpenGLXViewer&);
|
||||
};
|
||||
|
||||
static const char* gouraudtriangleEPS[] =
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmBox.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLXmBox.hh,v 1.5 2001/03/07 14:56:15 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
//Box container class
|
||||
@@ -28,9 +28,9 @@ class G4OpenGLXmBox : public G4OpenGLXmVWidgetContainer
|
||||
{
|
||||
|
||||
public:
|
||||
G4OpenGLXmBox (char* = NULL,
|
||||
G4OpenGLXmBox (const char* = NULL,
|
||||
G4bool = False); //constructor
|
||||
~G4OpenGLXmBox (); //destructor
|
||||
virtual ~G4OpenGLXmBox (); //destructor
|
||||
|
||||
void AddChild (G4OpenGLXmVWidgetComponent*);
|
||||
void AddYourselfTo (G4OpenGLXmVWidgetShell*);
|
||||
@@ -38,14 +38,18 @@ public:
|
||||
Widget* GetPointerToParent ();
|
||||
Widget* GetPointerToWidget ();
|
||||
|
||||
char* GetName ();
|
||||
void SetName (char*);
|
||||
const char* GetName ();
|
||||
void SetName (const char*);
|
||||
|
||||
protected:
|
||||
char* name;
|
||||
const char* name;
|
||||
Widget* parent;
|
||||
Widget box_row_col;
|
||||
G4bool radio;
|
||||
|
||||
private:
|
||||
G4OpenGLXmBox (const G4OpenGLXmBox&);
|
||||
G4OpenGLXmBox& operator = (const G4OpenGLXmBox&);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmConvenienceRoutines.hh,v 1.3 1999/12/15 14:54:05 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: G4OpenGLXmFourArrowButtons.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLXmFourArrowButtons.hh,v 1.4 2001/02/03 18:39:09 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
//Four arrow buttons class. Inherits from G4OpenGLXmVWidgetComponent
|
||||
@@ -24,7 +24,7 @@ class G4OpenGLXmFourArrowButtons : public G4OpenGLXmVWidgetComponent
|
||||
public:
|
||||
G4OpenGLXmFourArrowButtons (XtCallbackRec** = NULL); // array of 4 callbacks
|
||||
//constructor
|
||||
~G4OpenGLXmFourArrowButtons (); //destructor
|
||||
virtual ~G4OpenGLXmFourArrowButtons (); //destructor
|
||||
|
||||
void SetName (char*);
|
||||
|
||||
@@ -40,6 +40,10 @@ private:
|
||||
Widget arrow_form;
|
||||
Widget arrow;
|
||||
Widget* parent;
|
||||
|
||||
private:
|
||||
G4OpenGLXmFourArrowButtons (const G4OpenGLXmFourArrowButtons&);
|
||||
G4OpenGLXmFourArrowButtons& operator = (const G4OpenGLXmFourArrowButtons&);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmFramedBox.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLXmFramedBox.hh,v 1.5 2001/03/07 14:56:16 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
//Framed box container class
|
||||
@@ -30,14 +30,16 @@ class G4OpenGLXmFramedBox : public G4OpenGLXmBox
|
||||
{
|
||||
|
||||
public:
|
||||
G4OpenGLXmFramedBox (char* = NULL,
|
||||
G4OpenGLXmFramedBox (const char* = NULL,
|
||||
G4bool = False); //constructor
|
||||
~G4OpenGLXmFramedBox (); //destructor
|
||||
virtual ~G4OpenGLXmFramedBox (); //destructor
|
||||
|
||||
void AddChild (G4OpenGLXmVWidgetComponent*);
|
||||
void AddYourselfTo (G4OpenGLXmVWidgetShell*);
|
||||
|
||||
private:
|
||||
G4OpenGLXmFramedBox (const G4OpenGLXmFramedBox&);
|
||||
G4OpenGLXmFramedBox& operator = (const G4OpenGLXmFramedBox&);
|
||||
Widget frame;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmMainMenubarCallbacks.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmPanningCallbacks.hh,v 1.3 1999/12/15 14:54:05 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: G4OpenGLXmPushButton.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLXmPushButton.hh,v 1.5 2001/03/07 15:16:27 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
//Push button class. Inherits from G4OpenGLXmVWidgetComponent
|
||||
@@ -22,12 +22,12 @@ class G4OpenGLXmPushButton : public G4OpenGLXmVWidgetComponent
|
||||
{
|
||||
|
||||
public:
|
||||
G4OpenGLXmPushButton (char* = NULL,
|
||||
G4OpenGLXmPushButton (const char* = NULL,
|
||||
XtCallbackRec* = NULL); //constructor
|
||||
~G4OpenGLXmPushButton (); //destructor
|
||||
virtual ~G4OpenGLXmPushButton (); //destructor
|
||||
|
||||
void SetName (char*);
|
||||
char* GetName ();
|
||||
void SetName (const char*);
|
||||
const char* GetName ();
|
||||
|
||||
void AddYourselfTo (G4OpenGLXmVWidgetContainer*);
|
||||
|
||||
@@ -35,7 +35,9 @@ public:
|
||||
Widget* GetPointerToWidget ();
|
||||
|
||||
private:
|
||||
char* name;
|
||||
G4OpenGLXmPushButton (const G4OpenGLXmPushButton&);
|
||||
G4OpenGLXmPushButton& operator = (const G4OpenGLXmPushButton&);
|
||||
const char* name;
|
||||
XtCallbackRec* callback;
|
||||
Widget button;
|
||||
Widget* parent;
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmRadioButton.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLXmRadioButton.hh,v 1.5 2001/03/07 14:56:16 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
//Radio button class. Inherits from G4OpenGLXmVWidgetComponent
|
||||
@@ -22,14 +22,14 @@ class G4OpenGLXmRadioButton : public G4OpenGLXmVWidgetComponent
|
||||
{
|
||||
|
||||
public:
|
||||
G4OpenGLXmRadioButton (char*,
|
||||
G4OpenGLXmRadioButton (const char*,
|
||||
XtCallbackRec*,
|
||||
G4bool,
|
||||
G4int); //constructor
|
||||
~G4OpenGLXmRadioButton (); //destructor
|
||||
virtual ~G4OpenGLXmRadioButton (); //destructor
|
||||
|
||||
void SetName (char*);
|
||||
char* GetName ();
|
||||
void SetName (const char*);
|
||||
const char* GetName ();
|
||||
|
||||
void AddYourselfTo (G4OpenGLXmVWidgetContainer*);
|
||||
|
||||
@@ -37,7 +37,9 @@ public:
|
||||
Widget* GetPointerToWidget ();
|
||||
|
||||
private:
|
||||
char* name;
|
||||
G4OpenGLXmRadioButton (const G4OpenGLXmRadioButton&);
|
||||
G4OpenGLXmRadioButton& operator = (const G4OpenGLXmRadioButton&);
|
||||
const char* name;
|
||||
XtCallbackRec* callback;
|
||||
Widget button;
|
||||
Widget* parent;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmResources.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Default resources file for GEANT4 OpenGL Motif windows.
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmRotationCallbacks.hh,v 1.3 1999/12/15 14:54:06 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: G4OpenGLXmSeparator.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLXmSeparator.hh,v 1.4 2001/02/03 18:39:14 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
//Separator class. Inherits from G4OpenGLXmVWidgetComponent
|
||||
@@ -23,7 +23,7 @@ class G4OpenGLXmSeparator : public G4OpenGLXmVWidgetComponent
|
||||
|
||||
public:
|
||||
G4OpenGLXmSeparator (unsigned char = XmSINGLE_LINE); //constructor
|
||||
~G4OpenGLXmSeparator (); //destructor
|
||||
virtual ~G4OpenGLXmSeparator (); //destructor
|
||||
|
||||
void AddYourselfTo (G4OpenGLXmVWidgetContainer*);
|
||||
|
||||
@@ -31,6 +31,8 @@ public:
|
||||
Widget* GetPointerToWidget ();
|
||||
|
||||
private:
|
||||
G4OpenGLXmSeparator (const G4OpenGLXmSeparator&);
|
||||
G4OpenGLXmSeparator& operator = (const G4OpenGLXmSeparator&);
|
||||
unsigned char line_type;
|
||||
Widget line;
|
||||
Widget* parent;
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmSliderBar.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLXmSliderBar.hh,v 1.5 2001/03/07 14:56:17 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
//Slider bar class. Inherits from G4OpenGLXmVWidgetComponent
|
||||
@@ -22,7 +22,7 @@ class G4OpenGLXmSliderBar : public G4OpenGLXmVWidgetComponent
|
||||
{
|
||||
|
||||
public:
|
||||
G4OpenGLXmSliderBar (char* = NULL, // name of slider bar
|
||||
G4OpenGLXmSliderBar (const char* = NULL, // name of slider bar
|
||||
XtCallbackRec* = NULL, // callbacks for slider bar
|
||||
G4bool = False, // show current value if True
|
||||
short = 0, // decimal places for show value
|
||||
@@ -32,9 +32,9 @@ public:
|
||||
unsigned char = XmHORIZONTAL,
|
||||
unsigned char = XmMAX_ON_RIGHT);
|
||||
//constructor
|
||||
~G4OpenGLXmSliderBar (); //destructor
|
||||
virtual ~G4OpenGLXmSliderBar (); //destructor
|
||||
|
||||
void SetName (char*);
|
||||
void SetName (const char*);
|
||||
void SetShow (G4bool);
|
||||
void SetDecimalPlaces (short);
|
||||
void SetInitialValue (G4double);
|
||||
@@ -44,7 +44,7 @@ public:
|
||||
void SetDirection (unsigned char);
|
||||
|
||||
|
||||
char* GetName ();
|
||||
const char* GetName ();
|
||||
G4bool GetShow ();
|
||||
short GetDecimalPlaces ();
|
||||
G4double GetInitialValue ();
|
||||
@@ -59,7 +59,9 @@ public:
|
||||
Widget* GetPointerToWidget ();
|
||||
|
||||
private:
|
||||
char* name;
|
||||
G4OpenGLXmSliderBar (const G4OpenGLXmSliderBar&);
|
||||
G4OpenGLXmSliderBar& operator = (const G4OpenGLXmSliderBar&);
|
||||
const char* name;
|
||||
XtCallbackRec* callback;
|
||||
Widget sliderbar;
|
||||
Widget* parent;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmStyleCallbacks.hh,v 1.3 1999/12/15 14:54:06 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: G4OpenGLXmTextField.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLXmTextField.hh,v 1.5 2001/03/07 14:56:17 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
//Text field class. Inherits from G4OpenGLXmVWidgetComponent
|
||||
@@ -23,16 +23,16 @@ class G4OpenGLXmTextField : public G4OpenGLXmVWidgetComponent
|
||||
{
|
||||
|
||||
public:
|
||||
G4OpenGLXmTextField (char*,G4double*); //constructor
|
||||
G4OpenGLXmTextField (char*,char*); //constructor
|
||||
~G4OpenGLXmTextField (); //destructor
|
||||
G4OpenGLXmTextField (const char*,G4double*); //constructor
|
||||
G4OpenGLXmTextField (const char*,const char*); //constructor
|
||||
virtual ~G4OpenGLXmTextField (); //destructor
|
||||
|
||||
void SetName (char*);
|
||||
char* GetName ();
|
||||
void SetName (const char*);
|
||||
const char* GetName ();
|
||||
|
||||
void SetValue (G4double);
|
||||
void SetValue (char*);
|
||||
char* GetValue ();
|
||||
void SetValue (const char*);
|
||||
const char* GetValue ();
|
||||
|
||||
void AddYourselfTo (G4OpenGLXmVWidgetContainer*);
|
||||
|
||||
@@ -40,7 +40,9 @@ public:
|
||||
Widget* GetPointerToWidget ();
|
||||
|
||||
private:
|
||||
char* name;
|
||||
G4OpenGLXmTextField (const G4OpenGLXmTextField&);
|
||||
G4OpenGLXmTextField& operator = (const G4OpenGLXmTextField&);
|
||||
const char* name;
|
||||
void* value;
|
||||
G4bool text;
|
||||
char* initial;
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmTopLevelShell.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLXmTopLevelShell.hh,v 1.4 2001/02/03 18:39:19 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
//Top level shell class
|
||||
@@ -25,7 +25,7 @@ class G4OpenGLXmTopLevelShell : public G4OpenGLXmVWidgetShell
|
||||
|
||||
public:
|
||||
G4OpenGLXmTopLevelShell(G4OpenGLXmViewer*, char*); //constructor
|
||||
~G4OpenGLXmTopLevelShell(); //destructor
|
||||
virtual ~G4OpenGLXmTopLevelShell(); //destructor
|
||||
|
||||
void AddChild (G4OpenGLXmVWidgetContainer*);
|
||||
void Realize ();
|
||||
@@ -34,6 +34,8 @@ public:
|
||||
char* GetName ();
|
||||
|
||||
private:
|
||||
G4OpenGLXmTopLevelShell (const G4OpenGLXmTopLevelShell&);
|
||||
G4OpenGLXmTopLevelShell& operator = (const G4OpenGLXmTopLevelShell&);
|
||||
char* name;
|
||||
Widget toplevel;
|
||||
Widget top_box;
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmVWidgetComponent.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLXmVWidgetComponent.hh,v 1.4 2001/02/03 18:39:20 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
//Base class for all Motif component widgets
|
||||
@@ -24,8 +24,8 @@ class G4OpenGLXmVWidgetComponent : public G4OpenGLXmVWidgetObject
|
||||
{
|
||||
|
||||
public:
|
||||
G4OpenGLXmVWidgetComponent(); //constructor
|
||||
~G4OpenGLXmVWidgetComponent(); //destructor
|
||||
G4OpenGLXmVWidgetComponent(); //constructor
|
||||
virtual ~G4OpenGLXmVWidgetComponent(); //destructor
|
||||
|
||||
virtual void AddYourselfTo (G4OpenGLXmVWidgetContainer*) = 0;
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmVWidgetContainer.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLXmVWidgetContainer.hh,v 1.4 2001/02/03 18:39:22 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
//Base class for all Motif container widgets
|
||||
@@ -25,8 +25,8 @@ class G4OpenGLXmVWidgetContainer : public G4OpenGLXmVWidgetObject
|
||||
{
|
||||
|
||||
public:
|
||||
G4OpenGLXmVWidgetContainer(); //constructor
|
||||
~G4OpenGLXmVWidgetContainer(); //destructor
|
||||
G4OpenGLXmVWidgetContainer(); //constructor
|
||||
virtual ~G4OpenGLXmVWidgetContainer(); //destructor
|
||||
|
||||
virtual void AddChild (G4OpenGLXmVWidgetComponent*) = 0;
|
||||
virtual void AddYourselfTo (G4OpenGLXmVWidgetShell*) = 0;
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmVWidgetObject.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLXmVWidgetObject.hh,v 1.4 2001/02/03 18:39:23 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
//Virtual base class for all Motif widgets.
|
||||
@@ -26,13 +26,15 @@ class G4OpenGLXmVWidgetObject {
|
||||
|
||||
public:
|
||||
|
||||
G4OpenGLXmVWidgetObject (); //constructor
|
||||
~G4OpenGLXmVWidgetObject (); //destructor
|
||||
G4OpenGLXmVWidgetObject (); //constructor
|
||||
virtual ~G4OpenGLXmVWidgetObject (); //destructor
|
||||
|
||||
G4OpenGLXmViewer* GetView (); //access to the pView
|
||||
void ProcesspView ();
|
||||
|
||||
protected:
|
||||
G4OpenGLXmVWidgetObject (const G4OpenGLXmVWidgetObject&);
|
||||
G4OpenGLXmVWidgetObject& operator = (const G4OpenGLXmVWidgetObject&);
|
||||
G4OpenGLXmViewer* pView;
|
||||
Colormap cmap;
|
||||
Pixel borcol;
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmVWidgetShell.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLXmVWidgetShell.hh,v 1.4 2001/02/03 18:39:25 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
//Base class for all Motif window widgets (shells)
|
||||
@@ -25,7 +25,7 @@ class G4OpenGLXmVWidgetShell : public G4OpenGLXmVWidgetObject
|
||||
|
||||
public:
|
||||
G4OpenGLXmVWidgetShell(); //constructor
|
||||
~G4OpenGLXmVWidgetShell(); //destructor
|
||||
virtual ~G4OpenGLXmVWidgetShell(); //destructor
|
||||
|
||||
virtual Widget* GetPointerToWidget() = 0;
|
||||
virtual void AddChild (G4OpenGLXmVWidgetContainer*) = 0;
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmViewer.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// $Id: G4OpenGLXmViewer.hh,v 1.5 2001/02/23 15:43:10 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 10th February 1997
|
||||
@@ -21,7 +21,6 @@
|
||||
#include "G4OpenGLXViewer.hh"
|
||||
#include "G4OpenGLSceneHandler.hh"
|
||||
#include "globals.hh"
|
||||
#include "g4rw/tvordvec.h"
|
||||
|
||||
#include <Xm/Xm.h>
|
||||
#include <Xm/MainW.h>
|
||||
@@ -57,7 +56,7 @@ class G4OpenGLXmViewer: public G4OpenGLXViewer {
|
||||
|
||||
public:
|
||||
G4OpenGLXmViewer (G4OpenGLSceneHandler& scene);
|
||||
~G4OpenGLXmViewer ();
|
||||
virtual ~G4OpenGLXmViewer ();
|
||||
|
||||
protected:
|
||||
virtual void ShowView ();
|
||||
@@ -362,6 +361,10 @@ public:
|
||||
static G4int get_int_userData (Widget w);
|
||||
|
||||
friend class G4OpenGLXmVWidgetObject;
|
||||
|
||||
private:
|
||||
G4OpenGLXmViewer (const G4OpenGLXmViewer&);
|
||||
G4OpenGLXmViewer& operator = (const G4OpenGLXmViewer&);
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmWindowHandlingCallbacks.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
Reference in New Issue
Block a user