#include <G4ToolsSGQtGLES.hh>
Definition at line 35 of file G4ToolsSGQtGLES.hh.
◆ G4ToolsSGQtGLES() [1/2]
G4ToolsSGQtGLES::G4ToolsSGQtGLES |
( |
| ) |
|
Definition at line 36 of file G4ToolsSGQtGLES.cc.
36 :
37parent
38("TOOLSSG_QT_GLES",
39 "TSG_QT_GLES",
40 "TOOLSSG_QT_GLES is a graphics driver based on the g4tools tools/sg scene graph logic where\n\
41 the rendering is done with GLES and the windowing is done with Qt.",
44{}
◆ ~G4ToolsSGQtGLES()
G4ToolsSGQtGLES::~G4ToolsSGQtGLES |
( |
| ) |
|
|
virtual |
◆ G4ToolsSGQtGLES() [2/2]
◆ CreateSceneHandler()
◆ CreateViewer()
Implements G4VGraphicsSystem.
Definition at line 72 of file G4ToolsSGQtGLES.cc.
72 {
76 if (pView) {
78 G4cerr <<
"G4ToolsSGQtGLES::CreateViewer:"
79 << " ERROR flagged by negative view id in G4ToolsSGViewer creation."
80 <<
"\n Destroying view and returning null pointer." <<
G4endl;
81 delete pView;
82 pView = nullptr;
83 }
84 }
85 if (!pView) {
86 G4cerr <<
"G4ToolsSGQtGLES::CreateViewer: ERROR: null pointer on new G4ToolsSGViewer." <<
G4endl;
87 return nullptr;
88 }
89 return pView;
90}
G4GLOB_DLL std::ostream G4cerr
◆ Initialise()
void G4ToolsSGQtGLES::Initialise |
( |
| ) |
|
|
protected |
Definition at line 50 of file G4ToolsSGQtGLES.cc.
50 {
54 if(!_qapp) {
55 G4cerr <<
"G4ToolsSGQtGLES::Initialise : G4Qt::GetMainInteractor() returns null." <<
G4endl;
56 return;
57 }
60 G4cerr <<
"G4ToolsSGQtGLES::Initialise : session::is_valid() failed." <<
G4endl;
63 return;
64 }
65}
G4GLOB_DLL std::ostream G4cout
static G4Qt * getInstance()
G4Interactor GetMainInteractor()
Referenced by CreateViewer().
◆ IsUISessionCompatible()
G4bool G4ToolsSGQtGLES::IsUISessionCompatible |
( |
| ) |
const |
|
virtual |
Reimplemented from G4VGraphicsSystem.
Definition at line 92 of file G4ToolsSGQtGLES.cc.
93{
94
96 if (
dynamic_cast<G4UIQt*
>(baseSession) !=
nullptr)
return true;
97 return false;
98}
static G4UImanager * GetUIpointer()
G4UIsession * GetBaseSession() const
◆ operator=()
◆ fSGSession
toolx::Qt::session* G4ToolsSGQtGLES::fSGSession |
|
protected |
The documentation for this class was generated from the following files: