OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::UbisenseSource Class Reference
[Device Input Classes]

A UbisenseSource represents a single Ubisense object that is tracked by the Ubisense library. More...

#include <UbisenseSource.h>

Inheritance diagram for ot::UbisenseSource:

Inheritance graph
[legend]
Collaboration diagram for ot::UbisenseSource:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

 UbisenseSource (const Object &object, const LocationClient &locationClient, DataClient &dataClient)
virtual ~UbisenseSource ()
virtual int isEventGenerator ()
const Object & getObject () const
bool calcEvent ()
EventgetEvent ()
void setButtonEvent (unsigned short, double)

Private Attributes

friend UbisenseModule
unsigned short button
double lastTime
double buttonTime
Event event
const Object object
const LocationClient & locationClient
DataClient & dataClient

Detailed Description

A UbisenseSource represents a single Ubisense object that is tracked by the Ubisense library.

Definition at line 79 of file UbisenseSource.h.


Constructor & Destructor Documentation

ot::UbisenseSource::UbisenseSource ( const Object &  object,
const LocationClient &  locationClient,
DataClient &  dataClient 
) [protected]

constructor method

Parameters:
object the Ubisense object to track
locationClient a Ubisense LocationClient instance
dataClient a Ubisense DataClient instance

Definition at line 56 of file UbisenseSource.cxx.

ot::UbisenseSource::~UbisenseSource (  )  [protected, virtual]

destructor method

Definition at line 64 of file UbisenseSource.cxx.

References dataClient, and object.


Member Function Documentation

bool ot::UbisenseSource::calcEvent (  )  [protected]

Event& ot::UbisenseSource::getEvent (  )  [inline, protected]

Definition at line 105 of file UbisenseSource.h.

const Object& ot::UbisenseSource::getObject (  )  const [inline, protected]

Definition at line 101 of file UbisenseSource.h.

virtual int ot::UbisenseSource::isEventGenerator (  )  [inline, protected, virtual]

tests for EventGenerator interface being present.

Is overriden to return 1 always.

Returns:
always 1

Reimplemented from ot::Node.

Definition at line 99 of file UbisenseSource.h.

void ot::UbisenseSource::setButtonEvent ( unsigned  short,
double   
) [protected]

Definition at line 127 of file UbisenseSource.cxx.

References button, and buttonTime.


Member Data Documentation

unsigned short ot::UbisenseSource::button [private]

Definition at line 111 of file UbisenseSource.h.

Referenced by calcEvent(), and setButtonEvent().

Definition at line 112 of file UbisenseSource.h.

Referenced by calcEvent(), and setButtonEvent().

DataClient& ot::UbisenseSource::dataClient [private]

Definition at line 116 of file UbisenseSource.h.

Referenced by ~UbisenseSource().

Definition at line 113 of file UbisenseSource.h.

Referenced by calcEvent().

double ot::UbisenseSource::lastTime [private]

Definition at line 112 of file UbisenseSource.h.

Referenced by calcEvent().

const LocationClient& ot::UbisenseSource::locationClient [private]

Definition at line 115 of file UbisenseSource.h.

Referenced by calcEvent().

const Object ot::UbisenseSource::object [private]

Definition at line 114 of file UbisenseSource.h.

Referenced by calcEvent(), and ~UbisenseSource().

Definition at line 81 of file UbisenseSource.h.


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

copyright (c) 2006 Graz University of Technology