OutputObject Class Reference

Base class for objects that control a rendering pipeline and output the result to the user. More...

#include <ardev.h>

Inheritance diagram for OutputObject:

ARObject OutputX11 List of all members.

Public Member Functions

 OutputObject ()
 Default Constructor.
virtual void RenderFrame (RenderList &List, const ARImage &Frame, const ARCamera &cam, const ARPosition &pos, unsigned int Tick, double *Distance=NULL)
 Render a single Frame.
virtual const ARImageGetFrame ()
virtual void ShowFrame ()
 Display the current frame.
void Add (const RenderPair &render)
 Adds the given RenderPair to the list.
void Remove (const RenderPair &render)
 Remove the given RenderPair.
void AddPost (FrameProcessObject *out)
 Add the given Post Process Item.
void RemovePost (FrameProcessObject *out)
 Remove the given Post Process Item.
void AddPre (FrameProcessObject *out)
 Add the given PreProcessObject.
void RemovePre (FrameProcessObject *out)
 Remove the given PreProcessObject.

Public Attributes

int width
 Width of the output.
int height
 Height of the output.
unsigned int TexWidth
 Backdrop texture width (size of allocated tecture, ie mod2 rounded).
unsigned int TexHeight
 Backdrop texture height (size of allocated tecture, ie mod2 rounded).
unsigned int Backdrop
 Backdrop Texture Identifier.
const char * Name
 The name of the ARDev Object, used for calls to stop, add and remove.
bool Alive
 If this is true then the thread should clean up and terminate ASAP.
bool Paused
 If this is true then the thread should clean up and terminate ASAP.

Protected Member Functions

void * Main ()
 main thread loop
void DrawText (GLint x, GLint y, char *s, GLfloat r, GLfloat g, GLfloat b)
 Utility function to draw text on the display.

Protected Attributes

RenderList RenderObjects
 The list of active RenderObjects, accessable via Add and Remove.
PostProcessList PostProcessObjects
 The list of active PostProcessObjects, accessable via Add and Remove.
PreProcessList PreProcessObjects
 The list of active PreProcessObjects, accessable via Add and Remove.
CaptureObjectCapture
 The associated Capture Object.
CameraObjectCamera
 The associated Camera Object.
PositionObjectCameraPosition
 The position object that returns the position of the camera.
StopWatch TimerFPS
 Benchmarking.
StopWatch Timer
double FrameRate
double OtherTime
double CaptureTime
double TextureTime
double PreprocessTime
double RenderTime
double PostprocessTime

Detailed Description

Base class for objects that control a rendering pipeline and output the result to the user.


Member Function Documentation

const ARImage & OutputObject::GetFrame (  )  [virtual]

Grab the current frame from the frame buffer and return it as a ARImage


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