Geant4  10.00.p02
G4OpenInventorXtExaminerViewer Class Reference

#include <G4OpenInventorXtExaminerViewer.hh>

+ Inheritance diagram for G4OpenInventorXtExaminerViewer:
+ Collaboration diagram for G4OpenInventorXtExaminerViewer:

Classes

struct  elementForSorting
 
struct  sceneElement
 
struct  viewPtData
 

Public Member Functions

 G4OpenInventorXtExaminerViewer (Widget parent=NULL, const char *name=NULL, SbBool embed=TRUE, SoXtFullViewer::BuildFlag flag=BUILD_ALL, SoXtViewer::Type type=BROWSER)
 
 ~G4OpenInventorXtExaminerViewer ()
 
template<class T >
void parseString (T &t, const std::string &s, bool &error)
 
Widget addMenu (std::string name)
 
void addButton (Widget menu, std::string name, XtCallbackProc)
 
Widget getMenuBar ()
 
Widget getMenu ()
 
void warningMsgDialog (std::string, String, XtCallbackProc)
 
Widget createScale (Widget, char *, int, float)
 
void addEscapeCallback (void(*cb)(void *), void *)
 

Public Attributes

bool warningFlag
 
std::string saveScenegraphFileName
 
Widget saveScenegraphWidget
 
std::string saveRefCoordsFileName
 
Widget saveRefCoordsWidget
 
bool abbrOutputFlag
 
bool pickRefPathFlag
 
bool viewingBeforePickRef
 

Protected Member Functions

 G4OpenInventorXtExaminerViewer (Widget parent, const char *name, SbBool embed, SoXtFullViewer::BuildFlag flag, SoXtViewer::Type type, SbBool build)
 
Widget buildWidget (Widget parent)
 
virtual void createViewerButtons (Widget parent, SbPList *buttonlist)
 
virtual SbBool processSoEvent (const SoEvent *const event)
 
void moveCamera (float dist=0, bool lookdown=false)
 
void rotateCamera ()
 
void updateViewParams (SoKeyboardEvent::Key)
 
bool loadViewPts ()
 
virtual void afterRealizeHook ()
 

Protected Attributes

std::string curEltName
 
SbVec3f camUpVec
 
SbVec3f camDir
 

Private Types

enum  CameraType { PERSPECTIVE, ORTHOGRAPHIC }
 
enum  State {
  GENERAL, BEAMLINE, VIEWPOINT, ANIMATION,
  REVERSED_ANIMATION, PAUSED_ANIMATION, ROTATING
}
 

Private Member Functions

void constructor (const SbBool build)
 
void setViewPt ()
 
void writeViewPtIdx ()
 
void cleanUpAfterPrevFile ()
 
void popUpFileSelDialog (Widget &, std::string, std::string, XtCallbackProc)
 
void addViewPoints ()
 
void renameViewPt (char *vpName)
 
void sortViewPts (std::vector< std::string >)
 
void deleteViewPt (char *vpName=NULL)
 
void animateRefParticle ()
 
void saveCurCamera ()
 
void restoreCamera ()
 
void incSpeed ()
 
void decSpeed ()
 
void saveViewPt (char *name)
 
void setReferencePath (SoLineSet *, SoCoordinate3 *, bool append=false)
 
void setReferencePathZPos ()
 
void findAndSetRefPath ()
 
SoCoordinate3 * getCoordsNode (SoFullPath *path)
 
void getSceneElements ()
 
float sqrlen (const SbVec3f &)
 
void distanceToTrajectory (const SbVec3f &, float &, SbVec3f &, int &)
 
void sortElements ()
 
void createElementsList (Widget)
 
void evenOutRefParticlePts ()
 
void gotoRefPathStart ()
 
void invertRefPath ()
 
void setStartingPtForAnimation ()
 
std::string viewPtAutoName ()
 
SoNode * getSuperimpositionNode (SoNode *, const char *name)
 
void superimpositionEvent (SoAction *action)
 
virtual void actualRedraw (void)
 
void updateSpeedIndicator (void)
 

Static Private Member Functions

static
G4OpenInventorXtExaminerViewer
getObject ()
 
static void sceneChangeCB (void *, SoSensor *)
 
static void cancelFileSelDialogCB (Widget, XtPointer, XtPointer)
 
static void openViewPtFileCB (Widget, XtPointer, XtPointer)
 
static void viewPtFileSelectedCB (Widget, XtPointer, XtPointer)
 
static void newViewPtFileCB (Widget, XtPointer, XtPointer)
 
static void createNewVPFileCB (Widget, XtPointer, XtPointer)
 
static void overwriteFileCB (Widget, XtPointer, XtPointer)
 
static void loadRefCoordsDialogCB (Widget, XtPointer, XtPointer)
 
static void loadRefCoordsCB (Widget, XtPointer, XtPointer)
 
static void saveRefCoordsDialogCB (Widget, XtPointer, XtPointer)
 
static void saveRefCoordsCB (Widget, XtPointer, XtPointer)
 
static void saveRefCoordsOverWriteCB (Widget, XtPointer, XtPointer)
 
static void loadSceneGraphDialogCB (Widget, XtPointer, XtPointer)
 
static void loadSceneGraphCB (Widget, XtPointer, XtPointer)
 
static void saveSceneGraphDialogCB (Widget, XtPointer, XtPointer)
 
static void saveSceneGraphCB (Widget, XtPointer, XtPointer)
 
static void saveSceneGraphOverWriteCB (Widget, XtPointer, XtPointer)
 
static void mouseoverCB (void *aThis, SoEventCallback *eventCB)
 
static void pickingCB (void *aThis, SoEventCallback *eventCB)
 
static void closeListsDialogCB (Widget, XtPointer, XtPointer)
 
static void loadBookmarkCB (Widget, XtPointer, XtPointer)
 
static void renameBookmarkCB (Widget, XtPointer, XtPointer)
 
static void sortBookmarksCB (Widget, XtPointer, XtPointer)
 
static void deleteBookmarkCB (Widget, XtPointer, XtPointer)
 
static void deleteViewPtCB (Widget, XtPointer, XtPointer)
 
static void animateRefParticleCB (Widget, XtPointer, XtPointer)
 
static void animateSensorCB (void *, SoSensor *)
 
static void animateSensorRotationCB (void *, SoSensor *)
 
static void prevViewPtCB (Widget, XtPointer, XtPointer)
 
static void nextViewPtCB (Widget, XtPointer, XtPointer)
 
static void saveViewPtCB (Widget, XtPointer, XtPointer)
 
static void abbrOutputCB (Widget, XtPointer, XtPointer)
 
static void pickRefPathCB (Widget, XtPointer, XtPointer)
 
static void constructListsDialog (Widget, XtPointer, XtPointer)
 
static void lookAtSceneElementCB (Widget, XtPointer, XtPointer)
 
static void cancelSceneElementSelectionCB (Widget, XtPointer, XtPointer)
 
static void closeMainWindowCB (Widget, XtPointer, XtPointer)
 
static void gotoRefPathStartCB (Widget, XtPointer, XtPointer)
 
static void invertRefPathCB (Widget, XtPointer, XtPointer)
 
static void getViewPtNameCB (Widget, XtPointer, XtPointer)
 
static void superimpositionCB (void *closure, SoAction *action)
 

Private Attributes

Widget prevViewPtButton
 
Widget nextViewPtButton
 
Widget menuBar
 
Widget fileMenu
 
Widget openFileDialog
 
Widget newFileDialog
 
Widget loadRefCoordsDialog
 
Widget saveRefCoordsDialog
 
Widget loadSceneGraphDialog
 
Widget saveSceneGraphDialog
 
Widget viewPtSelection
 
Widget listsDialog
 
Widget myShellDialog
 
Widget myViewPtList
 
Widget myElementList
 
void(* escapeCallback )(void *)
 
void * examinerObject
 
SbBool lshiftdown
 
SbBool rshiftdown
 
SbBool lctrldown
 
SbBool rctrldown
 
HookEventProcStatehookBeamOn
 
bool newEvents
 
double animateBtwPtsPeriod
 
double speedStep
 
SoTimerSensor * animateSensor
 
SoTimerSensor * animateSensorRotation
 
SoNodeSensor * sceneChangeSensor
 
SbVec3f camStartPos
 
SbVec3f camEndPos
 
SbRotation camStartOrient
 
SbRotation camEndOrient
 
bool zcoordSetFlag
 
std::vector< sceneElementsceneElements
 
std::vector< viewPtDataviewPtList
 
std::string fileName
 
std::ifstream fileIn
 
std::ofstream fileOut
 
int viewPtIdx
 
int MAX_VP_IDX
 
int MAX_VP_NAME
 
std::vector< SbVec3f > refParticleTrajectory
 
std::vector< float > refZPositions
 
int refParticleIdx
 
int prevRefIdx
 
float distance
 
State currentState
 
State prevState
 
State beforePausing
 
char * curViewPtName
 
int step
 
SbVec3f prevPt
 
SbVec3f prevParticleDir
 
void * prevColorField
 
viewPtData camB4Animation
 
bool returnToSaveVP
 
bool returnToAnim
 
SoCamera * myCam
 
float left_right
 
float up_down
 
SbVec3f rotAxis
 
int rotCnt
 
SoSearchAction * searcher
 
SoNode * superimposition
 
SoCoordinate3 * sgeometry
 
SoScale * sscale
 
SoTranslation * stranslation
 
SoTranslation * curInfoTrans
 
SoTranslation * mouseOverTransSolid
 
SoTranslation * mouseOverTransMaterial
 
SoTranslation * mouseOverTransLogName
 
SoTranslation * mouseOverTransZPos
 
SoText2 * curInfoText
 
SoText2 * mouseOverTextSolid
 
SoText2 * mouseOverTextMaterial
 
SoText2 * mouseOverTextLogName
 
SoText2 * mouseOverTextZPos
 
SoFont * curInfoFont
 
SoFont * mouseOverFontSolid
 
SoFont * mouseOverFontMaterial
 
SoFont * mouseOverFontLogName
 
SoFont * mouseOverFontZPos
 
SoSwitch * axisSwitch
 
SoSwitch * animSpeedOutlineSwitch
 
SoSwitch * animSpeedSwitch
 
SoSwitch * curInfoSwitch
 
float maxSpeed
 
float defaultHeight
 
float defaultHeightAngle
 
SbVec3f upVector
 
SbVec3f offsetFromCenter
 
SbVec3f center
 
bool rotUpVec
 
SoSeparator * newSceneGraph
 

Static Private Attributes

static
G4OpenInventorXtExaminerViewer
viewer = 0
 

Friends

class HookEventProcState
 

Detailed Description

Definition at line 63 of file G4OpenInventorXtExaminerViewer.hh.

Member Enumeration Documentation

Enumerator
PERSPECTIVE 
ORTHOGRAPHIC 

Definition at line 223 of file G4OpenInventorXtExaminerViewer.hh.

Enumerator
GENERAL 
BEAMLINE 
VIEWPOINT 
ANIMATION 
REVERSED_ANIMATION 
PAUSED_ANIMATION 
ROTATING 

Definition at line 229 of file G4OpenInventorXtExaminerViewer.hh.

Constructor & Destructor Documentation

G4OpenInventorXtExaminerViewer::G4OpenInventorXtExaminerViewer ( Widget  parent = NULL,
const char *  name = NULL,
SbBool  embed = TRUE,
SoXtFullViewer::BuildFlag  flag = BUILD_ALL,
SoXtViewer::Type  type = BROWSER 
)

Definition at line 123 of file G4OpenInventorXtExaminerViewer.cc.

References constructor(), and TRUE.

Referenced by getObject().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4OpenInventorXtExaminerViewer::~G4OpenInventorXtExaminerViewer ( )
G4OpenInventorXtExaminerViewer::G4OpenInventorXtExaminerViewer ( Widget  parent,
const char *  name,
SbBool  embed,
SoXtFullViewer::BuildFlag  flag,
SoXtViewer::Type  type,
SbBool  build 
)
protected

Definition at line 133 of file G4OpenInventorXtExaminerViewer.cc.

References constructor().

+ Here is the call graph for this function:

Member Function Documentation

void G4OpenInventorXtExaminerViewer::abbrOutputCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 2971 of file G4OpenInventorXtExaminerViewer.cc.

References abbrOutputFlag.

Referenced by createViewerButtons().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::actualRedraw ( void  )
privatevirtual

Definition at line 1825 of file G4OpenInventorXtExaminerViewer.cc.

References ANIMATION, currentState, PAUSED_ANIMATION, REVERSED_ANIMATION, and updateSpeedIndicator().

+ Here is the call graph for this function:

void G4OpenInventorXtExaminerViewer::addButton ( Widget  menu,
std::string  name,
XtCallbackProc  cb 
)

Definition at line 667 of file G4OpenInventorXtExaminerViewer.cc.

Referenced by buildWidget().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::addEscapeCallback ( void(*)(void *)  cb,
void *  object 
)

Definition at line 4706 of file G4OpenInventorXtExaminerViewer.cc.

References escapeCallback, and examinerObject.

Widget G4OpenInventorXtExaminerViewer::addMenu ( std::string  name)

Definition at line 653 of file G4OpenInventorXtExaminerViewer.cc.

References menuBar.

Referenced by buildWidget().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::addViewPoints ( )
private

Definition at line 3524 of file G4OpenInventorXtExaminerViewer.cc.

References myViewPtList, and viewPtList.

Referenced by constructListsDialog(), and viewPtFileSelectedCB().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::afterRealizeHook ( )
protectedvirtual

Definition at line 772 of file G4OpenInventorXtExaminerViewer.cc.

References constructListsDialog(), defaultHeight, defaultHeightAngle, fileIn, fileName, fileOut, loadViewPts(), mouseoverCB(), myCam, nextViewPtButton, pickingCB(), prevViewPtButton, sceneChangeCB(), sceneChangeSensor, viewPtList, and warningMsgDialog().

+ Here is the call graph for this function:

void G4OpenInventorXtExaminerViewer::animateRefParticle ( )
private

Definition at line 4683 of file G4OpenInventorXtExaminerViewer.cc.

References animateSensor, BEAMLINE, camEndOrient, camEndPos, camStartOrient, camStartPos, currentState, myCam, and setStartingPtForAnimation().

Referenced by animateRefParticleCB(), animateSensorCB(), incSpeed(), and processSoEvent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::animateRefParticleCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 4621 of file G4OpenInventorXtExaminerViewer.cc.

References animateBtwPtsPeriod, animateRefParticle(), ANIMATION, animSpeedOutlineSwitch, animSpeedSwitch, axisSwitch, currentState, left_right, maxSpeed, MIN_SPEED, myCam, PAUSED_ANIMATION, position, prevRefIdx, prevState, refParticleIdx, refParticleTrajectory, returnToAnim, REVERSED_ANIMATION, ROTATING, saveCurCamera(), setStartingPtForAnimation(), SPEED_INDICATOR_STEP, speedStep, START_STEP, superimposition, TRUE, up_down, and warningMsgDialog().

Referenced by buildWidget().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::animateSensorCB ( void *  data,
SoSensor *  sensor 
)
staticprivate

Definition at line 4446 of file G4OpenInventorXtExaminerViewer.cc.

References animateBtwPtsPeriod, animateRefParticle(), animateSensor, ANIMATION, camEndOrient, camEndPos, camStartOrient, camStartPos, currentState, MIN_SPEED, refParticleIdx, refParticleTrajectory, REVERSED_ANIMATION, s, speedStep, and START_STEP.

Referenced by constructor().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::animateSensorRotationCB ( void *  data,
SoSensor *  sensor 
)
staticprivate

Definition at line 4414 of file G4OpenInventorXtExaminerViewer.cc.

References animateBtwPtsPeriod, animateSensorRotation, currentState, prevState, rotateCamera(), rotCnt, and s.

Referenced by constructor().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Widget G4OpenInventorXtExaminerViewer::buildWidget ( Widget  parent)
protected

Definition at line 596 of file G4OpenInventorXtExaminerViewer.cc.

References addButton(), addMenu(), animateRefParticleCB(), closeMainWindowCB(), fileMenu, gotoRefPathStartCB(), invertRefPathCB(), loadRefCoordsDialogCB(), loadSceneGraphDialogCB(), menuBar, newViewPtFileCB(), openViewPtFileCB(), saveRefCoordsDialogCB(), and saveSceneGraphDialogCB().

Referenced by constructor().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::cancelFileSelDialogCB ( Widget  w,
XtPointer  ,
XtPointer   
)
staticprivate

Definition at line 3433 of file G4OpenInventorXtExaminerViewer.cc.

Referenced by popUpFileSelDialog(), saveRefCoordsDialogCB(), and saveSceneGraphDialogCB().

+ Here is the caller graph for this function:

static void G4OpenInventorXtExaminerViewer::cancelSceneElementSelectionCB ( Widget  ,
XtPointer  ,
XtPointer   
)
staticprivate
void G4OpenInventorXtExaminerViewer::cleanUpAfterPrevFile ( )
private

Definition at line 3549 of file G4OpenInventorXtExaminerViewer.cc.

References currentState, FALSE, fileOut, GENERAL, listsDialog, myViewPtList, superimposition, viewPtIdx, and viewPtList.

Referenced by createNewVPFileCB(), overwriteFileCB(), and viewPtFileSelectedCB().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::closeListsDialogCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 2737 of file G4OpenInventorXtExaminerViewer.cc.

References currentState, GENERAL, listsDialog, myShellDialog, refParticleTrajectory, and sceneElements.

Referenced by closeMainWindowCB(), constructListsDialog(), and createNewVPFileCB().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::closeMainWindowCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 4339 of file G4OpenInventorXtExaminerViewer.cc.

References closeListsDialogCB(), listsDialog, newFileDialog, and openFileDialog.

Referenced by buildWidget().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::constructListsDialog ( Widget  w,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 2352 of file G4OpenInventorXtExaminerViewer.cc.

References addViewPoints(), animateSensor, ANIMATION, closeListsDialogCB(), createElementsList(), currentState, deleteBookmarkCB(), fileName, getSceneElements(), listsDialog, loadBookmarkCB(), MAX_VP_NAME, myElementList, myShellDialog, myViewPtList, n, PAUSED_ANIMATION, prevPt, prevRefIdx, prevState, refParticleIdx, refParticleTrajectory, renameBookmarkCB(), restoreCamera(), sortBookmarksCB(), step, viewPtList, viewPtSelection, and xmAddMouseEventHandler().

Referenced by afterRealizeHook(), createNewVPFileCB(), and viewPtFileSelectedCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::constructor ( const SbBool  build)
private

Definition at line 143 of file G4OpenInventorXtExaminerViewer.cc.

References abbrOutputFlag, animateBtwPtsPeriod, animateSensor, animateSensorCB(), animateSensorRotation, animateSensorRotationCB(), animSpeedOutlineSwitch, animSpeedSwitch, assert, axisSwitch, buildWidget(), curInfoFont, curInfoSwitch, curInfoText, curInfoTrans, currentState, curViewPtName, FALSE, fileName, GENERAL, getSuperimpositionNode(), hookBeamOn, HookEventProcState, lctrldown, left_right, listsDialog, loadRefCoordsDialog, loadSceneGraphDialog, lshiftdown, MAX_VP_IDX, MAX_VP_NAME, maxSpeed, MIN_SPEED, mouseOverFontLogName, mouseOverFontMaterial, mouseOverFontSolid, mouseOverFontZPos, mouseOverTextLogName, mouseOverTextMaterial, mouseOverTextSolid, mouseOverTextZPos, mouseOverTransLogName, mouseOverTransMaterial, mouseOverTransSolid, mouseOverTransZPos, myCam, myElementList, newEvents, newFileDialog, newSceneGraph, openFileDialog, pickRefPathFlag, prevColorField, rctrldown, ROT_CNT, rotCnt, rotUpVec, rshiftdown, saveRefCoordsDialog, saveSceneGraphDialog, searcher, sgeometry, speedStep, sscale, START_STEP, step, stranslation, superimposition, superimpositionCB(), thisClassName, up_down, viewer, viewPtIdx, warningFlag, and zcoordSetFlag.

Referenced by G4OpenInventorXtExaminerViewer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::createElementsList ( Widget  formTopRight)
private

Definition at line 2290 of file G4OpenInventorXtExaminerViewer.cc.

References lookAtSceneElementCB(), myElementList, n, sceneElements, xmAddMouseEventHandler(), and zcoordSetFlag.

Referenced by constructListsDialog(), and sortElements().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::createNewVPFileCB ( Widget  w,
XtPointer  client_data,
XtPointer  call_data 
)
staticprivate

Definition at line 3602 of file G4OpenInventorXtExaminerViewer.cc.

References cleanUpAfterPrevFile(), closeListsDialogCB(), constructListsDialog(), fileIn, fileName, fileOut, fName, listsDialog, nextViewPtButton, overwriteFileCB(), prevViewPtButton, returnToSaveVP, saveViewPtCB(), and warningMsgDialog().

Referenced by newViewPtFileCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Widget G4OpenInventorXtExaminerViewer::createScale ( Widget  ,
char *  ,
int  ,
float   
)
void G4OpenInventorXtExaminerViewer::createViewerButtons ( Widget  parent,
SbPList *  buttonlist 
)
protectedvirtual

Definition at line 677 of file G4OpenInventorXtExaminerViewer.cc.

References abbrOutputCB(), n, nextViewPtButton, nextViewPtCB(), pickRefPathCB(), prevViewPtButton, prevViewPtCB(), saveViewPtCB(), and TRUE.

+ Here is the call graph for this function:

void G4OpenInventorXtExaminerViewer::decSpeed ( )
private

Definition at line 1787 of file G4OpenInventorXtExaminerViewer.cc.

References animateBtwPtsPeriod, animateSensor, maxSpeed, MIN_SPEED, speedStep, and START_STEP.

Referenced by processSoEvent().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::deleteBookmarkCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 4156 of file G4OpenInventorXtExaminerViewer.cc.

References deleteViewPt(), myViewPtList, and viewPtSelection.

Referenced by constructListsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::deleteViewPt ( char *  vpName = NULL)
private

Definition at line 3132 of file G4OpenInventorXtExaminerViewer.cc.

References curViewPtName, fileIn, fileName, fileOut, listsDialog, myViewPtList, nextViewPtButton, prevViewPtButton, setViewPt(), viewPtIdx, viewPtList, and writeViewPtIdx().

Referenced by deleteBookmarkCB(), and deleteViewPtCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::deleteViewPtCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 3119 of file G4OpenInventorXtExaminerViewer.cc.

References deleteViewPt().

Referenced by processSoEvent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::distanceToTrajectory ( const SbVec3f &  q,
float &  dist,
SbVec3f &  closestPoint,
int &  index 
)
private

Definition at line 2129 of file G4OpenInventorXtExaminerViewer.cc.

References a, assert, refParticleTrajectory, and sqrlen().

Referenced by sortElements().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::evenOutRefParticlePts ( )
private

Definition at line 4283 of file G4OpenInventorXtExaminerViewer.cc.

References refParticleTrajectory, and z.

Referenced by setReferencePath().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::findAndSetRefPath ( )
private

Definition at line 1911 of file G4OpenInventorXtExaminerViewer.cc.

References G4FFGEnumerations::ALL, buffer, G4AttHolder::GetAttDefs(), G4AttHolder::GetAttValues(), getCoordsNode(), and setReferencePath().

Referenced by sceneChangeCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SoCoordinate3 * G4OpenInventorXtExaminerViewer::getCoordsNode ( SoFullPath *  path)
private

Definition at line 2030 of file G4OpenInventorXtExaminerViewer.cc.

Referenced by findAndSetRefPath().

+ Here is the caller graph for this function:

Widget G4OpenInventorXtExaminerViewer::getMenu ( )
inline

Definition at line 90 of file G4OpenInventorXtExaminerViewer.hh.

References fileMenu.

Widget G4OpenInventorXtExaminerViewer::getMenuBar ( )
inline

Definition at line 89 of file G4OpenInventorXtExaminerViewer.hh.

References menuBar.

G4OpenInventorXtExaminerViewer * G4OpenInventorXtExaminerViewer::getObject ( )
staticprivate

Definition at line 451 of file G4OpenInventorXtExaminerViewer.cc.

References G4OpenInventorXtExaminerViewer(), and viewer.

+ Here is the call graph for this function:

void G4OpenInventorXtExaminerViewer::getSceneElements ( )
private

Definition at line 2054 of file G4OpenInventorXtExaminerViewer.cc.

References G4FFGEnumerations::ALL, sceneElements, TRUE, and z.

Referenced by constructListsDialog().

+ Here is the caller graph for this function:

SoNode * G4OpenInventorXtExaminerViewer::getSuperimpositionNode ( SoNode *  root,
const char *  name 
)
private

Definition at line 461 of file G4OpenInventorXtExaminerViewer.cc.

References assert, searcher, and TRUE.

Referenced by constructor().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::getViewPtNameCB ( Widget  w,
XtPointer  client_data,
XtPointer  call_data 
)
staticprivate

Definition at line 2998 of file G4OpenInventorXtExaminerViewer.cc.

References listsDialog, MAX_VP_NAME, myViewPtList, name, saveViewPt(), viewPtIdx, viewPtList, and warningMsgDialog().

Referenced by saveViewPtCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::gotoRefPathStart ( )
private

Definition at line 4536 of file G4OpenInventorXtExaminerViewer.cc.

References gotoRefPathStartCB().

+ Here is the call graph for this function:

void G4OpenInventorXtExaminerViewer::gotoRefPathStartCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 4543 of file G4OpenInventorXtExaminerViewer.cc.

References animateSensor, ANIMATION, animSpeedOutlineSwitch, animSpeedSwitch, axisSwitch, BEAMLINE, currentState, distance, FALSE, left_right, maxSpeed, moveCamera(), PAUSED_ANIMATION, prevParticleDir, prevRefIdx, prevState, refParticleIdx, refParticleTrajectory, REVERSED_ANIMATION, ROTATING, saveCurCamera(), step, superimposition, TRUE, up_down, and warningMsgDialog().

Referenced by buildWidget(), and gotoRefPathStart().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::incSpeed ( )
private

Definition at line 1769 of file G4OpenInventorXtExaminerViewer.cc.

References animateBtwPtsPeriod, animateRefParticle(), currentState, PAUSED_ANIMATION, refParticleTrajectory, and speedStep.

Referenced by processSoEvent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::invertRefPath ( )
private

Definition at line 4612 of file G4OpenInventorXtExaminerViewer.cc.

References refParticleTrajectory, reverse, setReferencePathZPos(), and sortElements().

Referenced by invertRefPathCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::invertRefPathCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 4602 of file G4OpenInventorXtExaminerViewer.cc.

References invertRefPath().

Referenced by buildWidget().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::loadBookmarkCB ( Widget  ,
XtPointer  client_data,
XtPointer  call_data 
)
staticprivate

Definition at line 4130 of file G4OpenInventorXtExaminerViewer.cc.

References setViewPt(), viewPtIdx, viewPtList, viewPtSelection, and writeViewPtIdx().

Referenced by constructListsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::loadRefCoordsCB ( Widget  w,
XtPointer  client_data,
XtPointer  call_data 
)
staticprivate

Definition at line 3681 of file G4OpenInventorXtExaminerViewer.cc.

References refParticleTrajectory, warningMsgDialog(), and z.

Referenced by loadRefCoordsDialogCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::loadRefCoordsDialogCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 3670 of file G4OpenInventorXtExaminerViewer.cc.

References loadRefCoordsCB(), loadRefCoordsDialog, and popUpFileSelDialog().

Referenced by buildWidget().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::loadSceneGraphCB ( Widget  w,
XtPointer  client_data,
XtPointer  call_data 
)
staticprivate

Definition at line 3908 of file G4OpenInventorXtExaminerViewer.cc.

References newSceneGraph, and warningMsgDialog().

Referenced by loadSceneGraphDialogCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::loadSceneGraphDialogCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 3896 of file G4OpenInventorXtExaminerViewer.cc.

References loadSceneGraphCB(), loadSceneGraphDialog, and popUpFileSelDialog().

Referenced by buildWidget().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::lookAtSceneElementCB ( Widget  ,
XtPointer  client_data,
XtPointer  call_data 
)
staticprivate

Definition at line 2587 of file G4OpenInventorXtExaminerViewer.cc.

References G4FFGEnumerations::ALL, animateSensor, ANIMATION, animSpeedOutlineSwitch, animSpeedSwitch, axisSwitch, BEAMLINE, curEltName, currentState, defaultHeight, defaultHeightAngle, distance, error, FALSE, maxSpeed, moveCamera(), offsetFromCenter, parseString(), PAUSED_ANIMATION, prevParticleDir, prevPt, prevState, refParticleIdx, refParticleTrajectory, restoreCamera(), REVERSED_ANIMATION, superimposition, TRUE, upVector, VIEWPOINT, and viewPtSelection.

Referenced by createElementsList().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::mouseoverCB ( void *  aThis,
SoEventCallback *  eventCB 
)
staticprivate

Definition at line 1142 of file G4OpenInventorXtExaminerViewer.cc.

References abbrOutputFlag, center, G4AttHolder::GetAttDefs(), G4AttHolder::GetAttValues(), mouseOverTextLogName, mouseOverTextMaterial, mouseOverTextSolid, mouseOverTextZPos, G4InuclParticleNames::pp, superimposition, TRUE, and z.

Referenced by afterRealizeHook().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::moveCamera ( float  dist = 0,
bool  lookdown = false 
)
protected

Definition at line 892 of file G4OpenInventorXtExaminerViewer.cc.

References camDir, camUpVec, center, distance, offsetFromCenter, prevParticleDir, prevPt, refParticleIdx, refParticleTrajectory, step, upVector, and z.

Referenced by gotoRefPathStartCB(), lookAtSceneElementCB(), and processSoEvent().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::newViewPtFileCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 3591 of file G4OpenInventorXtExaminerViewer.cc.

References createNewVPFileCB(), newFileDialog, and popUpFileSelDialog().

Referenced by buildWidget(), and saveViewPtCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::nextViewPtCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 2766 of file G4OpenInventorXtExaminerViewer.cc.

References setViewPt(), viewPtIdx, viewPtList, and writeViewPtIdx().

Referenced by createViewerButtons().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::openViewPtFileCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 3443 of file G4OpenInventorXtExaminerViewer.cc.

References openFileDialog, popUpFileSelDialog(), and viewPtFileSelectedCB().

Referenced by buildWidget().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::overwriteFileCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 3650 of file G4OpenInventorXtExaminerViewer.cc.

References cleanUpAfterPrevFile(), fileName, fileOut, newFileDialog, nextViewPtButton, prevViewPtButton, returnToSaveVP, and saveViewPtCB().

Referenced by createNewVPFileCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<class T >
void G4OpenInventorXtExaminerViewer::parseString ( T &  t,
const std::string &  s,
bool &  error 
)

Definition at line 3380 of file G4OpenInventorXtExaminerViewer.cc.

Referenced by lookAtSceneElementCB().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::pickingCB ( void *  aThis,
SoEventCallback *  eventCB 
)
staticprivate

Definition at line 1004 of file G4OpenInventorXtExaminerViewer.cc.

References abbrOutputFlag, DEFAULT, G4cout, G4endl, G4AttHolder::GetAttDefs(), G4AttHolder::GetAttValues(), lshiftdown, name, pickRefPathFlag, G4InuclParticleNames::pp, rshiftdown, setReferencePath(), viewingBeforePickRef, and warningMsgDialog().

Referenced by afterRealizeHook().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::pickRefPathCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 2981 of file G4OpenInventorXtExaminerViewer.cc.

References pickRefPathFlag, and viewingBeforePickRef.

Referenced by createViewerButtons().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::popUpFileSelDialog ( Widget &  dialog,
std::string  dialogName,
std::string  buttonLabel,
XtCallbackProc  cbOK 
)
private

Definition at line 3391 of file G4OpenInventorXtExaminerViewer.cc.

References cancelFileSelDialogCB(), n, and xmAddMouseEventHandler().

Referenced by loadRefCoordsDialogCB(), loadSceneGraphDialogCB(), newViewPtFileCB(), and openViewPtFileCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::prevViewPtCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 2752 of file G4OpenInventorXtExaminerViewer.cc.

References setViewPt(), viewPtIdx, viewPtList, and writeViewPtIdx().

Referenced by createViewerButtons().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::renameBookmarkCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 4178 of file G4OpenInventorXtExaminerViewer.cc.

References currentState, curViewPtName, myViewPtList, renameViewPt(), VIEWPOINT, viewPtList, viewPtSelection, and warningMsgDialog().

Referenced by constructListsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::renameViewPt ( char *  vpName)
private

Definition at line 3208 of file G4OpenInventorXtExaminerViewer.cc.

References curViewPtName, fileIn, fileName, fileOut, MAX_VP_NAME, pos, and viewPtList.

Referenced by renameBookmarkCB().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::rotateCamera ( )
protected

Definition at line 865 of file G4OpenInventorXtExaminerViewer.cc.

References animateSensorRotation, camDir, camUpVec, distance, prevPt, ROT_CNT, rotAxis, and rotCnt.

Referenced by animateSensorRotationCB(), and processSoEvent().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::saveRefCoordsCB ( Widget  w,
XtPointer  client_data,
XtPointer  call_data 
)
staticprivate

Definition at line 3770 of file G4OpenInventorXtExaminerViewer.cc.

References refParticleTrajectory, saveRefCoordsFileName, saveRefCoordsOverWriteCB(), saveRefCoordsWidget, warningMsgDialog(), and z.

Referenced by saveRefCoordsDialogCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::saveRefCoordsDialogCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 3719 of file G4OpenInventorXtExaminerViewer.cc.

References cancelFileSelDialogCB(), n, refParticleTrajectory, saveRefCoordsCB(), saveRefCoordsDialog, warningMsgDialog(), and xmAddMouseEventHandler().

Referenced by buildWidget().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::saveRefCoordsOverWriteCB ( Widget  w,
XtPointer  client_data,
XtPointer  call_data 
)
staticprivate

Definition at line 3844 of file G4OpenInventorXtExaminerViewer.cc.

References refParticleTrajectory, saveRefCoordsFileName, saveRefCoordsWidget, warningMsgDialog(), and z.

Referenced by saveRefCoordsCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::saveSceneGraphCB ( Widget  w,
XtPointer  client_data,
XtPointer  call_data 
)
staticprivate

Definition at line 3994 of file G4OpenInventorXtExaminerViewer.cc.

References FALSE, saveScenegraphFileName, saveSceneGraphOverWriteCB(), saveScenegraphWidget, and warningMsgDialog().

Referenced by saveSceneGraphDialogCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::saveSceneGraphDialogCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 3949 of file G4OpenInventorXtExaminerViewer.cc.

References cancelFileSelDialogCB(), n, saveSceneGraphCB(), saveSceneGraphDialog, and xmAddMouseEventHandler().

Referenced by buildWidget().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::saveSceneGraphOverWriteCB ( Widget  w,
XtPointer  client_data,
XtPointer  call_data 
)
staticprivate

Definition at line 4071 of file G4OpenInventorXtExaminerViewer.cc.

References FALSE, saveScenegraphFileName, saveScenegraphWidget, and warningMsgDialog().

Referenced by saveSceneGraphCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::saveViewPtCB ( Widget  w,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 2883 of file G4OpenInventorXtExaminerViewer.cc.

References fileName, getViewPtNameCB(), MAX_VP_NAME, n, newViewPtFileCB(), returnToSaveVP, viewPtAutoName(), and warningFlag.

Referenced by createNewVPFileCB(), createViewerButtons(), and overwriteFileCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::sceneChangeCB ( void *  userData,
SoSensor *   
)
staticprivate

Definition at line 4714 of file G4OpenInventorXtExaminerViewer.cc.

References findAndSetRefPath(), and newEvents.

Referenced by afterRealizeHook().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::setReferencePath ( SoLineSet *  lineset,
SoCoordinate3 *  coords,
bool  append = false 
)
private

Definition at line 1839 of file G4OpenInventorXtExaminerViewer.cc.

References evenOutRefParticlePts(), refParticleTrajectory, setReferencePathZPos(), and sortElements().

Referenced by findAndSetRefPath(), and pickingCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::setReferencePathZPos ( )
private

Definition at line 1898 of file G4OpenInventorXtExaminerViewer.cc.

References refParticleTrajectory, and refZPositions.

Referenced by invertRefPath(), and setReferencePath().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::setStartingPtForAnimation ( )
private

Definition at line 4487 of file G4OpenInventorXtExaminerViewer.cc.

References ANIMATION, currentState, left_right, myCam, PAUSED_ANIMATION, refParticleIdx, refParticleTrajectory, REVERSED_ANIMATION, and up_down.

Referenced by animateRefParticle(), animateRefParticleCB(), and processSoEvent().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::setViewPt ( )
private

Definition at line 2802 of file G4OpenInventorXtExaminerViewer.cc.

References animateSensor, ANIMATION, animSpeedOutlineSwitch, animSpeedSwitch, axisSwitch, currentState, curViewPtName, FALSE, maxSpeed, ORTHOGRAPHIC, PERSPECTIVE, REVERSED_ANIMATION, ROTATING, superimposition, TRUE, VIEWPOINT, viewPtIdx, viewPtList, and warningMsgDialog().

Referenced by deleteViewPt(), loadBookmarkCB(), nextViewPtCB(), prevViewPtCB(), and viewPtFileSelectedCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::sortBookmarksCB ( Widget  ,
XtPointer  client_data,
XtPointer   
)
staticprivate

Definition at line 4232 of file G4OpenInventorXtExaminerViewer.cc.

References curViewPtName, myViewPtList, sortViewPts(), viewPtIdx, and viewPtList.

Referenced by constructListsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::sortElements ( )
private

Definition at line 2221 of file G4OpenInventorXtExaminerViewer.cc.

References G4OpenInventorXtExaminerViewer::elementForSorting::closestPoint, G4OpenInventorXtExaminerViewer::elementForSorting::closestPointZCoord, createElementsList(), G4OpenInventorXtExaminerViewer::elementForSorting::distanceToBeamlineStart, distanceToTrajectory(), listsDialog, refParticleTrajectory, sceneElements, G4OpenInventorXtExaminerViewer::elementForSorting::smallestDistance, and zcoordSetFlag.

Referenced by invertRefPath(), and setReferencePath().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::sortViewPts ( std::vector< std::string >  sortedViewPts)
private

Definition at line 3250 of file G4OpenInventorXtExaminerViewer.cc.

References fileName, fileOut, MAX_VP_NAME, viewPtList, writeViewPtIdx(), and z.

Referenced by sortBookmarksCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

float G4OpenInventorXtExaminerViewer::sqrlen ( const SbVec3f &  a)
private

Definition at line 2121 of file G4OpenInventorXtExaminerViewer.cc.

References z.

Referenced by distanceToTrajectory().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::superimpositionCB ( void *  closure,
SoAction *  action 
)
staticprivate

Definition at line 476 of file G4OpenInventorXtExaminerViewer.cc.

Referenced by constructor().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::updateSpeedIndicator ( void  )
private

Definition at line 1804 of file G4OpenInventorXtExaminerViewer.cc.

References animSpeedOutlineSwitch, animSpeedSwitch, assert, maxSpeed, and sgeometry.

Referenced by actualRedraw().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::updateViewParams ( SoKeyboardEvent::Key  )
protected
std::string G4OpenInventorXtExaminerViewer::viewPtAutoName ( )
private

Definition at line 2929 of file G4OpenInventorXtExaminerViewer.cc.

References viewPtList.

Referenced by saveViewPtCB().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::viewPtFileSelectedCB ( Widget  w,
XtPointer  client_data,
XtPointer  call_data 
)
staticprivate

Definition at line 3454 of file G4OpenInventorXtExaminerViewer.cc.

References addViewPoints(), cleanUpAfterPrevFile(), constructListsDialog(), fileIn, fileName, fileOut, listsDialog, loadViewPts(), myShellDialog, nextViewPtButton, prevViewPtButton, setViewPt(), viewPtList, viewPtSelection, and warningMsgDialog().

Referenced by openViewPtFileCB().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::warningMsgDialog ( std::string  msg,
String  dialogName,
XtCallbackProc  cb 
)

Definition at line 3565 of file G4OpenInventorXtExaminerViewer.cc.

References n.

Referenced by afterRealizeHook(), animateRefParticleCB(), createNewVPFileCB(), getViewPtNameCB(), gotoRefPathStartCB(), loadRefCoordsCB(), loadSceneGraphCB(), pickingCB(), processSoEvent(), renameBookmarkCB(), saveRefCoordsCB(), saveRefCoordsDialogCB(), saveRefCoordsOverWriteCB(), saveSceneGraphCB(), saveSceneGraphOverWriteCB(), setViewPt(), and viewPtFileSelectedCB().

+ Here is the caller graph for this function:

void G4OpenInventorXtExaminerViewer::writeViewPtIdx ( )
private

Definition at line 2782 of file G4OpenInventorXtExaminerViewer.cc.

References fileOut, MAX_VP_IDX, and viewPtIdx.

Referenced by deleteViewPt(), loadBookmarkCB(), nextViewPtCB(), prevViewPtCB(), saveViewPt(), and sortViewPts().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class HookEventProcState
friend

Definition at line 136 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor().

Member Data Documentation

bool G4OpenInventorXtExaminerViewer::abbrOutputFlag
double G4OpenInventorXtExaminerViewer::animateBtwPtsPeriod
private
SoTimerSensor* G4OpenInventorXtExaminerViewer::animateSensorRotation
private
SoSwitch* G4OpenInventorXtExaminerViewer::animSpeedOutlineSwitch
private
SoSwitch* G4OpenInventorXtExaminerViewer::animSpeedSwitch
private
SoSwitch* G4OpenInventorXtExaminerViewer::axisSwitch
private
State G4OpenInventorXtExaminerViewer::beforePausing
private

Definition at line 308 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by processSoEvent().

viewPtData G4OpenInventorXtExaminerViewer::camB4Animation
private

Definition at line 316 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by restoreCamera(), and saveCurCamera().

SbVec3f G4OpenInventorXtExaminerViewer::camDir
protected

Definition at line 123 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by moveCamera(), processSoEvent(), and rotateCamera().

SbRotation G4OpenInventorXtExaminerViewer::camEndOrient
private

Definition at line 192 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by animateRefParticle(), and animateSensorCB().

SbVec3f G4OpenInventorXtExaminerViewer::camEndPos
private

Definition at line 191 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by animateRefParticle(), and animateSensorCB().

SbRotation G4OpenInventorXtExaminerViewer::camStartOrient
private

Definition at line 192 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by animateRefParticle(), and animateSensorCB().

SbVec3f G4OpenInventorXtExaminerViewer::camStartPos
private

Definition at line 191 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by animateRefParticle(), and animateSensorCB().

SbVec3f G4OpenInventorXtExaminerViewer::camUpVec
protected

Definition at line 122 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by moveCamera(), processSoEvent(), and rotateCamera().

SbVec3f G4OpenInventorXtExaminerViewer::center
private

Definition at line 378 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by mouseoverCB(), and moveCamera().

std::string G4OpenInventorXtExaminerViewer::curEltName
protected

Definition at line 121 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by lookAtSceneElementCB().

SoFont* G4OpenInventorXtExaminerViewer::curInfoFont
private

Definition at line 352 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and superimpositionEvent().

SoSwitch* G4OpenInventorXtExaminerViewer::curInfoSwitch
private

Definition at line 360 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor().

SoText2* G4OpenInventorXtExaminerViewer::curInfoText
private

Definition at line 344 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and superimpositionEvent().

SoTranslation* G4OpenInventorXtExaminerViewer::curInfoTrans
private

Definition at line 336 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and superimpositionEvent().

char* G4OpenInventorXtExaminerViewer::curViewPtName
private
float G4OpenInventorXtExaminerViewer::defaultHeight
private

Definition at line 374 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by afterRealizeHook(), and lookAtSceneElementCB().

float G4OpenInventorXtExaminerViewer::defaultHeightAngle
private

Definition at line 375 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by afterRealizeHook(), and lookAtSceneElementCB().

float G4OpenInventorXtExaminerViewer::distance
private
void(* G4OpenInventorXtExaminerViewer::escapeCallback)(void *)
private

Definition at line 72 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by addEscapeCallback(), and processSoEvent().

void* G4OpenInventorXtExaminerViewer::examinerObject
private

Definition at line 73 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by addEscapeCallback(), and processSoEvent().

std::ifstream G4OpenInventorXtExaminerViewer::fileIn
private
Widget G4OpenInventorXtExaminerViewer::fileMenu
private

Definition at line 66 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by buildWidget(), and getMenu().

HookEventProcState* G4OpenInventorXtExaminerViewer::hookBeamOn
private

Definition at line 135 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor().

SbBool G4OpenInventorXtExaminerViewer::lctrldown
private

Definition at line 74 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and processSoEvent().

float G4OpenInventorXtExaminerViewer::left_right
private
Widget G4OpenInventorXtExaminerViewer::loadRefCoordsDialog
private

Definition at line 66 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and loadRefCoordsDialogCB().

Widget G4OpenInventorXtExaminerViewer::loadSceneGraphDialog
private

Definition at line 66 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and loadSceneGraphDialogCB().

SbBool G4OpenInventorXtExaminerViewer::lshiftdown
private

Definition at line 74 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), pickingCB(), and processSoEvent().

int G4OpenInventorXtExaminerViewer::MAX_VP_IDX
private

Definition at line 298 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and writeViewPtIdx().

int G4OpenInventorXtExaminerViewer::MAX_VP_NAME
private
float G4OpenInventorXtExaminerViewer::maxSpeed
private
Widget G4OpenInventorXtExaminerViewer::menuBar
private

Definition at line 66 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by addMenu(), buildWidget(), and getMenuBar().

SoFont* G4OpenInventorXtExaminerViewer::mouseOverFontLogName
private

Definition at line 355 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor().

SoFont* G4OpenInventorXtExaminerViewer::mouseOverFontMaterial
private

Definition at line 354 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor().

SoFont* G4OpenInventorXtExaminerViewer::mouseOverFontSolid
private

Definition at line 353 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor().

SoFont* G4OpenInventorXtExaminerViewer::mouseOverFontZPos
private

Definition at line 356 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor().

SoText2* G4OpenInventorXtExaminerViewer::mouseOverTextLogName
private

Definition at line 349 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and mouseoverCB().

SoText2* G4OpenInventorXtExaminerViewer::mouseOverTextMaterial
private

Definition at line 348 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and mouseoverCB().

SoText2* G4OpenInventorXtExaminerViewer::mouseOverTextSolid
private

Definition at line 347 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and mouseoverCB().

SoText2* G4OpenInventorXtExaminerViewer::mouseOverTextZPos
private

Definition at line 350 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and mouseoverCB().

SoTranslation* G4OpenInventorXtExaminerViewer::mouseOverTransLogName
private

Definition at line 339 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and superimpositionEvent().

SoTranslation* G4OpenInventorXtExaminerViewer::mouseOverTransMaterial
private

Definition at line 338 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and superimpositionEvent().

SoTranslation* G4OpenInventorXtExaminerViewer::mouseOverTransSolid
private

Definition at line 337 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and superimpositionEvent().

SoTranslation* G4OpenInventorXtExaminerViewer::mouseOverTransZPos
private

Definition at line 340 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and superimpositionEvent().

SoCamera* G4OpenInventorXtExaminerViewer::myCam
private
Widget G4OpenInventorXtExaminerViewer::myElementList
private
Widget G4OpenInventorXtExaminerViewer::myShellDialog
private
Widget G4OpenInventorXtExaminerViewer::myViewPtList
private
bool G4OpenInventorXtExaminerViewer::newEvents
private
Widget G4OpenInventorXtExaminerViewer::newFileDialog
private
SoSeparator* G4OpenInventorXtExaminerViewer::newSceneGraph
private

Definition at line 381 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and loadSceneGraphCB().

Widget G4OpenInventorXtExaminerViewer::nextViewPtButton
private
SbVec3f G4OpenInventorXtExaminerViewer::offsetFromCenter
private

Definition at line 378 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by lookAtSceneElementCB(), and moveCamera().

Widget G4OpenInventorXtExaminerViewer::openFileDialog
private
bool G4OpenInventorXtExaminerViewer::pickRefPathFlag

Definition at line 102 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), pickingCB(), and pickRefPathCB().

void* G4OpenInventorXtExaminerViewer::prevColorField
private

Definition at line 314 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor().

SbVec3f G4OpenInventorXtExaminerViewer::prevParticleDir
private
SbVec3f G4OpenInventorXtExaminerViewer::prevPt
private
int G4OpenInventorXtExaminerViewer::prevRefIdx
private
State G4OpenInventorXtExaminerViewer::prevState
private
Widget G4OpenInventorXtExaminerViewer::prevViewPtButton
private
SbBool G4OpenInventorXtExaminerViewer::rctrldown
private

Definition at line 74 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and processSoEvent().

std::vector<float> G4OpenInventorXtExaminerViewer::refZPositions
private
bool G4OpenInventorXtExaminerViewer::returnToAnim
private

Definition at line 318 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by animateRefParticleCB().

bool G4OpenInventorXtExaminerViewer::returnToSaveVP
private
SbVec3f G4OpenInventorXtExaminerViewer::rotAxis
private

Definition at line 322 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by processSoEvent(), and rotateCamera().

int G4OpenInventorXtExaminerViewer::rotCnt
private
bool G4OpenInventorXtExaminerViewer::rotUpVec
private

Definition at line 379 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor().

SbBool G4OpenInventorXtExaminerViewer::rshiftdown
private

Definition at line 74 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), pickingCB(), and processSoEvent().

Widget G4OpenInventorXtExaminerViewer::saveRefCoordsDialog
private

Definition at line 66 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and saveRefCoordsDialogCB().

std::string G4OpenInventorXtExaminerViewer::saveRefCoordsFileName

Definition at line 96 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by saveRefCoordsCB(), and saveRefCoordsOverWriteCB().

Widget G4OpenInventorXtExaminerViewer::saveRefCoordsWidget

Definition at line 97 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by saveRefCoordsCB(), and saveRefCoordsOverWriteCB().

Widget G4OpenInventorXtExaminerViewer::saveSceneGraphDialog
private

Definition at line 66 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and saveSceneGraphDialogCB().

std::string G4OpenInventorXtExaminerViewer::saveScenegraphFileName
Widget G4OpenInventorXtExaminerViewer::saveScenegraphWidget
SoNodeSensor* G4OpenInventorXtExaminerViewer::sceneChangeSensor
private
std::vector<sceneElement> G4OpenInventorXtExaminerViewer::sceneElements
private
SoSearchAction* G4OpenInventorXtExaminerViewer::searcher
private
SoCoordinate3* G4OpenInventorXtExaminerViewer::sgeometry
private

Definition at line 332 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and updateSpeedIndicator().

double G4OpenInventorXtExaminerViewer::speedStep
private
SoScale* G4OpenInventorXtExaminerViewer::sscale
private

Definition at line 333 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and superimpositionEvent().

int G4OpenInventorXtExaminerViewer::step
private
SoTranslation* G4OpenInventorXtExaminerViewer::stranslation
private

Definition at line 335 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and superimpositionEvent().

float G4OpenInventorXtExaminerViewer::up_down
private
SbVec3f G4OpenInventorXtExaminerViewer::upVector
private

Definition at line 378 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by lookAtSceneElementCB(), and moveCamera().

G4OpenInventorXtExaminerViewer * G4OpenInventorXtExaminerViewer::viewer = 0
staticprivate
bool G4OpenInventorXtExaminerViewer::viewingBeforePickRef

Definition at line 103 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by pickingCB(), and pickRefPathCB().

Widget G4OpenInventorXtExaminerViewer::viewPtSelection
private
bool G4OpenInventorXtExaminerViewer::warningFlag

Definition at line 92 of file G4OpenInventorXtExaminerViewer.hh.

Referenced by constructor(), and saveViewPtCB().

bool G4OpenInventorXtExaminerViewer::zcoordSetFlag
private

The documentation for this class was generated from the following files: