#include <SIG_Renderer.h>
Inheritance diagram for SIGEL_Visualisation::SIG_Renderer:
Public Methods | |
SIG_Renderer (int noOfObjects, int noOfFloatingTexts) | |
The constructor of the SIG_Renderer. More... | |
~SIG_Renderer () | |
The destructor of the SIG_Renderer. More... | |
virtual void | render () = 0 |
This method finally starts the rendering into the current OpenGL context. More... | |
virtual QString | exportToPovray () = 0 |
virtual QString | createPovrayDeclarations () = 0 |
Public Attributes | |
QVector<SIG_VisualSceneObject> | sceneObjects |
The array of SIG_VisualSceneObjects. More... | |
QVector<SIG_FloatingText> | floatingTexts |
Static Public Methods | |
QString | vectorToPovray ( NEWMAT::ColumnVector input ) |
Protected Methods | |
virtual void | buildDisplayLists () = 0 |
This method builds the OpenGL display lists. More... | |
void | renderSceneObjects () |
This method calls all the display lists of this SIG_Renderer. More... | |
QString | exportSceneObjectsToPovray () |
Protected Attributes | |
GLuint | displayListsOffset |
The number of the first display list of this SIG_Renderer. More... | |
GLuint | noOfObjects |
The number of objects in sceneObjects, which should be rendered by the method renderSceneObjects. More... |
Its task is to execute the appropriate OpenGL-commands to render something. What is rendered is specified in the subclasses.
Definition at line 24 of file SIG_Renderer.h.
|
The constructor of the SIG_Renderer. May used to initialize some stuff concerning the OpenGL context. This could be the allocating of display lists indices and the call of the buildDisplayLists method.
Definition at line 9 of file SIG_Renderer.cpp. |
|
The destructor of the SIG_Renderer. May used to clean up some OpenGL stuff. For example the display lists could be cleared. Definition at line 22 of file SIG_Renderer.cpp. |
|
This method builds the OpenGL display lists. Dependend from the kind of thing that should be rendered a static (geometric) data structure supplied in the subclass could be read. OpenGL commands to draw this geometry are then recorded in display lists. Reimplemented in SIGEL_Visualisation::SIG_EnvironmentRenderer, and SIGEL_Visualisation::SIG_RobotRenderer. |
|
Definition at line 41 of file SIG_Renderer.cpp. |
|
This method finally starts the rendering into the current OpenGL context. After the display lists are builded properly they are called in this method to do the rendering of the particular object(s). This is mainly done by calling the method renderSceneObjects. But if there is more to show than just what is defined in the display lists, this method is the place to do it.
Reimplemented in SIGEL_Visualisation::SIG_EnvironmentRenderer, and SIGEL_Visualisation::SIG_RobotRenderer. |
|
This method calls all the display lists of this SIG_Renderer. This is the same procedure for every subclass. This method should be called from the method render.
Definition at line 27 of file SIG_Renderer.cpp. |
|
Definition at line 81 of file SIG_Renderer.cpp. |
|
The number of the first display list of this SIG_Renderer.
Definition at line 95 of file SIG_Renderer.h. |
|
Definition at line 87 of file SIG_Renderer.h. |
|
The number of objects in sceneObjects, which should be rendered by the method renderSceneObjects.
Definition at line 101 of file SIG_Renderer.h. |
|
The array of SIG_VisualSceneObjects. It contains the actual properties of the objects that are used to render them. Its public so the object containing the SIG_Renderer can change the object properties with the progress of a simulation for example. Definition at line 85 of file SIG_Renderer.h. |