33 #ifndef G4OPENINVENTORXTVIEWER_HH
34 #define G4OPENINVENTORXTVIEWER_HH
36 #ifdef G4VIS_BUILD_OI_DRIVER
41 #include <X11/Intrinsic.h>
42 class SoXtExaminerViewer;
44 class G4OpenInventorXtViewer:
public G4OpenInventorViewer {
46 virtual void FinishView();
47 virtual void SetView();
49 virtual void ViewerRender();
50 virtual SoCamera* GetCamera();
52 G4OpenInventorXtViewer(G4OpenInventorSceneHandler& scene,
56 virtual ~G4OpenInventorXtViewer();
59 void AddButton(Widget,
const G4String&,XtCallbackProc);
60 static void PostScriptCbk(Widget,XtPointer,XtPointer);
61 static void PixmapPostScriptCbk(Widget,XtPointer,XtPointer);
62 static void WriteInventorCbk(Widget,XtPointer,XtPointer);
63 static void EscapeCbk(Widget,XtPointer,XtPointer);
64 static void SceneGraphStatisticsCbk(Widget,XtPointer,XtPointer);
65 static void EraseDetectorCbk(Widget,XtPointer,XtPointer);
66 static void EraseEventCbk(Widget,XtPointer,XtPointer);
67 static void SetSolidCbk(Widget,XtPointer,XtPointer);
68 static void SetWireFrameCbk(Widget,XtPointer,XtPointer);
69 static void SetReducedWireFrameCbk(Widget,XtPointer,XtPointer);
70 static void SetFullWireFrameCbk(Widget,XtPointer,XtPointer);
71 static void UpdateSceneCbk(Widget,XtPointer,XtPointer);
72 static void HelpCbk(Widget,XtPointer,XtPointer);
73 static void HelpCancelCbk(Widget,XtPointer,XtPointer);
74 static void SetPreviewCbk(Widget,XtPointer,XtPointer);
75 static void SetPreviewAndFullCbk(Widget,XtPointer,XtPointer);
77 SoXtExaminerViewer* fViewer;