vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MagicWandTool Class Reference

#include <MagicWandTool.h>

Inheritance diagram for MagicWandTool:

Public Member Functions

 MagicWandTool (Controller *contr)
 
 ~MagicWandTool ()
 
void activate ()
 
void deactivate ()
 
void postInitialize (void)
 
void processEvent (const std::string &input_name, void *value)
 
void turnOn ()
 
void turnOff ()
 

Protected Attributes

int sensorNumber
 number of optitrack sensor (trackable in TrackingTools). Usually 0 (right hand) More...
 
std::string posString
 "Position_sensor_X" where X is sensor number More...
 
std::string PointerPosReqString
 request for (initial) position string More...
 
osg::ref_ptr< Attractor > attractor
 Attractor to be influenced by this tool. More...
 
bool dominantAxis
 dominant axis mode or free hand mode More...
 
osg::Vec3 originalHandposition
 
osg::Vec3 newHandPosition
 
double handMoveMin
 range of movement of hand - todo - may it differ in different axes? More...
 
double handMoveMax
 
osg::Vec3 paramRangeStart
 
osg::Vec3 paramRangeEnd
 
osg::Vec3 initialParamValue
 
osg::Vec3 paramShift1
 
osg::Vec3 paramShift2
 
osg::Vec3 paramMult
 
int indexX
 index of parameter infuenced by movement in X axis More...
 
int indexY
 index of parameter infuenced by movement in Y axis More...
 
int indexZ
 index of parameter infuenced by movement in Z axis More...
 
Controller * controller
 
int originalIterations
 
int lastDominantAxis
 

Constructor & Destructor Documentation

MagicWandTool::MagicWandTool ( Controller *  contr)
MagicWandTool::~MagicWandTool ( )

Member Function Documentation

void MagicWandTool::activate ( )

This tool requeres calling setDAEnvironment() before activation

Todo:

< index of parameter infuenced by movement in X axis

void MagicWandTool::deactivate ( )
void MagicWandTool::postInitialize ( void  )
void MagicWandTool::processEvent ( const std::string &  input_name,
void *  value 
)
void MagicWandTool::turnOff ( void  )
void MagicWandTool::turnOn ( )

Member Data Documentation

osg::ref_ptr<Attractor> MagicWandTool::attractor
protected

Attractor to be influenced by this tool.

Controller* MagicWandTool::controller
protected
bool MagicWandTool::dominantAxis
protected

dominant axis mode or free hand mode

double MagicWandTool::handMoveMax
protected
double MagicWandTool::handMoveMin
protected

range of movement of hand - todo - may it differ in different axes?

int MagicWandTool::indexX
protected

index of parameter infuenced by movement in X axis

int MagicWandTool::indexY
protected

index of parameter infuenced by movement in Y axis

int MagicWandTool::indexZ
protected

index of parameter infuenced by movement in Z axis

osg::Vec3 MagicWandTool::initialParamValue
protected
int MagicWandTool::lastDominantAxis
protected
osg::Vec3 MagicWandTool::newHandPosition
protected
osg::Vec3 MagicWandTool::originalHandposition
protected
int MagicWandTool::originalIterations
protected
osg::Vec3 MagicWandTool::paramMult
protected
osg::Vec3 MagicWandTool::paramRangeEnd
protected
osg::Vec3 MagicWandTool::paramRangeStart
protected
osg::Vec3 MagicWandTool::paramShift1
protected
osg::Vec3 MagicWandTool::paramShift2
protected
std::string MagicWandTool::PointerPosReqString
protected

request for (initial) position string

std::string MagicWandTool::posString
protected

"Position_sensor_X" where X is sensor number

int MagicWandTool::sensorNumber
protected

number of optitrack sensor (trackable in TrackingTools). Usually 0 (right hand)


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