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

#include <G4OpenGLImmediateQt.hh>

+ Inheritance diagram for G4OpenGLImmediateQt:

Public Member Functions

 G4OpenGLImmediateQt ()
 
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 G4OpenGLImmediateQt.hh.

Constructor & Destructor Documentation

◆ G4OpenGLImmediateQt()

G4OpenGLImmediateQt::G4OpenGLImmediateQt ( )

Definition at line 40 of file G4OpenGLImmediateQt.cc.

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

Member Function Documentation

◆ CreateSceneHandler()

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

Implements G4VGraphicsSystem.

Definition at line 49 of file G4OpenGLImmediateQt.cc.

◆ CreateViewer()

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

Implements G4VGraphicsSystem.

Definition at line 55 of file G4OpenGLImmediateQt.cc.

56 {
57 G4VViewer* pView = 0;
59 ((G4OpenGLImmediateSceneHandler&) scene, name);
60 if (pView) {
61 if (pView -> GetViewId () < 0) {
62 G4cerr << "G4OpenGLImmediateQt::CreateViewer: error flagged by negative"
63 " view id in G4OpenGLImmediateQtViewer creation."
64 "\n Destroying view and returning null pointer."
65 << G4endl;
66 delete pView;
67 pView = 0;
68 }
69 }
70 else {
71 G4cerr << "G4OpenGLImmediateQt::CreateViewer: null pointer on"
72 " new G4OpenGLImmediateQtViewer." << 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: