vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Auxiliary.h File Reference
#include <vrecko/Ability.h>
#include <vreckoDP/base/PHANToM.h>
#include <osg/Timer>
#include <osg/Vec3>

Go to the source code of this file.

Namespaces

namespace  VirtualFixture
 

Macros

#define MAXFORCE   7.0
 
#define SMOOTHING_RADIUS   0.05
 
#define MINF   0.1
 
#define MULTIPLIER   1.0
 
#define ADDITIONX   0.0
 
#define ADDITIONY   0.0
 
#define ADDITIONZ   0.0
 
#define WSXMIN   -0.24 * MULTIPLIER + ADDITIONX
 
#define WSXMAX   0.24 * MULTIPLIER + ADDITIONX
 
#define WSYMIN   -0.10 * MULTIPLIER + ADDITIONY
 
#define WSYMAX   0.39 * MULTIPLIER + ADDITIONY
 
#define WSZMIN   -0.12 * MULTIPLIER + ADDITIONZ
 
#define WSZMAX   0.16 * MULTIPLIER + ADDITIONZ
 
#define ZEROXDISTANCE   0 * MULTIPLIER + ADDITIONX
 
#define ZEROYDISTANCE   0.14 * MULTIPLIER + ADDITIONY
 
#define ZEROZDISTANCE   -0.13 * MULTIPLIER + ADDITIONZ
 
#define MINBORDERRADIUS   0.13 * MULTIPLIER
 
#define MAXBORDERRADIUS   0.24 * MULTIPLIER
 

Functions

osg::Vec3 VirtualFixture::ControlActualPositionReturnCleanPosition (osg::Vec3 Actual)
 
bool VirtualFixture::ControlActualPosition (osg::Vec3 Actual)
 
osg::Vec3 VirtualFixture::Vibrate (float frequency, float amplitude, osg::Vec3 direction)
 
osg::Vec3 VirtualFixture::ForceTransformFunction (float maxforce, osg::Vec3 force)
 
float VirtualFixture::SmoothEnding (float t)
 

Variables

osg::Timer VirtualFixture::timer
 

Macro Definition Documentation

#define ADDITIONX   0.0
#define ADDITIONY   0.0
#define ADDITIONZ   0.0
#define MAXBORDERRADIUS   0.24 * MULTIPLIER
#define MAXFORCE   7.0
#define MINBORDERRADIUS   0.13 * MULTIPLIER
#define MINF   0.1
#define MULTIPLIER   1.0
#define SMOOTHING_RADIUS   0.05
#define WSXMAX   0.24 * MULTIPLIER + ADDITIONX
#define WSXMIN   -0.24 * MULTIPLIER + ADDITIONX
#define WSYMAX   0.39 * MULTIPLIER + ADDITIONY
#define WSYMIN   -0.10 * MULTIPLIER + ADDITIONY
#define WSZMAX   0.16 * MULTIPLIER + ADDITIONZ
#define WSZMIN   -0.12 * MULTIPLIER + ADDITIONZ
#define ZEROXDISTANCE   0 * MULTIPLIER + ADDITIONX
#define ZEROYDISTANCE   0.14 * MULTIPLIER + ADDITIONY
#define ZEROZDISTANCE   -0.13 * MULTIPLIER + ADDITIONZ