SignOTSink Class Reference

#include <SignOTSink.h>

Inheritance diagram for SignOTSink:

Inheritance graph
[legend]
Collaboration diagram for SignOTSink:

Collaboration graph
[legend]
List of all members.

Detailed Description

OpenTracker sink.

SignOTSink is the main class interface between tracking devices and The SIGN.

Author:
Eigil Samset


Public Member Functions

 vtkTypeRevisionMacro (SignOTSink, SignSink)
virtual void PrintSelf (ostream &os, vtkIndent indent)
double GetNormal (int i)
void GetNormal (double *orient)
double GetPosition (int i)
void GetPosition (double *pos)
vtkTransform * GetTransform ()
 Returns the current user transform.
float GetConfidence ()
void SetDist (float d)
float GetDist ()
virtual int isEventGenerator ()
virtual void onEventGenerated (ot::Event &event, ot::Node &generator)
void setSignContext (SignContext *sp)
 Sets the current SIGN context.
SignContextGetSignContext ()
 Returns the current SIGN context.

Static Public Member Functions

static SignOTSinkNew ()

Public Attributes

int events
 event enabled or not

Protected Member Functions

 SignOTSink ()
 Constructor.
 ~SignOTSink ()
 Destructor.
 SignOTSink (const SignOTSink &)
void operator= (const SignOTSink &)

Friends

class SignOTModule


Constructor & Destructor Documentation

SignOTSink::SignOTSink  )  [protected]
 

Constructor.

SignOTSink::~SignOTSink  )  [protected]
 

Destructor.

SignOTSink::SignOTSink const SignOTSink  )  [protected]
 


Member Function Documentation

float SignOTSink::GetConfidence  ) 
 

Returns the current confidence

Returns:
confidence between 0.0 and 1.0

float SignOTSink::GetDist  ) 
 

void SignOTSink::GetNormal double *  orient  ) 
 

Returns the normal vector of the current orientation

Parameters:
orient double[3] array to store orientation

double SignOTSink::GetNormal int  i  ) 
 

Returns the normal vector of the current orientation

Parameters:
i requested component of the normal vector

void SignOTSink::GetPosition double *  pos  ) 
 

Returns the current position

Parameters:
pos double[3] array to store position

double SignOTSink::GetPosition int  i  ) 
 

Returns the current position

Parameters:
i requested component of the position vector

SignContext* SignOTSink::GetSignContext  )  [inline]
 

Returns the current SIGN context.

vtkTransform * SignOTSink::GetTransform  )  [virtual]
 

Returns the current user transform.

Reimplemented from SignSink.

int SignOTSink::isEventGenerator  )  [virtual]
 

tests for EventGenerator interface being present. Is overriden to return 1 always.

Returns:
always 1

static SignOTSink* SignOTSink::New  )  [static]
 

void SignOTSink::onEventGenerated ot::Event &  event,
ot::Node &  generator
[virtual]
 

this method notifies the object that a new event was generated. It stores a copy of the received event and passes the event on to its observers.

Parameters:
event reference to the new event. Do not change the event values, make a copy and change that !
generator reference to the EventGenerator object that notified the EventObserver.

void SignOTSink::operator= const SignOTSink  )  [protected]
 

void SignOTSink::PrintSelf ostream &  os,
vtkIndent  indent
[virtual]
 

void SignOTSink::SetDist float  d  ) 
 

void SignOTSink::setSignContext SignContext sp  ) 
 

Sets the current SIGN context.

SignOTSink::vtkTypeRevisionMacro SignOTSink  ,
SignSink 
 


Friends And Related Function Documentation

friend class SignOTModule [friend]
 


Member Data Documentation

int SignOTSink::events
 

event enabled or not


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