Files
geant4/source/visualization/OpenGL/include/G4OpenGLViewer.hh
T
2016-06-09 11:11:55 +02:00

70 lines
2.5 KiB
C++

//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * 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: G4OpenGLViewer.hh,v 1.9 2002/10/16 10:44:14 johna Exp $
// GEANT4 tag $Name: geant4-07-00-cand-01 $
//
//
// Andrew Walkden 27th March 1996
// OpenGL viewer - opens window, hard copy, etc.
#ifdef G4VIS_BUILD_OPENGL_DRIVER
#ifndef G4OPENGLVIEWER_HH
#define G4OPENGLVIEWER_HH
#include "G4VViewer.hh"
#include "globals.hh"
class G4OpenGLSceneHandler;
// Base class for various OpenGLView classes.
class G4OpenGLViewer: virtual public G4VViewer {
public:
void ClearView ();
protected:
G4OpenGLViewer (G4OpenGLSceneHandler& scene);
virtual ~G4OpenGLViewer ();
void SetView ();
void HaloingFirstPass ();
void HaloingSecondPass ();
void HLRFirstPass ();
void HLRSecondPass ();
void HLRThirdPass ();
void InitializeGLView ();
G4bool white_background, //the OpenGL clear colour
doublebuffer, //are we using a double buffered visual?
transparency_enabled, //is alpha blending enabled?
antialiasing_enabled, //is antialiasing enabled?
haloing_enabled; //is haloing enabled for wireframe?
};
class G4OpenGLImmediateSceneHandler;
class G4OpenGLStoredSceneHandler;
#endif
#endif