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

#include <G4OpenGLStoredXm.hh>

+ Inheritance diagram for G4OpenGLStoredXm:

Public Member Functions

 G4OpenGLStoredXm ()
 
G4VSceneHandlerCreateSceneHandler (const G4String &name="")
 
G4VViewerCreateViewer (G4VSceneHandler &, const G4String &name="")
 
- Public Member Functions inherited from G4OpenGLXm
 G4OpenGLXm (const G4String &name, const G4String &nickname, const G4String &description, Functionality f)
 
G4bool IsUISessionCompatible () const
 
- 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
 
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 G4OpenGLStoredXm.hh.

Constructor & Destructor Documentation

◆ G4OpenGLStoredXm()

G4OpenGLStoredXm::G4OpenGLStoredXm ( )

Definition at line 41 of file G4OpenGLStoredXm.cc.

41 :
42 G4OpenGLXm ("OpenGLStoredXm",
43 "OGLSXm",
46{
49}
G4String G4VisFeaturesOfOpenGLSXm()
static G4OpenGLViewerMessenger * GetInstance()
static G4OpenGLXmViewerMessenger * GetInstance()
G4OpenGLXm(const G4String &name, const G4String &nickname, const G4String &description, Functionality f)
Definition G4OpenGLXm.cc:36

Member Function Documentation

◆ CreateSceneHandler()

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

Implements G4VGraphicsSystem.

Definition at line 51 of file G4OpenGLStoredXm.cc.

◆ CreateViewer()

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

Implements G4VGraphicsSystem.

Definition at line 56 of file G4OpenGLStoredXm.cc.

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

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