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

Motion trails creator tool. More...

#include <MTCreatorTool.h>

Inheritance diagram for MTCreatorTool:

Public Member Functions

 MTCreatorTool (int sensorNumber)
 
 ~MTCreatorTool ()
 
void activate ()
 
void deactivate ()
 
std::vector< DASample > * getSamples ()
 Create copy of stored data, clear internal copy and return pointer to new copy. More...
 
void postInitialize (void)
 
void processEvent (const std::string &input_name, void *value)
 
void turnOn ()
 
void turnOff ()
 
void update ()
 

Protected Attributes

int sensorNumber
 number of optitrack sensor (trackable in TrackingTools) More...
 
string posString
 "SensorXPosition" where X is sensor number More...
 
string oriString
 "SensorXOrientation" where X is sensor number More...
 
EnvironmentObjectDAArea
 owner of this ability More...
 
osg::Vec3 position
 last known position More...
 
osg::Quat orientation
 last known orientation More...
 
osg::Vec3 DAAposition
 for transformations to local coords More...
 
osg::Quat DAAOrientation
 for transformations to local coords More...
 
osg::Vec3 DAAScale
 for transformations to local coords More...
 
bool newPosition
 flags for ensuring correct position+orientation pairing More...
 
bool newOrientation
 
std::vector< DASample > * samples
 samples - position+orientation pairs More...
 

Detailed Description

Motion trails creator tool.

Track data from one Optitrack sensor, transform them into local coordinate system (of DA area) and store it. Motion trail PoA pop stored data by calling getSamples() function.

Constructor & Destructor Documentation

MTCreatorTool::MTCreatorTool ( int  sensorNumber)
MTCreatorTool::~MTCreatorTool ( )

Member Function Documentation

void MTCreatorTool::activate ( )
void MTCreatorTool::deactivate ( )
std::vector<DASample>* MTCreatorTool::getSamples ( )

Create copy of stored data, clear internal copy and return pointer to new copy.

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

Member Data Documentation

osg::Quat MTCreatorTool::DAAOrientation
protected

for transformations to local coords

osg::Vec3 MTCreatorTool::DAAposition
protected

for transformations to local coords

EnvironmentObject* MTCreatorTool::DAArea
protected

owner of this ability

osg::Vec3 MTCreatorTool::DAAScale
protected

for transformations to local coords

bool MTCreatorTool::newOrientation
protected
bool MTCreatorTool::newPosition
protected

flags for ensuring correct position+orientation pairing

osg::Quat MTCreatorTool::orientation
protected

last known orientation

string MTCreatorTool::oriString
protected

"SensorXOrientation" where X is sensor number

osg::Vec3 MTCreatorTool::position
protected

last known position

string MTCreatorTool::posString
protected

"SensorXPosition" where X is sensor number

std::vector<DASample>* MTCreatorTool::samples
protected

samples - position+orientation pairs

int MTCreatorTool::sensorNumber
protected

number of optitrack sensor (trackable in TrackingTools)


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