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

#include <G4OpenGLStoredX.hh>

+ Inheritance diagram for G4OpenGLStoredX:

Public Member Functions

 G4OpenGLStoredX ()
 
virtual ~G4OpenGLStoredX ()
 
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 ()
 
virtual G4VSceneHandlerCreateSceneHandler (const G4String &name)=0
 
virtual G4VViewerCreateViewer (G4VSceneHandler &, const G4String &name)=0
 
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 37 of file G4OpenGLStoredX.hh.

Constructor & Destructor Documentation

◆ G4OpenGLStoredX()

G4OpenGLStoredX::G4OpenGLStoredX ( )

Definition at line 41 of file G4OpenGLStoredX.cc.

41 :
42 G4VGraphicsSystem ("OpenGLStoredX",
43 "OGLSX",
46{
48}
G4String G4VisFeaturesOfOpenGLSX()
static G4OpenGLViewerMessenger * GetInstance()

◆ ~G4OpenGLStoredX()

G4OpenGLStoredX::~G4OpenGLStoredX ( )
virtual

Definition at line 50 of file G4OpenGLStoredX.cc.

50{}

Member Function Documentation

◆ CreateSceneHandler()

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

Implements G4VGraphicsSystem.

Definition at line 52 of file G4OpenGLStoredX.cc.

◆ CreateViewer()

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

Implements G4VGraphicsSystem.

Definition at line 57 of file G4OpenGLStoredX.cc.

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

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