ARObject Class Reference

Base ARObject that all ARObjects inherit from. More...

#include <ardev.h>

Inheritance diagram for ARObject:

CameraObject CaptureObject FrameProcessObject OutputObject PositionObject RenderObject CameraConstant CaptureFile CaptureNull CaptureV4L ARToolKitPreProcess OutputX11 ARToolKitPosition PositionConstant PositionNull RenderAxes RenderB21r RenderModel RenderTeapot List of all members.

Public Member Functions

 ARObject ()
 Default Constructor.
virtual ~ARObject ()
 Default Destructor.
virtual int Initialise (bool Active=true)
 Iinitialise the ARObjectR.
virtual void Terminate ()
 Terminate an ARObject.
void StartThread ()
 Create a thread for updating the object data.
void StopThread ()
 Stop the objects update thread.
virtual void * Main ()
 If using an update thread reimplement this function to contain the update loop.
virtual void Pause ()
 Pause the update thread loop if needed.
virtual void Resume ()
 Resume the update thread loop if needed.
virtual void Lock ()
 Locks the internal mutex.
virtual void Unlock ()
 Unlocks the internal mutex.
virtual bool Initialised ()
 is the device initialised

Static Protected Member Functions

static void * DummyMain (void *ThisPtr)
 DummyMain that launches the threads Main method.

Protected Attributes

pthread_mutex_t lock
 Class specific mutex, accessed with Lock and Unlock.
pthread_t thread
 Active thread identifier if thread started.
bool IsActive
 record if the update thread is active
bool initialised
 record the initialised state of the device

Friends

class ARDev

Detailed Description

Base ARObject that all ARObjects inherit from.

All the core ARDev Objects inherit from this class allowing the standard initilaisation update etc. Also provides basic locking functionality


The documentation for this class was generated from the following files:
SourceForge.net Logo Generated on Sat May 12 15:25:43 2007 for ardev by doxygen 1.5.1