31#include <toolx/Xt/sg_viewer>
35class session :
public toolx::Xt::session {
36 typedef toolx::Xt::session parent;
38 session(std::ostream& a_out,
int a_argc,
char** a_argv)
39 :parent(a_out,a_argc,a_argv)
41 if(m_app_widget) {::XtDestroyWidget(m_app_widget);m_app_widget =
nullptr;}
42 if(m_app_context) {::XtDestroyApplicationContext(m_app_context);m_app_context =
nullptr;}
44 m_app_context = ::XtWidgetToApplicationContext(m_app_widget);
58 "TOOLSSG_XT_GLES is a graphics driver based on the g4tools tools/sg scene graph logic where\n\
59 the rendering is done with GLES and the windowing is done with the Xt toolkit.",
71 char** argv =
nullptr;
72 tools::new_argcv(std::vector<std::string>(),*argc,argv);
75 G4cerr <<
"G4ToolsSGXtGLES::Initialise : session::is_valid() failed." <<
G4endl;
95 "G4ToolsSGXtGLES::CreateViewer: ERROR flagged by negative"
96 " view id in G4ToolsSGViewer creation."
97 "\n Destroying view and returning null pointer."
105 "G4ToolsSGXtGLES::CreateViewer: ERROR: null pointer on new G4ToolsSGViewer."
113 G4bool isCompatible =
false;
G4GLOB_DLL std::ostream G4cerr
G4GLOB_DLL std::ostream G4cout
G4Interactor GetMainInteractor()
static G4Xt * getInstance()
session(std::ostream &a_out, int a_argc, char **a_argv)
session & operator=(const session &a_from)
session(const session &a_from)