OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
opencover::coVRNavigationManager Class Reference

#include <coVRNavigationManager.h>

Inheritance diagram for opencover::coVRNavigationManager:
Inheritance graph
[legend]
Collaboration diagram for opencover::coVRNavigationManager:
Collaboration graph
[legend]

Public Types

enum  NavMode {
  NavNone, XForm, Scale, Fly,
  Glide, Walk, ShowName, XFormRotate,
  XFormTranslate, TraverseInteractors, Menu, Measure
}
 

Public Member Functions

 coVRNavigationManager ()
 
 ~coVRNavigationManager ()
 
bool keyEvent (int type, int keySym, int mod)
 
bool mouseEvent (int type, int state, int code)
 
void doWalkMoveToFloor ()
 
void processHotKeys (int keymask)
 
void adjustFloorHeight ()
 
bool getCollision ()
 
void update ()
 
void setMenuMode (bool state)
 
void updateHandMat (osg::Matrix &mat)
 
void setHandType (int pt)
 
void setNavMode (NavMode mode)
 
void setOldNavMode ()
 
NavMode getMode ()
 
void setMode (NavMode mode)
 
bool isNavigationEnabled ()
 
bool mouseNav ()
 
bool isViewerPosRotationEnabled ()
 
void enableViewerPosRotation (bool b)
 
void saveCurrentBaseMatAsOldBaseMat ()
 
bool avoidCollision (osg::Vec3 &glideVec)
 
void wasJumping ()
 
float getDriveSpeed ()
 
void setDriveSpeed (float speed)
 
bool isSnapping () const
 
bool isDegreeSnapping () const
 
float snappingDegrees () const
 
void enableSnapping (bool enable)
 
void enableDegreeSnapping (bool enable, float degree)
 
void setStepSize (float stepsize)
 
float getStepSize () const
 
void doGuiScale (float scale)
 
void doGuiRotate (float x, float y, float z)
 
void doGuiTranslate (float x, float y, float z)
 
int readConfigFile ()
 
void toggleXform (bool state)
 
void toggleXformRotate (bool state)
 
void toggleXformTranslate (bool state)
 
void toggleScale (bool state)
 
void toggleFly (bool state)
 
void toggleWalk (bool state)
 
void toggleGlide (bool state)
 
void toggleCollide (bool state)
 
void toggleAxis (bool state)
 
void toggleShowName (bool state)
 
void toggleMeasure (bool state)
 
void toggleInteractors (bool state)
 
void toggleMenu ()
 
void startXform ()
 
void doXform ()
 
void stopXform ()
 
void startScale ()
 
void doScale ()
 
void stopScale ()
 
void startWalk ()
 
void doWalk ()
 
void stopWalk ()
 
void startDrive ()
 
void doDrive ()
 
void stopDrive ()
 
void startFly ()
 
void doFly ()
 
void stopFly ()
 
void doMouseFly ()
 
void doMouseXform ()
 
void doMouseScale ()
 
void doScale (float)
 
void doMouseWalk ()
 
void stopMouseNav ()
 
void startMouseNav ()
 
void startShowName ()
 
void doShowName ()
 
void stopShowName ()
 
void startMeasure ()
 
void doMeasure ()
 
void stopMeasure ()
 
void doXformRotate ()
 
void doXformTranslate ()
 
void highlightSelectedNode (osg::Node *selectedNode)
 
double speedFactor (double delta)
 
void getHandWorldPosition (float *, float *, float *)
 
float getPhi (float relCoord1, float width1)
 
float getPhiZHori (float x2, float x1, float y2, float widthY, float widthX)
 
float getPhiZVerti (float y2, float y1, float x2, float widthX, float widthY)
 
void makeRotate (float heading, float pitch, float roll, int headingBool, int pitchBool, int rollBool)
 
void disableRotationPoint ()
 
void disableRotationAxis ()
 
bool getRotationPointActive ()
 
bool getRotationAxisAcitve ()
 
void setRotationPoint (float x, float y, float z, float size=1.f)
 
void setRotationPointVisible (bool visible)
 
osg::Vec3 getRotationPoint ()
 
void setRotationAxis (float x, float y, float z)
 
void setTranslateFactor (float f)
 
void setShowName (bool on)
 
- Public Member Functions inherited from vrui::coMenuListener
virtual ~coMenuListener ()
 
virtual void menuPressEvent (coMenuItem *menuItem)
 
virtual void menuReleaseEvent (coMenuItem *menuItem)
 

Static Public Member Functions

static coVRNavigationManagerinstance ()
 
static void xformCallback (void *mgr, buttonSpecCell *spec)
 
static void xformRotateCallback (void *mgr, buttonSpecCell *spec)
 
static void xformTranslateCallback (void *mgr, buttonSpecCell *spec)
 
static void scaleCallback (void *mgr, buttonSpecCell *spec)
 
static void collideCallback (void *mgr, buttonSpecCell *spec)
 
static void walkCallback (void *mgr, buttonSpecCell *spec)
 
static void driveCallback (void *mgr, buttonSpecCell *spec)
 
static void flyCallback (void *mgr, buttonSpecCell *spec)
 
static void driveSpeedCallback (void *mgr, buttonSpecCell *spec)
 
static void snapCallback (void *mgr, buttonSpecCell *spec)
 
static void showNameCallback (void *mgr, buttonSpecCell *spec)
 
static void measureCallback (void *mgr, buttonSpecCell *spec)
 
static void traverseInteractorsCallback (void *mgr, buttonSpecCell *spec)
 
static void menuCallback (void *mgr, buttonSpecCell *spec)
 

Public Attributes

float AnalogX
 
float AnalogY
 

Member Enumeration Documentation

Enumerator
NavNone 
XForm 
Scale 
Fly 
Glide 
Walk 
ShowName 
XFormRotate 
XFormTranslate 
TraverseInteractors 
Menu 
Measure 

Constructor & Destructor Documentation

opencover::coVRNavigationManager::coVRNavigationManager ( )
opencover::coVRNavigationManager::~coVRNavigationManager ( )

Member Function Documentation

void opencover::coVRNavigationManager::adjustFloorHeight ( )
bool opencover::coVRNavigationManager::avoidCollision ( osg::Vec3 &  glideVec)
static void opencover::coVRNavigationManager::collideCallback ( void *  mgr,
buttonSpecCell spec 
)
static
void opencover::coVRNavigationManager::disableRotationAxis ( )
inline
void opencover::coVRNavigationManager::disableRotationPoint ( )
inline
void opencover::coVRNavigationManager::doDrive ( )
void opencover::coVRNavigationManager::doFly ( )
void opencover::coVRNavigationManager::doGuiRotate ( float  x,
float  y,
float  z 
)
void opencover::coVRNavigationManager::doGuiScale ( float  scale)
void opencover::coVRNavigationManager::doGuiTranslate ( float  x,
float  y,
float  z 
)
void opencover::coVRNavigationManager::doMeasure ( )
void opencover::coVRNavigationManager::doMouseFly ( )
void opencover::coVRNavigationManager::doMouseScale ( )
void opencover::coVRNavigationManager::doMouseWalk ( )
void opencover::coVRNavigationManager::doMouseXform ( )
void opencover::coVRNavigationManager::doScale ( )
void opencover::coVRNavigationManager::doScale ( float  )
void opencover::coVRNavigationManager::doShowName ( )
void opencover::coVRNavigationManager::doWalk ( )
void opencover::coVRNavigationManager::doWalkMoveToFloor ( )
void opencover::coVRNavigationManager::doXform ( )
void opencover::coVRNavigationManager::doXformRotate ( )
void opencover::coVRNavigationManager::doXformTranslate ( )
static void opencover::coVRNavigationManager::driveCallback ( void *  mgr,
buttonSpecCell spec 
)
static
static void opencover::coVRNavigationManager::driveSpeedCallback ( void *  mgr,
buttonSpecCell spec 
)
static
void opencover::coVRNavigationManager::enableDegreeSnapping ( bool  enable,
float  degree 
)
void opencover::coVRNavigationManager::enableSnapping ( bool  enable)
void opencover::coVRNavigationManager::enableViewerPosRotation ( bool  b)
inline
static void opencover::coVRNavigationManager::flyCallback ( void *  mgr,
buttonSpecCell spec 
)
static
bool opencover::coVRNavigationManager::getCollision ( )
inline
float opencover::coVRNavigationManager::getDriveSpeed ( )
void opencover::coVRNavigationManager::getHandWorldPosition ( float *  ,
float *  ,
float *   
)
NavMode opencover::coVRNavigationManager::getMode ( )
inline
float opencover::coVRNavigationManager::getPhi ( float  relCoord1,
float  width1 
)
float opencover::coVRNavigationManager::getPhiZHori ( float  x2,
float  x1,
float  y2,
float  widthY,
float  widthX 
)
float opencover::coVRNavigationManager::getPhiZVerti ( float  y2,
float  y1,
float  x2,
float  widthX,
float  widthY 
)
bool opencover::coVRNavigationManager::getRotationAxisAcitve ( )
inline
osg::Vec3 opencover::coVRNavigationManager::getRotationPoint ( )
inline
bool opencover::coVRNavigationManager::getRotationPointActive ( )
inline
float opencover::coVRNavigationManager::getStepSize ( ) const
void opencover::coVRNavigationManager::highlightSelectedNode ( osg::Node *  selectedNode)
static coVRNavigationManager* opencover::coVRNavigationManager::instance ( )
static
bool opencover::coVRNavigationManager::isDegreeSnapping ( ) const
bool opencover::coVRNavigationManager::isNavigationEnabled ( )
inline
bool opencover::coVRNavigationManager::isSnapping ( ) const
bool opencover::coVRNavigationManager::isViewerPosRotationEnabled ( )
inline
bool opencover::coVRNavigationManager::keyEvent ( int  type,
int  keySym,
int  mod 
)
void opencover::coVRNavigationManager::makeRotate ( float  heading,
float  pitch,
float  roll,
int  headingBool,
int  pitchBool,
int  rollBool 
)
static void opencover::coVRNavigationManager::measureCallback ( void *  mgr,
buttonSpecCell spec 
)
static
static void opencover::coVRNavigationManager::menuCallback ( void *  mgr,
buttonSpecCell spec 
)
static
bool opencover::coVRNavigationManager::mouseEvent ( int  type,
int  state,
int  code 
)
bool opencover::coVRNavigationManager::mouseNav ( )
inline
void opencover::coVRNavigationManager::processHotKeys ( int  keymask)
int opencover::coVRNavigationManager::readConfigFile ( )
void opencover::coVRNavigationManager::saveCurrentBaseMatAsOldBaseMat ( )
static void opencover::coVRNavigationManager::scaleCallback ( void *  mgr,
buttonSpecCell spec 
)
static
void opencover::coVRNavigationManager::setDriveSpeed ( float  speed)
void opencover::coVRNavigationManager::setHandType ( int  pt)
void opencover::coVRNavigationManager::setMenuMode ( bool  state)
void opencover::coVRNavigationManager::setMode ( NavMode  mode)
void opencover::coVRNavigationManager::setNavMode ( NavMode  mode)
void opencover::coVRNavigationManager::setOldNavMode ( )
inline
void opencover::coVRNavigationManager::setRotationAxis ( float  x,
float  y,
float  z 
)
void opencover::coVRNavigationManager::setRotationPoint ( float  x,
float  y,
float  z,
float  size = 1.f 
)
void opencover::coVRNavigationManager::setRotationPointVisible ( bool  visible)
void opencover::coVRNavigationManager::setShowName ( bool  on)
inline
void opencover::coVRNavigationManager::setStepSize ( float  stepsize)
void opencover::coVRNavigationManager::setTranslateFactor ( float  f)
inline
static void opencover::coVRNavigationManager::showNameCallback ( void *  mgr,
buttonSpecCell spec 
)
static
static void opencover::coVRNavigationManager::snapCallback ( void *  mgr,
buttonSpecCell spec 
)
static
float opencover::coVRNavigationManager::snappingDegrees ( ) const
double opencover::coVRNavigationManager::speedFactor ( double  delta)
void opencover::coVRNavigationManager::startDrive ( )
void opencover::coVRNavigationManager::startFly ( )
void opencover::coVRNavigationManager::startMeasure ( )
void opencover::coVRNavigationManager::startMouseNav ( )
void opencover::coVRNavigationManager::startScale ( )
void opencover::coVRNavigationManager::startShowName ( )
void opencover::coVRNavigationManager::startWalk ( )
void opencover::coVRNavigationManager::startXform ( )
void opencover::coVRNavigationManager::stopDrive ( )
void opencover::coVRNavigationManager::stopFly ( )
void opencover::coVRNavigationManager::stopMeasure ( )
void opencover::coVRNavigationManager::stopMouseNav ( )
void opencover::coVRNavigationManager::stopScale ( )
void opencover::coVRNavigationManager::stopShowName ( )
void opencover::coVRNavigationManager::stopWalk ( )
void opencover::coVRNavigationManager::stopXform ( )
void opencover::coVRNavigationManager::toggleAxis ( bool  state)
void opencover::coVRNavigationManager::toggleCollide ( bool  state)
void opencover::coVRNavigationManager::toggleFly ( bool  state)
void opencover::coVRNavigationManager::toggleGlide ( bool  state)
void opencover::coVRNavigationManager::toggleInteractors ( bool  state)
void opencover::coVRNavigationManager::toggleMeasure ( bool  state)
void opencover::coVRNavigationManager::toggleMenu ( )
void opencover::coVRNavigationManager::toggleScale ( bool  state)
void opencover::coVRNavigationManager::toggleShowName ( bool  state)
void opencover::coVRNavigationManager::toggleWalk ( bool  state)
void opencover::coVRNavigationManager::toggleXform ( bool  state)
void opencover::coVRNavigationManager::toggleXformRotate ( bool  state)
void opencover::coVRNavigationManager::toggleXformTranslate ( bool  state)
static void opencover::coVRNavigationManager::traverseInteractorsCallback ( void *  mgr,
buttonSpecCell spec 
)
static
void opencover::coVRNavigationManager::update ( )
void opencover::coVRNavigationManager::updateHandMat ( osg::Matrix &  mat)
static void opencover::coVRNavigationManager::walkCallback ( void *  mgr,
buttonSpecCell spec 
)
static
void opencover::coVRNavigationManager::wasJumping ( )
static void opencover::coVRNavigationManager::xformCallback ( void *  mgr,
buttonSpecCell spec 
)
static
static void opencover::coVRNavigationManager::xformRotateCallback ( void *  mgr,
buttonSpecCell spec 
)
static
static void opencover::coVRNavigationManager::xformTranslateCallback ( void *  mgr,
buttonSpecCell spec 
)
static

Member Data Documentation

float opencover::coVRNavigationManager::AnalogX
float opencover::coVRNavigationManager::AnalogY

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