div class="twikiTopBar">

Chair for Computer Aided Medical Procedures & Augmented Reality
Lehrstuhl für Informatikanwendungen in der Medizin & Augmented Reality

DWARF::ContinuousPoseService Class Reference
[Ubiquitous Tracking Environment]

PoseService delivers events at a constant update rate. More...

Inheritance diagram for DWARF::ContinuousPoseService:

Inheritance graph
[legend]
Collaboration diagram for DWARF::ContinuousPoseService:

Collaboration graph
[legend]

Public Member Functions

 ContinuousPoseService (const char *name)
 The default constructor.
 ~ContinuousPoseService ()
void run ()
 The main run method.
void setUpdate (int rate)
void setPoseData (EasyPoseData *pose)

Private Attributes

std::string m_name
int m_updateRate
EasyPoseDatam_pose

Detailed Description

PoseService delivers events at a constant update rate.

This is a concrete PoseService which delivers PoseData events at a constant update rate.

Author:
Martin Wagner <wagnerm@in.tum.de>

Franz Strasser <strassef@in.tum.de>

Definition at line 41 of file ContinuousPoseService.h.


Constructor & Destructor Documentation

ContinuousPoseService::ContinuousPoseService const char *  name  ) 
 

The default constructor.

Parameters:
name A name for the generated object

Definition at line 28 of file ContinuousPoseService.cpp.

DWARF::ContinuousPoseService::~ContinuousPoseService  )  [inline]
 

The default destructor

Definition at line 78 of file ContinuousPoseService.h.


Member Function Documentation

void ContinuousPoseService::run  )  [virtual]
 

The main run method.

In this loop, every m_updateRate milliseconds every managed PoseSender sends an event.

Implements DWARF::PoseService.

Definition at line 43 of file ContinuousPoseService.cpp.

void DWARF::ContinuousPoseService::setPoseData EasyPoseData pose  )  [inline]
 

Sets the pointer to the PoseData structure which should be sent

Definition at line 92 of file ContinuousPoseService.h.

void ContinuousPoseService::setUpdate int  rate  ) 
 

Sets a new update rate

Definition at line 118 of file ContinuousPoseService.cpp.


Field Documentation

std::string DWARF::ContinuousPoseService::m_name [private]
 

The service's name

Reimplemented from DWARF::PoseService.

Definition at line 45 of file ContinuousPoseService.h.

EasyPoseData* DWARF::ContinuousPoseService::m_pose [private]
 

The pointer to the PoseData which should be sent

Definition at line 65 of file ContinuousPoseService.h.

int DWARF::ContinuousPoseService::m_updateRate [private]
 

The internal update rate

Definition at line 48 of file ContinuousPoseService.h.

DWARF::ContinuousPoseService Class Reference | generated on Sun Apr 29 02:02:03 2007 by Doxygen 1.4.1 for DWARF