Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

SIGEL_Visualisation::SIG_Visualisation Class Reference

This is the superclass of all visualisation classes. More...

#include <SIG_Visualisation.h>

Inheritance diagram for SIGEL_Visualisation::SIG_Visualisation:

SIGEL_Visualisation::SIG_EnvironmentVisualisation SIGEL_Visualisation::SIG_RobotVisualisation SIGEL_Visualisation::SIG_SimulationVisualisation List of all members.

Public Methods

 SIG_Visualisation ()
 The constructor of the SIG_Visualisation. More...

virtual ~SIG_Visualisation ()
 The destructor of the SIG_Visualisation. More...

virtual void visualize ()
 This method sets up the projection/modelview matrices according to the actual viewSettings. More...

virtual void setAmbientSceneColor ( double red, double green, double blue )
void updateAspectRatio ()
 This method recalculates the projection matrix according to the actual aspect ratio. More...


Public Attributes

SIG_ViewSettings viewSettings
 The current view settings. More...

QVector< SIG_FloatingText > floatingTexts

Protected Attributes

NEWMAT::ColumnVector ambientSceneColor

Detailed Description

This is the superclass of all visualisation classes.

This classes task is to encapsulate all OpenGL commands for rendering of different kinds of things (robots, environments, simulations). Subclasses should contain objects inherited from the class SIG_Renderer.

Definition at line 34 of file SIG_Visualisation.h.


Constructor & Destructor Documentation

SIGEL_Visualisation::SIG_Visualisation::SIG_Visualisation ( )
 

The constructor of the SIG_Visualisation.

Maybe initializes some OpenGL stuff.

Definition at line 9 of file SIG_Visualisation.cpp.

SIGEL_Visualisation::SIG_Visualisation::~SIG_Visualisation ( ) [virtual]
 

The destructor of the SIG_Visualisation.

Maybe cleans up some OpenGL stuff.

Definition at line 141 of file SIG_Visualisation.cpp.


Member Function Documentation

void SIGEL_Visualisation::SIG_Visualisation::setAmbientSceneColor ( double red,
double green,
double blue ) [virtual]
 

Definition at line 111 of file SIG_Visualisation.cpp.

void SIGEL_Visualisation::SIG_Visualisation::updateAspectRatio ( )
 

This method recalculates the projection matrix according to the actual aspect ratio.

Is called by the constructor and the widget class class. Tha latter needs only to do this in case of changed widget proportions.

Definition at line 129 of file SIG_Visualisation.cpp.

void SIGEL_Visualisation::SIG_Visualisation::visualize ( ) [virtual]
 

This method sets up the projection/modelview matrices according to the actual viewSettings.

The method visualize of subclasses should first call SIG_Visualisation::visualize and after that initiate the final rendering.

Reimplemented in SIGEL_Visualisation::SIG_EnvironmentVisualisation, SIGEL_Visualisation::SIG_RobotVisualisation, and SIGEL_Visualisation::SIG_SimulationVisualisation.

Definition at line 49 of file SIG_Visualisation.cpp.


Member Data Documentation

NEWMAT::ColumnVector SIGEL_Visualisation::SIG_Visualisation::ambientSceneColor [protected]
 

Definition at line 86 of file SIG_Visualisation.h.

QVector< SIG_FloatingText > SIGEL_Visualisation::SIG_Visualisation::floatingTexts
 

Definition at line 83 of file SIG_Visualisation.h.

SIG_ViewSettings SIGEL_Visualisation::SIG_Visualisation::viewSettings
 

The current view settings.

These should be used by the method visualize.

Definition at line 81 of file SIG_Visualisation.h.


The documentation for this class was generated from the following files:
Generated at Mon Sep 3 01:32:58 2001 for PG 368 - SIGEL by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000