[529] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | // |
---|
| 27 | // $Id: G4OpenGLViewer.hh,v 1.18 2006/09/19 16:13:15 allison Exp $ |
---|
| 28 | // GEANT4 tag $Name: geant4-08-02-patch-01 $ |
---|
| 29 | // |
---|
| 30 | // |
---|
| 31 | // Andrew Walkden 27th March 1996 |
---|
| 32 | // OpenGL viewer - opens window, hard copy, etc. |
---|
| 33 | |
---|
| 34 | #ifdef G4VIS_BUILD_OPENGL_DRIVER |
---|
| 35 | |
---|
| 36 | #ifndef G4OPENGLVIEWER_HH |
---|
| 37 | #define G4OPENGLVIEWER_HH |
---|
| 38 | |
---|
| 39 | #include "G4VViewer.hh" |
---|
| 40 | |
---|
| 41 | class G4OpenGLSceneHandler; |
---|
| 42 | |
---|
| 43 | // Base class for various OpenGLView classes. |
---|
| 44 | class G4OpenGLViewer: virtual public G4VViewer { |
---|
| 45 | |
---|
| 46 | friend class G4OpenGLSceneHandler; |
---|
| 47 | friend class G4OpenGLImmediateSceneHandler; |
---|
| 48 | friend class G4OpenGLStoredSceneHandler; |
---|
| 49 | friend class G4OpenGLViewerMessenger; |
---|
| 50 | |
---|
| 51 | public: |
---|
| 52 | void ClearView (); |
---|
| 53 | |
---|
| 54 | protected: |
---|
| 55 | G4OpenGLViewer (G4OpenGLSceneHandler& scene); |
---|
| 56 | virtual ~G4OpenGLViewer (); |
---|
| 57 | void SetView (); |
---|
| 58 | void HaloingFirstPass (); |
---|
| 59 | void HaloingSecondPass (); |
---|
| 60 | void HLRFirstPass (); |
---|
| 61 | void HLRSecondPass (); |
---|
| 62 | void HLRThirdPass (); |
---|
| 63 | void InitializeGLView (); |
---|
| 64 | virtual void CreateFontLists () {} |
---|
| 65 | G4Colour background; //the OpenGL clear colour |
---|
| 66 | G4bool |
---|
| 67 | transparency_enabled, //is alpha blending enabled? |
---|
| 68 | antialiasing_enabled, //is antialiasing enabled? |
---|
| 69 | haloing_enabled; //is haloing enabled for wireframe? |
---|
| 70 | G4double fStartTime, fEndTime; // Time range (e.g., for trajectory steps). |
---|
| 71 | G4double fFadeFactor; // 0: no fade; 1: maximum fade with time within range. |
---|
| 72 | G4bool fDisplayHeadTime; // Display head time (fEndTime) in 2D text. |
---|
| 73 | G4double fDisplayHeadTimeX, fDisplayHeadTimeY; // 2D screen coords. |
---|
| 74 | G4double fDisplayHeadTimeSize; // Screen size. |
---|
| 75 | G4double fDisplayHeadTimeRed, fDisplayHeadTimeGreen, fDisplayHeadTimeBlue; |
---|
| 76 | G4bool fDisplayLightFront;// Display light front at head time originating at |
---|
| 77 | G4double fDisplayLightFrontX, fDisplayLightFrontY, fDisplayLightFrontZ, |
---|
| 78 | fDisplayLightFrontT; |
---|
| 79 | G4double fDisplayLightFrontRed, fDisplayLightFrontGreen, fDisplayLightFrontBlue; |
---|
| 80 | }; |
---|
| 81 | |
---|
| 82 | #endif |
---|
| 83 | |
---|
| 84 | #endif |
---|