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