ALBA
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
albaDeviceTrackerWIIMote Class Reference

#include <albaDeviceTrackerWIIMote.h>

Inheritance diagram for albaDeviceTrackerWIIMote:
Inheritance graph
[legend]
Collaboration diagram for albaDeviceTrackerWIIMote:
Collaboration graph
[legend]

Public Member Functions

 albaTypeMacro (albaDeviceTrackerWIIMote, albaDeviceButtonsPadTracker)
 
- Public Member Functions inherited from albaDeviceButtonsPadTracker
 albaTypeMacro (albaDeviceButtonsPadTracker, albaDeviceButtonsPad)
 
virtual void OnEvent (albaEventBase *event)
 
void SetLastPoseMatrix (const albaMatrix &matrix)
 
albaMatrixGetLastPoseMatrix ()
 
void SetMoveEventTimeOut (albaTimeStamp t)
 
albaTimeStamp GetMoveEventTimeOut ()
 
void SetTrackerToCanonicalTransform (albaTransform *trans)
 
albaTransformGetTrackerToCanonicalTransform ()
 
void TrackerToCanonical (const albaMatrix &pose, albaMatrix &dest)
 
void TrackerToCanonical (albaMatrix &pose)
 
void TrackerToCanonical (albaTransform *trans)
 
void CanonicalToTracker (const albaMatrix &pose, albaMatrix &dest)
 
void CanonicalToTracker (albaMatrix &pose)
 
void CanonicalToTracker (albaTransform *trans)
 
void SetAvatar (albaAvatar *avatar)
 
albaAvatarGetAvatar ()
 
void SetDefaultAvatar (albaAvatar *avatar)
 
albaAvatarGetDefaultAvatar ()
 
void RestoreDefaultAvatar ()
 
void ComputeTrackerToCanonicalTansform ()
 
albaOBBGetCanonicalBounds ()
 
albaOBBGetTrackedBounds ()
 
double * GetTrackedBoxOrientation ()
 
double GetMax (double x, double y)
 
double GetMax3 (double x, double y, double z)
 
virtual void CreateGui ()
 
virtual void UpdateGui ()
 
- Public Member Functions inherited from albaDeviceButtonsPad
 albaTypeMacro (albaDeviceButtonsPad, albaDevice)
 
void SetButtonState (int num, bool value, unsigned long modifiers=0)
 
bool GetButtonState (int num)
 
int GetNumberOfButtons ()
 
void SetNumberOfButtons (int num)
 
- Public Member Functions inherited from albaDevice
 albaTypeMacro (albaDevice, albaAgentThreaded)
 
unsigned long GetID ()
 
void SetID (unsigned long id)
 
virtual void SetName (const char *name)
 
void SetAutoStart (bool flag)
 
bool GetAutoStart ()
 
void AutoStartOn ()
 
void AutoStartOff ()
 
virtual int Start ()
 
virtual void Stop ()
 
virtual int StartUp ()
 
void SetPersistentFlag (bool flag)
 
bool GetPersistentFlag ()
 
bool IsPersistent ()
 
albaGUIGetGui ()
 
virtual void UpdateGui ()
 
virtual void OnEvent (albaEventBase *event)
 
 ALBA_ID_DEC (DEVICE_STARTED)
 
 ALBA_ID_DEC (DEVICE_STOPPED)
 
- Public Member Functions inherited from albaAgentThreaded
 ALBA_ID_DEC (AGENT_ASYNC_DISPATCH)
 
 albaTypeMacro (albaAgentThreaded, albaAgentEventQueue)
 
int GetThreaded ()
 
void SetThreaded (int flag)
 
int Update ()
 
virtual void OnEvent (albaEventBase *event)
 
void AsyncSendEvent (albaObserver *target, albaEventBase *event, albaID channel=MCH_UP)
 
void AsyncSendEvent (albaObserver *target, void *sender, albaID id, albaID channel=MCH_UP, void *data=NULL)
 
void AsyncInvokeEvent (albaEventBase *event, albaID channel=MCH_UP)
 
void AsyncInvokeEvent (albaID id, albaID channel=MCH_UP, void *data=NULL)
 
- Public Member Functions inherited from albaAgentEventQueue
 ALBA_ID_DEC (EVENT_DISPATCH)
 
 albaTypeMacro (albaAgentEventQueue, albaAgent)
 
bool PushEvent (albaEventBase &event)
 
virtual bool PushEvent (albaEventBase *event)
 
bool PushEvent (albaID event_id, void *sender, void *data=NULL)
 
albaEventBasePeekEvent ()
 
albaEventBasePeekLastEvent ()
 
int GetQueueSize ()
 
bool IsQueueEmpty ()
 
virtual bool DispatchEvents ()
 
void SetDequeueMode (int mode)
 
int GetDequeueMode ()
 
void SetDequeueModeToMultipleEvent ()
 
void SetDequeueModeToSingleEvent ()
 
void SetDispatchMode (int mode)
 
int GetDispatchMode ()
 
void SetDispatchModeToSelfProcess ()
 
void SetDispatchModeToBroadcast ()
 
void SetPushMode (int mode)
 
int GetPushMode ()
 
void SetPushModeToDispatchEvent ()
 
void SetPushModeToPolling ()
 
- Public Member Functions inherited from albaAgent
 albaAbstractTypeMacro (albaAgent, albaReferenceCounted)
 
 ALBA_ID_DEC (AGENT_INITIALIZE)
 
void AddObserver (albaObserver *listener, albaID channel=MCH_UP)
 
void RemoveObserver (albaObserver *listener)
 
void RemoveAllObservers ()
 
virtual void OnEvent (albaEventBase *event)
 
bool HasObservers (albaID channel)
 
void GetObservers (albaID channel, std::vector< albaObserver * > &olist)
 
int Initialize ()
 
void Shutdown ()
 
int IsInitialized ()
 
virtual void SetName (const char *name)
 
const char * GetName ()
 
- Public Member Functions inherited from albaReferenceCounted
 albaReferenceCounted ()
 
virtual ~albaReferenceCounted ()
 
 albaAbstractTypeMacro (albaReferenceCounted, albaObject)
 
virtual void Delete ()
 
void Register (void *obj)
 
virtual void UnRegister (void *obj)
 
int GetReferenceCount ()
 
void SetReferenceCount (int)
 
- Public Member Functions inherited from albaObject
 albaObject ()
 
virtual ~albaObject ()
 
virtual void Delete ()
 
virtual const char * GetTypeName () const
 
virtual bool IsA (const char *type_name) const
 
virtual bool IsA (const albaTypeID &type_id) const
 
virtual albaObjectNewObjectInstance () const =0
 
virtual const albaTypeIDGetTypeId () const
 
virtual void Print (std::ostream &os, const int indent=0) const
 
 albaObject (const albaObject &c)
 
- Public Member Functions inherited from albaObserver
 albaObserver ()
 
virtual ~albaObserver ()
 
virtual void OnEvent (albaEventBase *e)=0
 
- Public Member Functions inherited from albaEventBroadcaster
 albaEventBroadcaster (void *owner=NULL)
 
virtual ~albaEventBroadcaster ()
 
 albaEventBroadcaster (const albaEventBroadcaster &c)
 
void AddObserver (albaObserver *obj)
 
void AddObserver (albaObserver &obj)
 
albaObserverCallbackAddObserverCallback (void(*f)(void *sender, albaID eid, void *clientdata, void *calldata))
 
bool RemoveObserver (albaObserver *obj)
 
void RemoveAllObservers ()
 
bool IsObserver (albaObserver *obj)
 
bool HasObservers ()
 
void GetObservers (std::vector< albaObserver * > &olist)
 
void InvokeEvent (albaEventBase &e)
 
void InvokeEvent (albaEventBase *e)
 
void InvokeEvent (void *sender, albaID id=ID_NO_EVENT, void *data=NULL)
 
void SetChannel (albaID ch)
 
albaID GetChannel ()
 
virtual void SetListener (albaObserver *o)
 
- Public Member Functions inherited from albaEventSender
 albaEventSender ()
 
virtual void SetListener (albaObserver *o)
 
virtual albaObserverGetListener ()
 
virtual bool HasListener ()
 
virtual void InvokeEvent (albaEventBase &e)
 
virtual void InvokeEvent (albaEventBase *e)
 
virtual void InvokeEvent (void *sender, albaID id=ID_NO_EVENT, void *data=NULL)
 
- Public Member Functions inherited from albaStorable
 albaStorable ()
 
int Store (albaStorageElement *element)
 
int Restore (albaStorageElement *element)
 
albaObjectCastToObject ()
 
bool IsStorable ()
 

Protected Member Functions

 albaDeviceTrackerWIIMote ()
 
virtual ~albaDeviceTrackerWIIMote ()
 
int InternalUpdate ()
 
virtual int InternalInitialize ()
 
virtual void InternalShutdown ()
 
void Calibration ()
 
void SetTranlationAndRotation (MotionData p)
 
- Protected Member Functions inherited from albaDeviceButtonsPadTracker
 albaDeviceButtonsPadTracker ()
 
virtual ~albaDeviceButtonsPadTracker ()
 
virtual int InternalStore (albaStorageElement *node)
 
virtual int InternalRestore (albaStorageElement *node)
 
virtual int InternalInitialize ()
 
virtual void InternalShutdown ()
 
virtual void SendButtonEvent (albaEventInteraction *event)
 
int AvatarChooser (wxString &avatar_name, wxString &avatar_type)
 
- Protected Member Functions inherited from albaDeviceButtonsPad
 albaDeviceButtonsPad ()
 
virtual ~albaDeviceButtonsPad ()
 
virtual void SendButtonEvent (albaEventInteraction *event)
 
int FlagCheck (bool event, bool &flag)
 
- Protected Member Functions inherited from albaDevice
 albaDevice ()
 
virtual ~albaDevice ()
 
virtual int InternalInitialize ()
 
virtual void CreateGui ()
 
virtual int InternalStore (albaStorageElement *node)
 
virtual int InternalRestore (albaStorageElement *node)
 
- Protected Member Functions inherited from albaAgentThreaded
 albaAgentThreaded ()
 
virtual ~albaAgentThreaded ()
 
virtual void RequestForDispatching ()
 
void StopThread ()
 
virtual int InternalInitialize ()
 
virtual void InternalShutdown ()
 
virtual int InternalUpdate ()
 
int GetActiveFlag ()
 
void SignalNewMessage ()
 
void WaitForNewMessage ()
 
- Protected Member Functions inherited from albaAgentEventQueue
 albaAgentEventQueue ()
 
virtual ~albaAgentEventQueue ()
 
albaEventBasePopEvent ()
 
int PopEvent (albaEventBase &event)
 
virtual int PopEvent (albaEventBase *&event)
 
bool GetDispatched ()
 
void SetDispatched (bool value=true)
 
virtual void RequestForDispatching ()
 
- Protected Member Functions inherited from albaAgent
 albaAgent ()
 
virtual ~albaAgent ()
 
virtual int InternalInitialize ()
 
virtual void InternalShutdown ()
 
void InvokeEvent (albaEventBase &event, albaID channel=-1)
 
void InvokeEvent (albaEventBase *event, albaID channel=-1)
 
void InvokeEvent (void *sender, int id, albaID channel=MCH_UP, void *data=NULL)
 
virtual int InternalStore (albaStorageElement *node)=0
 
virtual int InternalRestore (albaStorageElement *node)=0
 

Protected Attributes

albaMatrixm_TmpPose
 
vector< Wiimote > m_Wiimotes
 
double m_XTranslation
 
double m_YTranslation
 
double m_ZTranslation
 
double m_TranslationCalibration
 
double m_Angle
 
vector< MotionData > m_LastPositions
 
- Protected Attributes inherited from albaDeviceButtonsPadTracker
albaMatrixm_LastPoseMatrix
 
int m_LastPose
 
albaTimeStamp m_LastMoveTime
 
albaMutexLock m_LastPoseMutex
 
albaTimeStamp m_MoveEventTimeOut
 
albaTransformm_TrackerToCanonicalTransform
 
albaAutoPointer< albaAvatarm_Avatar
 
albaAutoPointer< albaAvatarm_DefaultAvatar
 
albaOBB m_CanonicalBounds
 
int m_AvatarFlag
 
albaOBB m_TrackedBounds
 
double m_TrackedBoxOrientation [3]
 
double m_TBPosition [3]
 
- Protected Attributes inherited from albaDeviceButtonsPad
bool * m_ButtonState
 
int m_NumberOfButtons
 
- Protected Attributes inherited from albaDevice
albaGUIm_Gui
 
albaID m_ID
 
int m_AutoStart
 
int m_Start
 
bool m_Locked
 
bool m_PersistentFalg
 
- Protected Attributes inherited from albaAgentThreaded
albaMultiThreaderm_Threader
 
mmuThreadInfoStructm_ThreadData
 
int m_ThreadId
 
int m_Threaded
 
int m_ActiveFlag
 
albaMutexLockm_Gate
 
- Protected Attributes inherited from albaAgentEventQueue
InternalEventQueue * m_EventQueue
 
albaMutexLockm_Mutex
 
int m_DispatchMode
 
int m_DequeueMode
 
int m_PushMode
 
bool m_Dispatched
 
- Protected Attributes inherited from albaAgent
albaString m_Name
 
bool m_Initialized
 
std::vector< albaEventBroadcaster * > m_Channels
 
- Protected Attributes inherited from albaReferenceCounted
int m_ReferenceCount
 
- Protected Attributes inherited from albaObject
bool m_HeapFlag
 
- Protected Attributes inherited from albaEventBroadcaster
albaObserversList m_Observers
 
albaID m_Channel
 
- Protected Attributes inherited from albaEventSender
albaObserverm_Listener
 
- Protected Attributes inherited from albaStorable
bool m_Storable
 

Additional Inherited Members

- Public Types inherited from albaDeviceButtonsPadTracker
enum  TRACKER_WIDGET_ID {
  ID_TB_X_EXTENT =Superclass::ID_LAST , ID_TB_Y_EXTENT , ID_TB_Z_EXTENT , ID_TB_POSITION ,
  ID_TB_ORIENTATION , ID_AVATAR_CHECK , ID_AVATAR_SELECT , ID_LAST
}
 
- Public Types inherited from albaDevice
enum  DEVICE_MINIMUM_ID { MIN_DEVICE_ID =1000000 }
 
enum  DEVICE_WIDGET_ID {
  ID_NAME =MINID , ID_ACTIVATE , ID_SHUTDOWN , ID_AUTO_START ,
  ID_LAST
}
 
- Public Types inherited from albaAgentEventQueue
enum  DispatchModalities { SelfProcessMode = 0 , BroadcastMode }
 
enum  PopModalities { SingleEventMode = 0 , MultipleEventMode }
 
enum  PushModalities { DispatchEventMode =0 , PollingMode }
 
- Static Public Member Functions inherited from albaDeviceButtonsPadTracker
static albaID GetTracker3DMoveId ()
 
static albaID GetTrackerBoundsUpdatedId ()
 
- Static Public Member Functions inherited from albaDeviceButtonsPad
static albaID GetButtonDownId ()
 
static albaID GetButtonUpId ()
 
static albaID GetWheelId ()
 
- Static Public Member Functions inherited from albaObject
static const char * GetStaticTypeName ()
 
static bool IsStaticType (const char *type_name)
 
static bool IsStaticType (const albaTypeID &type_id)
 
static const albaTypeIDGetStaticTypeId ()
 
static albaObjectSafeDownCast (albaObject *o)
 
- Static Public Member Functions inherited from albaStorable
static albaStorableSafeCastToObject (albaObject *o)
 
- Protected Types inherited from albaEventBroadcaster
typedef std::list< albaObserver * > albaObserversList
 
- Static Protected Member Functions inherited from albaAgentThreaded
static void UpdateLoop (mmuThreadInfoStruct *data)
 

Detailed Description

class supporting device WII Mote from Nintendo WII Console.

.SECTION Description This class implements Device WII Mote management as a Tracker device. It currently support only one WII Mote!

Definition at line 38 of file albaDeviceTrackerWIIMote.h.

Constructor & Destructor Documentation

◆ albaDeviceTrackerWIIMote()

albaDeviceTrackerWIIMote::albaDeviceTrackerWIIMote ( )
protected

◆ ~albaDeviceTrackerWIIMote()

virtual albaDeviceTrackerWIIMote::~albaDeviceTrackerWIIMote ( )
protectedvirtual

Member Function Documentation

◆ albaTypeMacro()

albaDeviceTrackerWIIMote::albaTypeMacro ( albaDeviceTrackerWIIMote  ,
albaDeviceButtonsPadTracker   
)

◆ InternalUpdate()

int albaDeviceTrackerWIIMote::InternalUpdate ( )
protectedvirtual

performs polling of P5 glove

Reimplemented from albaAgentThreaded.

◆ InternalInitialize()

virtual int albaDeviceTrackerWIIMote::InternalInitialize ( )
protectedvirtual

initialize P5DLL

Reimplemented from albaDeviceButtonsPadTracker.

◆ InternalShutdown()

virtual void albaDeviceTrackerWIIMote::InternalShutdown ( )
protectedvirtual

close P5DLL

Reimplemented from albaDeviceButtonsPadTracker.

◆ Calibration()

void albaDeviceTrackerWIIMote::Calibration ( )
protected

◆ SetTranlationAndRotation()

void albaDeviceTrackerWIIMote::SetTranlationAndRotation ( MotionData  p)
protected

Member Data Documentation

◆ m_TmpPose

albaMatrix* albaDeviceTrackerWIIMote::m_TmpPose
protected

Definition at line 58 of file albaDeviceTrackerWIIMote.h.

◆ m_Wiimotes

vector<Wiimote> albaDeviceTrackerWIIMote::m_Wiimotes
protected

Definition at line 59 of file albaDeviceTrackerWIIMote.h.

◆ m_XTranslation

double albaDeviceTrackerWIIMote::m_XTranslation
protected

Definition at line 62 of file albaDeviceTrackerWIIMote.h.

◆ m_YTranslation

double albaDeviceTrackerWIIMote::m_YTranslation
protected

Definition at line 62 of file albaDeviceTrackerWIIMote.h.

◆ m_ZTranslation

double albaDeviceTrackerWIIMote::m_ZTranslation
protected

Definition at line 62 of file albaDeviceTrackerWIIMote.h.

◆ m_TranslationCalibration

double albaDeviceTrackerWIIMote::m_TranslationCalibration
protected

Definition at line 63 of file albaDeviceTrackerWIIMote.h.

◆ m_Angle

double albaDeviceTrackerWIIMote::m_Angle
protected

Definition at line 65 of file albaDeviceTrackerWIIMote.h.

◆ m_LastPositions

vector<MotionData> albaDeviceTrackerWIIMote::m_LastPositions
protected

Definition at line 67 of file albaDeviceTrackerWIIMote.h.


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