Files
geant4/source/visualization/OpenGL/include/G4OpenGLImmediateSceneHandler.hh
T
2016-06-08 16:03:00 +02:00

48 lines
1.3 KiB
C++

// 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: G4OpenGLImmediateSceneHandler.hh,v 1.4 2000/08/19 18:34:20 johna Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// Andrew Walkden 10th February 1997
// G4OpenGLImmediateSceneHandler - no Display lists.
#ifdef G4VIS_BUILD_OPENGL_DRIVER
#ifndef G4OPENGLIMMEDIATESCENEHANDLER_HH
#define G4OPENGLIMMEDIATESCENEHANDLER_HH
#include "G4VSceneHandler.hh"
#include "G4OpenGLViewer.hh"
#include "G4OpenGLImmediateViewer.hh"
#include "globals.hh"
#include "G4RotationMatrix.hh"
#include "G4OpenGLSceneHandler.hh"
class G4OpenGLImmediate;
class G4OpenGLImmediateSceneHandler: public G4OpenGLSceneHandler {
public:
G4OpenGLImmediateSceneHandler (G4VGraphicsSystem& system, const G4String& name);
virtual ~G4OpenGLImmediateSceneHandler ();
void BeginPrimitives (const G4Transform3D& objectTransformation);
void EndPrimitives ();
void BeginModeling ();
void EndModeling ();
static G4int GetSceneCount ();
private:
static G4int fSceneIdCount; // static counter for OpenGLImmediate scenes.
static G4int fSceneCount; // No. of extanct scene handlers.
};
#endif
#endif