Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

GBE::GOpenGLForm Class Reference

Implements a form that is usable with OpenGL. More...

#include <GOpenGLForm.h>

Inheritance diagram for GBE::GOpenGLForm:

Inheritance graph
[legend]
Collaboration diagram for GBE::GOpenGLForm:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GOpenGLForm (const GCS::GVector3 &position=GCS::GVector3(0, 0, 0), const GCS::GVector3 &rotation=GCS::GVector3(0, 0, 0), double radius=1)
virtual ~GOpenGLForm ()
virtual void transform () const
virtual void render () const
virtual double getRadiusMax () const
virtual double getRadiusMin () const

Public Attributes

double Radius
float RGBA [4]

Detailed Description

Implements a form that is usable with OpenGL.

Author:
Raphael Langerhorst
By default a sphere is drawn with its radius. This form is able to transform and render itself.

You can use it by just calling transform() and render() in a valid OpenGL context.

This class is intended as a base class for all forms that are OpenGL capable.


Constructor & Destructor Documentation

GBE::GOpenGLForm::GOpenGLForm const GCS::GVector3 position = GCS::GVector3(0,0,0),
const GCS::GVector3 rotation = GCS::GVector3(0,0,0),
double  radius = 1
[inline]
 

Constructor with optional parameters.

Todo:
put the implementation into the implementation file.

virtual GBE::GOpenGLForm::~GOpenGLForm  )  [inline, virtual]
 

Virtual destructor for clean subclassing.

Todo:
put the implementation into the implementation file.


Member Function Documentation

virtual double GBE::GOpenGLForm::getRadiusMax  )  const [inline, virtual]
 

Returns the Radius.

Todo:
put into implementation file.

Implements GCS::GForm.

virtual double GBE::GOpenGLForm::getRadiusMin  )  const [inline, virtual]
 

Returns the Radius.

Todo:
put into implementation file.

Implements GCS::GForm.

void GBE::GOpenGLForm::render  )  const [virtual]
 

Renders the form, by default a sphere.

void GBE::GOpenGLForm::transform  )  const [virtual]
 

Transforms the current matrix according to position, rotation and radius.


Member Data Documentation

double GBE::GOpenGLForm::Radius
 

The radius of the form (by default a sphere).

Note:
diameter = 2 * Radius

float GBE::GOpenGLForm::RGBA[4]
 

The Red, Green, Blue and Alpha colour values of the form.


The documentation for this class was generated from the following files:
Generated on Thu Oct 21 21:18:12 2004 for G System by doxygen 1.3.6