omegalib  13.1
omega::TrackedObject Class Reference

Implements an Actor that sets the position and orientation of a scene node based on a events generated from a tracking system. More...

#include <TrackedObject.h>

Public Member Functions

 TrackedObject ()
 
virtual ~TrackedObject ()
 
virtual void handleEvent (const Event &evt)
 
virtual void update (const UpdateContext &context)
 
void setOffset (const Vector3f &value)
 
const Vector3fgetOffset ()
 
void setOrientationOffset (const Quaternion &value)
 
Quaternion getOrientationOffset ()
 
void setPositionTrackingEnabled (bool value)
 
bool isPositionTrackingEnabled ()
 
void setOrientationTrackingEnabled (bool value)
 
bool isOrientationTrackingEnabled ()
 
void setTrackableServiceType (Event::ServiceType value)
 
Event::ServiceType getTrackableServiceType ()
 
void setTrackableSourceId (int value)
 
int getTrackableSourceId ()
 
void setHideTimeout (float timeout)
 Set a timeout in seconds to auto-hide the tracked object, if no events have been received. More...
 
float getHideTimeout ()
 
void setAutoHideEnabled (bool value)
 
bool isAutoHideEnabled ()
 
- Public Member Functions inherited from omega::Actor
 Actor (const String &name)
 
 Actor ()
 
void kill ()
 
void setSceneNode (SceneNode *node)
 
SceneNodegetSceneNode ()
 
virtual bool handleCommand (const String &cmd)
 
virtual void onUpdate (const UpdateContext &context)
 Callbacks These callbacks can be enabled / disabled using the corresponding callback filter functions. More...
 
virtual void onEvent (const Event &evt)
 
virtual bool onCommand (const String &cmd)
 
void setUpdateEnabled (bool value)
 Callback filter functions. More...
 
void setCommandsEnabled (bool value)
 
void setEventsEnabled (bool value)
 
bool isUpdateEnabled ()
 
bool areCommandsEnabled ()
 
bool areEventsEnabled ()
 
- Public Member Functions inherited from omega::EngineModule
 EngineModule (const String &name)
 
 EngineModule ()
 
virtual ~EngineModule ()
 
void requestOpenGLProfile (OpenGLProfile profile)
 This method can be used within an engine module ctor or initialization to test for module compatibility. More...
 
void enableSharedData ()
 
void disableSharedData ()
 
virtual void initialize ()
 
virtual void dispose ()
 
virtual void commitSharedData (SharedOStream &out)
 
virtual void updateSharedData (SharedIStream &in)
 
virtual void initializeRenderer (Renderer *)
 
void doInitialize (Engine *server)
 
void doDispose ()
 
virtual bool isInitialized ()
 
EnginegetEngine ()
 
Priority getPriority ()
 
void setPriority (Priority value)
 
const StringgetName ()
 
- Public Member Functions inherited from omicron::ReferenceType
 ReferenceType ()
 
virtual ~ReferenceType ()
 
void ref ()
 
void unref ()
 
long refCount ()
 

Additional Inherited Members

- Public Types inherited from omega::EngineModule
enum  Priority {
  PriorityLowest = 0, PriorityLow = 1, PriorityNormal = 2, PriorityHigh = 3,
  PriorityHighest = 4
}
 
enum  OpenGLProfile { CoreProfile, CompatibilityProfile, UnspecifiedProfile }
 
- Static Public Member Functions inherited from omicron::ReferenceType
static void printObjCounts ()
 
- Protected Attributes inherited from omega::Actor
SceneNodemyNode
 
bool myUpdateEnabled
 
bool myEventsEnabled
 
bool myCommandsEnabled
 
- Static Protected Attributes inherited from omicron::ReferenceType
static List< ReferenceType * > mysObjList
 

Detailed Description

Implements an Actor that sets the position and orientation of a scene node based on a events generated from a tracking system.

+ Inheritance diagram for omega::TrackedObject:

Constructor & Destructor Documentation

omega::TrackedObject::TrackedObject ( )
virtual omega::TrackedObject::~TrackedObject ( )
virtual

Member Function Documentation

float omega::TrackedObject::getHideTimeout ( )
inline
const Vector3f & omega::TrackedObject::getOffset ( )
inline
Quaternion omega::TrackedObject::getOrientationOffset ( )
inline
Event::ServiceType omega::TrackedObject::getTrackableServiceType ( )
inline
int omega::TrackedObject::getTrackableSourceId ( )
inline
virtual void omega::TrackedObject::handleEvent ( const Event evt)
virtual

Reimplemented from omega::Actor.

bool omega::TrackedObject::isAutoHideEnabled ( )
inline
bool omega::TrackedObject::isOrientationTrackingEnabled ( )
inline
bool omega::TrackedObject::isPositionTrackingEnabled ( )
inline
void omega::TrackedObject::setAutoHideEnabled ( bool  value)
inline
void omega::TrackedObject::setHideTimeout ( float  timeout)
inline

Set a timeout in seconds to auto-hide the tracked object, if no events have been received.

void omega::TrackedObject::setOffset ( const Vector3f value)
inline
void omega::TrackedObject::setOrientationOffset ( const Quaternion value)
inline
void omega::TrackedObject::setOrientationTrackingEnabled ( bool  value)
inline
void omega::TrackedObject::setPositionTrackingEnabled ( bool  value)
inline
void omega::TrackedObject::setTrackableServiceType ( Event::ServiceType  value)
inline
void omega::TrackedObject::setTrackableSourceId ( int  value)
inline
virtual void omega::TrackedObject::update ( const UpdateContext context)
virtual

Reimplemented from omega::Actor.


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