Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4OpenGLImmediateWin32 Class Reference

#include <G4OpenGLImmediateWin32.hh>

+ Inheritance diagram for G4OpenGLImmediateWin32:

Public Member Functions

 G4OpenGLImmediateWin32 ()
 
G4VSceneHandlerCreateSceneHandler (const G4String &name="")
 
G4VViewerCreateViewer (G4VSceneHandler &, const G4String &name="")
 
- Public Member Functions inherited from G4VGraphicsSystem
 G4VGraphicsSystem (const G4String &name, Functionality f)
 
 G4VGraphicsSystem (const G4String &name, const G4String &nickname, Functionality f)
 
 G4VGraphicsSystem (const G4String &name, const G4String &nickname, const G4String &description, Functionality f)
 
virtual ~G4VGraphicsSystem ()
 
const G4StringGetName () const
 
const G4StringGetNickname () const
 
const std::vector< G4String > & GetNicknames () const
 
const G4StringGetDescription () const
 
Functionality GetFunctionality () const
 
virtual G4bool IsUISessionCompatible () const
 
void AddNickname (const G4String &nickname)
 

Additional Inherited Members

- Public Types inherited from G4VGraphicsSystem
enum  Functionality {
  noFunctionality , nonEuclidian , twoD , twoDStore ,
  threeD , threeDInteractive , virtualReality , fileWriter
}
 
- Protected Attributes inherited from G4VGraphicsSystem
G4String fName
 
std::vector< G4StringfNicknames
 
G4String fDescription
 
Functionality fFunctionality
 

Detailed Description

Definition at line 36 of file G4OpenGLImmediateWin32.hh.

Constructor & Destructor Documentation

◆ G4OpenGLImmediateWin32()

G4OpenGLImmediateWin32::G4OpenGLImmediateWin32 ( )

Definition at line 40 of file G4OpenGLImmediateWin32.cc.

40 :
41 G4VGraphicsSystem ("OpenGLImmediateWin32",
42 "OGLIWin32",
45{
47}
G4String G4VisFeaturesOfOpenGLIWin32()
static G4OpenGLViewerMessenger * GetInstance()
G4VGraphicsSystem(const G4String &name, Functionality f)

Member Function Documentation

◆ CreateSceneHandler()

G4VSceneHandler * G4OpenGLImmediateWin32::CreateSceneHandler ( const G4String & name = "")
virtual

Implements G4VGraphicsSystem.

Definition at line 49 of file G4OpenGLImmediateWin32.cc.

◆ CreateViewer()

G4VViewer * G4OpenGLImmediateWin32::CreateViewer ( G4VSceneHandler & scene,
const G4String & name = "" )
virtual

Implements G4VGraphicsSystem.

Definition at line 55 of file G4OpenGLImmediateWin32.cc.

56 {
57 G4VViewer* pView =
59 ((G4OpenGLImmediateSceneHandler&) scene, name);
60 if (pView) {
61 if (pView -> GetViewId () < 0) {
62 G4cerr << "G4OpenGLImmediateWin32::CreateViewer: error flagged by negative"
63 " view id in G4OpenGLImmediateWin32Viewer creation."
64 "\n Destroying view and returning null pointer."
65 << G4endl;
66 delete pView;
67 pView = 0;
68 }
69 }
70 else {
71 G4cerr << "G4OpenGLImmediateWin32::CreateViewer: null pointer on"
72 " new G4OpenGLImmediateWin32Viewer." << G4endl;
73 }
74 return pView;
75}
G4GLOB_DLL std::ostream G4cerr
#define G4endl
Definition G4ios.hh:67

The documentation for this class was generated from the following files: