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

SIGEL_Visualisation::SIG_EnvironmentRenderer Class Reference

This classes task is the rendering of SIG_Environment objects. More...

#include <SIG_EnvironmentRenderer.h>

Inheritance diagram for SIGEL_Visualisation::SIG_EnvironmentRenderer:

SIGEL_Visualisation::SIG_Renderer List of all members.

Public Methods

 SIG_EnvironmentRenderer (SIGEL_Environment::SIG_Environment const &environment)
 The constructor of the SIG_EnvironmentRenderer. More...

 ~SIG_EnvironmentRenderer ()
 The destructor of the SIG_EnvironmentRenderer. More...

void render ()
 Calls the inherited method renderSceneObjects and does additional rendering like drawing the main plane which is the main component of every SIG_Environment. More...

QString exportToPovray ()
QString createPovrayDeclarations ()
void setLookPoint ( DL_vector newPosition )
void setRenderMode ( SIG_ViewSettings::renderModeType newRenderMode )
void setPlaneColor ( double red, double green, double blue )
void setShowPlane ( bool newShowPlane )
void setShowGrid ( bool newShowGrid )
void setShowRobotPath ( bool newShowRobotPath )
void addRobotPathPoint ( DL_vector newPoint )

Private Methods

void buildDisplayLists ()
 Reads the environment attribute and uses its properties like geometry of objects to build display lists. More...

void buildPlane (GLuint number)
 Builds the display list to render the plane that is part of every SIGEL_Environment::SIG_Environment. More...

void buildGrid (GLuint number)
void renderRobotPath ()

Private Attributes

SIGEL_Environment::SIG_Environment
const& 
environment
 The SIG_Environment object that should be rendered by this SIG_EnvironmentRenderer. More...

GLint const fieldEdgeLength
DL_vector lookPoint
SIG_ViewSettings::renderModeType renderMode
bool showPlane
bool showGrid
bool showRobotPath
QList< DL_vector > robotPathPoints

Detailed Description

This classes task is the rendering of SIG_Environment objects.

Definition at line 17 of file SIG_EnvironmentRenderer.h.


Constructor & Destructor Documentation

SIGEL_Visualisation::SIG_EnvironmentRenderer::SIG_EnvironmentRenderer ( SIGEL_Environment::SIG_Environment const & environment )
 

The constructor of the SIG_EnvironmentRenderer.

It reads the supplied SIG_Environment, fills the inherited QVector sceneObjects and calls the method buildDisplayLists.

Parameters:
environment   The environment that should be rendered.

Definition at line 12 of file SIG_EnvironmentRenderer.cpp.

SIGEL_Visualisation::SIG_EnvironmentRenderer::~SIG_EnvironmentRenderer ( )
 

The destructor of the SIG_EnvironmentRenderer.

It cleans up the OpenGL stuff like the display lists.

Definition at line 47 of file SIG_EnvironmentRenderer.cpp.


Member Function Documentation

void SIGEL_Visualisation::SIG_EnvironmentRenderer::addRobotPathPoint ( DL_vector newPoint )
 

Definition at line 325 of file SIG_EnvironmentRenderer.cpp.

void SIGEL_Visualisation::SIG_EnvironmentRenderer::buildDisplayLists ( ) [private, virtual]
 

Reads the environment attribute and uses its properties like geometry of objects to build display lists.

Reimplemented from SIGEL_Visualisation::SIG_Renderer.

Definition at line 59 of file SIG_EnvironmentRenderer.cpp.

void SIGEL_Visualisation::SIG_EnvironmentRenderer::buildGrid ( GLuint number ) [private]
 

Definition at line 98 of file SIG_EnvironmentRenderer.cpp.

void SIGEL_Visualisation::SIG_EnvironmentRenderer::buildPlane ( GLuint number ) [private]
 

Builds the display list to render the plane that is part of every SIGEL_Environment::SIG_Environment.

Parameters:
number   The display list number to occupy.

Definition at line 69 of file SIG_EnvironmentRenderer.cpp.

QString SIGEL_Visualisation::SIG_EnvironmentRenderer::createPovrayDeclarations ( ) [virtual]
 

Reimplemented from SIGEL_Visualisation::SIG_Renderer.

Definition at line 225 of file SIG_EnvironmentRenderer.cpp.

QString SIGEL_Visualisation::SIG_EnvironmentRenderer::exportToPovray ( ) [virtual]
 

Reimplemented from SIGEL_Visualisation::SIG_Renderer.

Definition at line 172 of file SIG_EnvironmentRenderer.cpp.

void SIGEL_Visualisation::SIG_EnvironmentRenderer::render ( ) [virtual]
 

Calls the inherited method renderSceneObjects and does additional rendering like drawing the main plane which is the main component of every SIG_Environment.

Precondition:
The display lists are builded.

Reimplemented from SIGEL_Visualisation::SIG_Renderer.

Definition at line 153 of file SIG_EnvironmentRenderer.cpp.

void SIGEL_Visualisation::SIG_EnvironmentRenderer::renderRobotPath ( ) [private]
 

Definition at line 130 of file SIG_EnvironmentRenderer.cpp.

void SIGEL_Visualisation::SIG_EnvironmentRenderer::setLookPoint ( DL_vector newPosition )
 

Definition at line 294 of file SIG_EnvironmentRenderer.cpp.

void SIGEL_Visualisation::SIG_EnvironmentRenderer::setPlaneColor ( double red,
double green,
double blue )
 

Definition at line 50 of file SIG_EnvironmentRenderer.cpp.

void SIGEL_Visualisation::SIG_EnvironmentRenderer::setRenderMode ( SIG_ViewSettings::renderModeType newRenderMode )
 

Definition at line 299 of file SIG_EnvironmentRenderer.cpp.

void SIGEL_Visualisation::SIG_EnvironmentRenderer::setShowGrid ( bool newShowGrid )
 

Definition at line 313 of file SIG_EnvironmentRenderer.cpp.

void SIGEL_Visualisation::SIG_EnvironmentRenderer::setShowPlane ( bool newShowPlane )
 

Definition at line 306 of file SIG_EnvironmentRenderer.cpp.

void SIGEL_Visualisation::SIG_EnvironmentRenderer::setShowRobotPath ( bool newShowRobotPath )
 

Definition at line 320 of file SIG_EnvironmentRenderer.cpp.


Member Data Documentation

SIGEL_Environment::SIG_Environment const & SIGEL_Visualisation::SIG_EnvironmentRenderer::environment [private]
 

The SIG_Environment object that should be rendered by this SIG_EnvironmentRenderer.

Definition at line 92 of file SIG_EnvironmentRenderer.h.

GLint const SIGEL_Visualisation::SIG_EnvironmentRenderer::fieldEdgeLength [private]
 

Definition at line 94 of file SIG_EnvironmentRenderer.h.

DL_vector SIGEL_Visualisation::SIG_EnvironmentRenderer::lookPoint [private]
 

Definition at line 96 of file SIG_EnvironmentRenderer.h.

SIG_ViewSettings::renderModeType SIGEL_Visualisation::SIG_EnvironmentRenderer::renderMode [private]
 

Definition at line 98 of file SIG_EnvironmentRenderer.h.

QList< DL_vector > SIGEL_Visualisation::SIG_EnvironmentRenderer::robotPathPoints [private]
 

Definition at line 106 of file SIG_EnvironmentRenderer.h.

bool SIGEL_Visualisation::SIG_EnvironmentRenderer::showGrid [private]
 

Definition at line 102 of file SIG_EnvironmentRenderer.h.

bool SIGEL_Visualisation::SIG_EnvironmentRenderer::showPlane [private]
 

Definition at line 100 of file SIG_EnvironmentRenderer.h.

bool SIGEL_Visualisation::SIG_EnvironmentRenderer::showRobotPath [private]
 

Definition at line 104 of file SIG_EnvironmentRenderer.h.


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