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

#include <G4OpenGLStoredQt.hh>

+ Inheritance diagram for G4OpenGLStoredQt:

Public Member Functions

 G4OpenGLStoredQt ()
 
G4VSceneHandlerCreateSceneHandler (const G4String &name="")
 
G4VViewerCreateViewer (G4VSceneHandler &, const G4String &name="")
 
- Public Member Functions inherited from G4OpenGLQt
 G4OpenGLQt (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 36 of file G4OpenGLStoredQt.hh.

Constructor & Destructor Documentation

◆ G4OpenGLStoredQt()

G4OpenGLStoredQt::G4OpenGLStoredQt ( )

Definition at line 40 of file G4OpenGLStoredQt.cc.

40 :
41 G4OpenGLQt ("OpenGLStoredQt",
42 "OGLSQt",
45{
47}
G4String G4VisFeaturesOfOpenGLSQt()
G4OpenGLQt(const G4String &name, const G4String &nickname, const G4String &description, Functionality f)
Definition G4OpenGLQt.cc:37
static G4OpenGLViewerMessenger * GetInstance()

Member Function Documentation

◆ CreateSceneHandler()

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

Implements G4VGraphicsSystem.

Definition at line 49 of file G4OpenGLStoredQt.cc.

◆ CreateViewer()

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

Implements G4VGraphicsSystem.

Definition at line 55 of file G4OpenGLStoredQt.cc.

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

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