CWiidMotionReceiver Class Reference
[Main program]

Implementation of AbstractMotionReceiver. More...

#include <CWiidMotionReceiver.h>

Inheritance diagram for CWiidMotionReceiver:

Inheritance graph
[legend]
Collaboration diagram for CWiidMotionReceiver:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CWiidMotionReceiver ()
virtual ~CWiidMotionReceiver ()
virtual void start () throw (Error)
virtual void run ()
virtual void stop ()
void setAddr (const std::string a)
const std::string getAddr () const


Detailed Description

Implementation of AbstractMotionReceiver.

Receives motion data from a wiimote using the CWiid library

Definition at line 15 of file CWiidMotionReceiver.h.


Constructor & Destructor Documentation

CWiidMotionReceiver::CWiidMotionReceiver (  ) 

Initializes member variables

Definition at line 6 of file CWiidMotionReceiver.cpp.

CWiidMotionReceiver::~CWiidMotionReceiver (  )  [virtual]

Calles stop if necessary

Definition at line 11 of file CWiidMotionReceiver.cpp.


Member Function Documentation

const std::string CWiidMotionReceiver::getAddr (  )  const [inline]

Returns:
current wiimote mac-address

Definition at line 51 of file CWiidMotionReceiver.h.

void CWiidMotionReceiver::run (  )  [virtual]

Receives and handles motion and button-events. If the user presses the A-Button on his wiimote, run is stopped.

Implements AbstractMotionReceiver.

Definition at line 49 of file CWiidMotionReceiver.cpp.

void CWiidMotionReceiver::setAddr ( const std::string  a  )  [inline]

Set mac-address of the wiimote.

Parameters:
a Address string of format: XX:XX:XX:XX:XX:XX where X is a hexadecimal number. If a is 00:00:00:00:00:00 cwiid will search for a wiimote

Definition at line 47 of file CWiidMotionReceiver.h.

void CWiidMotionReceiver::start (  )  throw (Error) [virtual]

Connects to the wiimote and receives calibration data. Throws Error if anything goes wrong

Implements AbstractMotionReceiver.

Definition at line 16 of file CWiidMotionReceiver.cpp.

void CWiidMotionReceiver::stop (  )  [virtual]

Stops run and deinitalizes cwiid

Implements AbstractMotionReceiver.

Definition at line 39 of file CWiidMotionReceiver.cpp.


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

Generated on Sun Nov 30 23:45:40 2008 for Modular Motion Processor by  doxygen 1.5.7.1