SignOTModule Class Reference

#include <SignOTModule.h>

Collaboration diagram for SignOTModule:

Collaboration graph
[legend]
List of all members.

Detailed Description

OpenTracker module to control SIGN OpenTracker nodes.

Author:
Eigil Samset


Public Member Functions

 SignOTModule ()
virtual ~SignOTModule ()
int getMaxStationNumber ()
ot::Node * createNode (const std::string &name, ot::StringTable &attributes)
ot::Context * getContext ()
bool isEventEnabled (int which)
const char * getFilename ()
void SetSignContext (SignContext *sp)
SignImageSinkfindImageSink (std::string name)
SignOTSinkfindOTSink (std::string name)
SignOTSourcefindSource (std::string name)
void AddSource (SignOTSource *source, std::string name)
void pushEvent ()
void pullEvent ()
 generates a dummy event if no event has been received in the last second
void SetTracker (std::string name, std::vector< float > pos, std::vector< float > quat)
void SetTracker (std::string name, ot::Event *event)
void SetPlane (std::string name, std::string plane)
void SetDelay (double delay)
SinkMapGetOTSinkMap ()
void AddVirtualTransform (double tx, double ty, double tz)

Protected Attributes

int isActive
 flag whether tracker is active or not
SinkMap imageSinkMap
 list of StbSink nodes
SinkMap otSinkMap
SinkMap ecgSinkMap
SourceMap sourceMap
 list of StbSink nodes
ot::Context context
 Actual Context doing most of the work.
int maximum
 maximum defined station number
std::string filename
 filename of configuration file

Friends

class SignOTSink
class SignOTSource


Constructor & Destructor Documentation

SignOTModule::SignOTModule  ) 
 

SignOTModule::~SignOTModule  )  [virtual]
 

destructor deposes of any data structures.


Member Function Documentation

void SignOTModule::AddSource SignOTSource source,
std::string  name
 

void SignOTModule::AddVirtualTransform double  tx,
double  ty,
double  tz
 

Node * SignOTModule::createNode const std::string &  name,
ot::StringTable &  attributes
 

creates a new node

Parameters:
name the name of the element
attributes StringMap containing the attribute values
Returns:
a new node or NULL

SignImageSink * SignOTModule::findImageSink std::string  name  ) 
 

SignOTSink * SignOTModule::findOTSink std::string  name  ) 
 

SignOTSource * SignOTModule::findSource std::string  name  ) 
 

Context * SignOTModule::getContext  ) 
 

for extended use of the OpenTracker data return a pointer to the OpenTracker Context here.

Returns:
pointer to Context

const char * SignOTModule::getFilename  ) 
 

returns filename of configuration file

Returns:
filename of configuration file

int SignOTModule::getMaxStationNumber  ) 
 

returns the maximal number of stations available.

SinkMap * SignOTModule::GetOTSinkMap  ) 
 

bool SignOTModule::isEventEnabled int  which  ) 
 

returns whether a certain station should emit events or not. This subclass of Tracker actually implements this method.

Parameters:
which the number of the station to get information about
Returns:
0 if no events should be generated, 1 otherwise.

void SignOTModule::pullEvent  ) 
 

generates a dummy event if no event has been received in the last second

void SignOTModule::pushEvent  ) 
 

void SignOTModule::SetDelay double  delay  ) 
 

void SignOTModule::SetPlane std::string  name,
std::string  plane
 

void SignOTModule::SetSignContext SignContext sp  ) 
 

void SignOTModule::SetTracker std::string  name,
ot::Event *  event
 

void SignOTModule::SetTracker std::string  name,
std::vector< float >  pos,
std::vector< float >  quat
 


Friends And Related Function Documentation

friend class SignOTSink [friend]
 

friend class SignOTSource [friend]
 


Member Data Documentation

ot::Context SignOTModule::context [protected]
 

Actual Context doing most of the work.

SinkMap SignOTModule::ecgSinkMap [protected]
 

std::string SignOTModule::filename [protected]
 

filename of configuration file

SinkMap SignOTModule::imageSinkMap [protected]
 

list of StbSink nodes

int SignOTModule::isActive [protected]
 

flag whether tracker is active or not

int SignOTModule::maximum [protected]
 

maximum defined station number

SinkMap SignOTModule::otSinkMap [protected]
 

SourceMap SignOTModule::sourceMap [protected]
 

list of StbSink nodes


The documentation for this class was generated from the following files:
Generated on Mon Feb 26 12:13:23 2007 for TheSIGN by  doxygen 1.4.6