RenderObject Class Reference

The base class for Objects that are able to render themselves in OpenGL. More...

#include <ardev.h>

Inheritance diagram for RenderObject:

ARObject RenderAxes RenderB21r RenderModel RenderTeapot List of all members.

Public Member Functions

 RenderObject ()
 Default Constructor.
 RenderObject (const ARColour &aColour)
 Constructor setting the colour value.
virtual void ThreadInit ()
virtual void RenderBase ()
virtual void Render ()
virtual void RenderTransparent ()
virtual double TraceDistance (const Ray &Offset, const Ray &R, const ARPoint &Rotation)
 Returns the shortest distance from a Ray to the object (-1 for no itnersection).
virtual bool Enabled ()
virtual void SetEnabled (const bool EnableState)

Protected Attributes

double Size
bool enabled
ARColour Colour

Detailed Description

The base class for Objects that are able to render themselves in OpenGL.


Member Function Documentation

virtual void RenderObject::ThreadInit (  )  [inline, virtual]

Initialise thread specific data, ie gl textures This will be called once for each thread inside the thread context

Reimplemented in RenderModel.

virtual void RenderObject::RenderBase (  )  [inline, virtual]

Function that causes the object to render itself used to render a place holder for known real world parts of an object If using an update thread remember to use the Lock and Unlock functions when accessing shared data during rendering

Reimplemented in RenderB21r.

virtual void RenderObject::Render (  )  [inline, virtual]

Function that causes the object to render the solid portions of itself If using an update thread remember to use the Lock and Unlock functions when accessing shared data during rendering

Reimplemented in RenderAxes, RenderModel, RenderTeapot, and RenderB21r.

virtual void RenderObject::RenderTransparent (  )  [inline, virtual]

Function that causes the object to render the transparent portions of itself If using an update thread remember to use the Lock and Unlock functions when accessing shared data during rendering

virtual bool RenderObject::Enabled (  )  [inline, virtual]

Is the object enabled, i.e. should it be rendered. allows for user to select which components are rendered at run time.

virtual void RenderObject::SetEnabled ( const bool  EnableState  )  [inline, virtual]

Is the object enabled, i.e. should it be rendered. allows for user to select which components are rendered at run time.


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