#include <G4ToolsSGQtZB.hh>
Definition at line 35 of file G4ToolsSGQtZB.hh.
◆ G4ToolsSGQtZB() [1/2]
G4ToolsSGQtZB::G4ToolsSGQtZB |
( |
| ) |
|
Definition at line 36 of file G4ToolsSGQtZB.cc.
36 :
37parent
38("TOOLSSG_QT_ZB",
39 "TSG_QT_ZB",
40 "TOOLSSG_QT_ZB is a graphics driver based on the g4tools tools/sg scene graph logic where\n\
41 the rendering is done with the g4tools zbuffer and the windowing is done with Qt.",
44{}
◆ ~G4ToolsSGQtZB()
G4ToolsSGQtZB::~G4ToolsSGQtZB |
( |
| ) |
|
|
virtual |
◆ G4ToolsSGQtZB() [2/2]
◆ CreateSceneHandler()
◆ CreateViewer()
Implements G4VGraphicsSystem.
Definition at line 72 of file G4ToolsSGQtZB.cc.
72 {
76 if (pView) {
78 G4cerr <<
"G4ToolsSGQtZB::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 <<
"G4ToolsSGQtZB::CreateViewer: ERROR: null pointer on new G4ToolsSGViewer." <<
G4endl;
87 return nullptr;
88 }
89 return pView;
90}
G4GLOB_DLL std::ostream G4cerr
◆ Initialise()
void G4ToolsSGQtZB::Initialise |
( |
| ) |
|
|
protected |
Definition at line 50 of file G4ToolsSGQtZB.cc.
50 {
54 if(!_qapp) {
55 G4cerr <<
"G4ToolsSGQtZB::Initialise : G4Qt::GetMainInteractor() returns null." <<
G4endl;
56 return;
57 }
60 G4cerr <<
"G4ToolsSGQtZB::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 G4ToolsSGQtZB::IsUISessionCompatible |
( |
| ) |
const |
|
virtual |
Reimplemented from G4VGraphicsSystem.
Definition at line 92 of file G4ToolsSGQtZB.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* G4ToolsSGQtZB::fSGSession |
|
protected |
The documentation for this class was generated from the following files: