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