29 #ifndef HookEventProcState_H
30 #define HookEventProcState_H 1
48 #ifndef G4OPENINVENTORXTEXAMINERVIEWER_HH
49 #define G4OPENINVENTORXTEXAMINERVIEWER_HH
54 #include <Inventor/SbLinear.h>
55 #include <Inventor/nodes/SoLineSet.h>
56 #include <Inventor/nodes/SoEventCallback.h>
57 #include <Inventor/Xt/viewers/SoXtExaminerViewer.h>
58 #include <Inventor/events/SoKeyboardEvent.h>
87 const char *
name = NULL,
89 SoXtFullViewer::BuildFlag flag = BUILD_ALL,
90 SoXtViewer::Type type = BROWSER);
97 void addButton(Widget menu, std::string
name, XtCallbackProc);
121 SoXtFullViewer::BuildFlag flag,
122 SoXtViewer::Type type,
131 void moveCamera(
float dist = 0,
bool lookdown =
false);
173 static void mouseoverCB(
void *aThis, SoEventCallback *eventCB);
174 static void pickingCB(
void *aThis, SoEventCallback *eventCB);
224 float sqrlen(
const SbVec3f&);
bool operator<(elementForSorting const &other) const
void createElementsList(Widget)
std::string saveRefCoordsFileName
static void saveRefCoordsCB(Widget, XtPointer, XtPointer)
Widget saveRefCoordsWidget
static G4OpenInventorXtExaminerViewer * viewer
static void loadRefCoordsCB(Widget, XtPointer, XtPointer)
SoFont * mouseOverFontSolid
void animateRefParticle()
static void cancelSceneElementSelectionCB(Widget, XtPointer, XtPointer)
void warningMsgDialog(std::string, String, XtCallbackProc)
static void abbrOutputCB(Widget, XtPointer, XtPointer)
void constructor(const SbBool build)
void addEscapeCallback(void(*cb)(void *), void *)
SbRotation camStartOrient
SoCoordinate3 * sgeometry
void superimpositionEvent(SoAction *action)
static void animateSensorRotationCB(void *, SoSensor *)
static void loadSceneGraphCB(Widget, XtPointer, XtPointer)
void distanceToTrajectory(const SbVec3f &, float &, SbVec3f &, int &)
void updateSpeedIndicator(void)
std::string viewPtAutoName()
virtual void afterRealizeHook()
static void newViewPtFileCB(Widget, XtPointer, XtPointer)
Widget saveScenegraphWidget
SoTranslation * mouseOverTransZPos
static void saveSceneGraphCB(Widget, XtPointer, XtPointer)
virtual SbBool processSoEvent(const SoEvent *const event)
static void saveViewPtCB(Widget, XtPointer, XtPointer)
SoText2 * mouseOverTextLogName
void saveViewPt(char *name)
HookEventProcState(G4OpenInventorXtExaminerViewer *)
SoTranslation * mouseOverTransLogName
static void prevViewPtCB(Widget, XtPointer, XtPointer)
SoTranslation * curInfoTrans
Widget createScale(Widget, char *, int, float)
SoTimerSensor * animateSensorRotation
static void saveSceneGraphOverWriteCB(Widget, XtPointer, XtPointer)
Widget addMenu(std::string name)
static void saveRefCoordsOverWriteCB(Widget, XtPointer, XtPointer)
SoText2 * mouseOverTextSolid
SoFont * mouseOverFontMaterial
static void nextViewPtCB(Widget, XtPointer, XtPointer)
void updateViewParams(SoKeyboardEvent::Key)
void deleteViewPt(char *vpName=NULL)
static void sortBookmarksCB(Widget, XtPointer, XtPointer)
void addButton(Widget menu, std::string name, XtCallbackProc)
SoSwitch * animSpeedSwitch
static void loadRefCoordsDialogCB(Widget, XtPointer, XtPointer)
SoTranslation * mouseOverTransSolid
std::string saveScenegraphFileName
static void invertRefPathCB(Widget, XtPointer, XtPointer)
static void saveSceneGraphDialogCB(Widget, XtPointer, XtPointer)
static void getViewPtNameCB(Widget, XtPointer, XtPointer)
void setReferencePath(SoLineSet *, SoCoordinate3 *, bool append=false)
static void superimpositionCB(void *closure, SoAction *action)
void setStartingPtForAnimation()
std::vector< SbVec3f > refParticleTrajectory
std::vector< float > refZPositions
static void lookAtSceneElementCB(Widget, XtPointer, XtPointer)
Widget buildWidget(Widget parent)
static void constructListsDialog(Widget, XtPointer, XtPointer)
static void openViewPtFileCB(Widget, XtPointer, XtPointer)
static void pickRefPathCB(Widget, XtPointer, XtPointer)
static void deleteBookmarkCB(Widget, XtPointer, XtPointer)
std::vector< sceneElement > sceneElements
SoNodeSensor * sceneChangeSensor
SoFont * mouseOverFontLogName
void evenOutRefParticlePts()
static void gotoRefPathStartCB(Widget, XtPointer, XtPointer)
virtual void actualRedraw(void)
bool viewingBeforePickRef
SoFont * mouseOverFontZPos
double animateBtwPtsPeriod
SoSearchAction * searcher
static void overwriteFileCB(Widget, XtPointer, XtPointer)
static void deleteViewPtCB(Widget, XtPointer, XtPointer)
HookEventProcState * hookBeamOn
friend class G4OpenInventorXtExaminerViewerMessenger
void renameViewPt(char *vpName)
G4OpenInventorXtExaminerViewer(Widget parent=NULL, const char *name=NULL, SbBool embed=TRUE, SoXtFullViewer::BuildFlag flag=BUILD_ALL, SoXtViewer::Type type=BROWSER)
void popUpFileSelDialog(Widget &, std::string, std::string, XtCallbackProc)
static void closeListsDialogCB(Widget, XtPointer, XtPointer)
SoTranslation * stranslation
SoNode * getSuperimpositionNode(SoNode *, const char *name)
static void viewPtFileSelectedCB(Widget, XtPointer, XtPointer)
virtual void createViewerButtons(Widget parent, SbPList *buttonlist)
viewPtData camB4Animation
void cleanUpAfterPrevFile()
Widget saveSceneGraphDialog
SoText2 * mouseOverTextZPos
std::vector< viewPtData > viewPtList
SoText2 * mouseOverTextMaterial
static void cancelFileSelDialogCB(Widget, XtPointer, XtPointer)
static void switchWireFrameCB(Widget, XtPointer, XtPointer)
static void pickingCB(void *aThis, SoEventCallback *eventCB)
static void saveRefCoordsDialogCB(Widget, XtPointer, XtPointer)
float sqrlen(const SbVec3f &)
SoTimerSensor * animateSensor
static void renameBookmarkCB(Widget, XtPointer, XtPointer)
SoSeparator * newSceneGraph
~G4OpenInventorXtExaminerViewer()
static void animateRefParticleCB(Widget, XtPointer, XtPointer)
static void loadBookmarkCB(Widget, XtPointer, XtPointer)
void parseString(T &t, const std::string &s, bool &error)
SoSwitch * animSpeedOutlineSwitch
G4OpenInventorXtExaminerViewer * viewer
float distanceToBeamlineStart
SoTranslation * mouseOverTransMaterial
static void loadSceneGraphDialogCB(Widget, XtPointer, XtPointer)
static PROLOG_HANDLER error
void(* escapeCallback)(void *)
static void animateSensorCB(void *, SoSensor *)
static void closeMainWindowCB(Widget, XtPointer, XtPointer)
void setReferencePathZPos()
void sortViewPts(std::vector< std::string >)
SoCoordinate3 * getCoordsNode(SoFullPath *path)
static void mouseoverCB(void *aThis, SoEventCallback *eventCB)
typedef void(XMLCALL *XML_ElementDeclHandler)(void *userData
Widget saveRefCoordsDialog
void moveCamera(float dist=0, bool lookdown=false)
virtual G4bool Notify(G4ApplicationState requiredState)
Widget loadRefCoordsDialog
friend class G4OpenInventorXtExtendedViewer
static void sceneChangeCB(void *, SoSensor *)
Widget loadSceneGraphDialog
static void createNewVPFileCB(Widget, XtPointer, XtPointer)