#include <SIG_SimulationVisualisation.h>
Inheritance diagram for SIGEL_Visualisation::SIG_SimulationVisualisation:
Public Methods | |
SIG_SimulationVisualisation (SIGEL_Robot::SIG_Robot const &robot, SIGEL_Environment::SIG_Environment const &environment, SIGEL_Simulation::SIG_SimulationParameters const &simulationParameter, SIGEL_Program::SIG_Program const &program) | |
The constructor of the SIG_SimulationVisualisation. More... | |
~SIG_SimulationVisualisation () | |
The destructor of the SIG_SimulationVisualisation. More... | |
void | setPointsVisible ( bool visible ) |
void | setPlaneColor ( QColor newColor ) |
void | setShowPlane ( bool newShowPlane ) |
void | setShowGrid ( bool newShowGrid ) |
void | setShowRobotPath ( bool newShowRobotPath ) |
void | visualize () |
This method finally initiates the calling of certain OpenGL rendering commands. More... | |
void | makeTimeSteps (int noOfTimeSteps) throw (SIGEL_Simulation::SIG_SimulationCannotSolveException) |
This method lets the simulation progress and updates internal data structures (for example position and rotation of objects). More... | |
QTime | getSimulationTime () const |
DL_vector | getRobotPosition () const |
DL_matrix | getRobotRotation () const |
bool | exportToPovray ( QString includeFilename, QString fileName ) |
bool | createPovrayIncludeFile ( QString filename, double aspectRatio ) |
Private Methods | |
void | updateRobotLinks () |
Reads the actual positions and rotations of the robot's links from the renderRecorder and writes them in the appropriate elements of the attribute sceneObjects of the robotRenderer. More... | |
void | updateRobotPoints () |
Reads the actual positions and rotations of the robot's links and sets the according values of the appropriate robot points. More... | |
Private Attributes | |
SIG_EnvironmentRenderer | environmentRenderer |
The SIG_EnvironmentRenderer object that is responsible for the rendering of the environment. More... | |
SIG_RobotRenderer | robotRenderer |
The SIG_RobotRenderer object that is responsible for the rendering of the robot. More... | |
SIGEL_Robot::SIG_Robot const& | robot |
The SIG_Robot object that should take part in the simulation. More... | |
SIGEL_Environment::SIG_Environment const& | environment |
The SIG_Environment object that should take part in the simulation. More... | |
SIG_RenderRecorder* | renderRecorder |
The pointer to the SIG_RenderRecorder object that is used to retrieve acutal information about the elements of the simulation. More... | |
SIGEL_Simulation::SIG_Simulation* | simulation |
The pointer to the SIG_Simulation that should be visualized. More... | |
SIGEL_Simulation::SIG_SimulationParameters const | simulationParameter |
The SIG_SimulationParameter that should be used in the simulation. More... | |
SIGEL_Program::SIG_Program const& | program |
The SIG_Program object that should take part in the simulation. More... | |
int | frameCounter |
int | robotPathPointAddingRate |
Like classes inherited from SIG_GPFitnessFunction, the SIG_SimulationVisualisation contains a SIG_Simulation object and uses a class inherited from the SIG_Recorder class (the SIG_RenderRecorder) to retrieve information from the simulation. Besides the inherited method visualize there is a method makeTimeSteps that effects the progress of the contained simulation and visualisation data structures.
Definition at line 31 of file SIG_SimulationVisualisation.h.
|
The constructor of the SIG_SimulationVisualisation. It initializes the references that are used to acces the elements that take part in the simulation/visualisation. It creates the SIG_Simulation and SIG_RenderRecorder objects. It initializes the OpenGL stuff.
Definition at line 10 of file SIG_SimulationVisualisation.cpp. |
|
The destructor of the SIG_SimulationVisualisation. Cleans up the OpenGL stuff and deletes the simulation and the renderRecorder. Definition at line 45 of file SIG_SimulationVisualisation.cpp. |
|
Definition at line 224 of file SIG_SimulationVisualisation.cpp. |
|
Definition at line 166 of file SIG_SimulationVisualisation.cpp. |
|
Definition at line 152 of file SIG_SimulationVisualisation.cpp. |
|
Definition at line 159 of file SIG_SimulationVisualisation.cpp. |
|
Definition at line 147 of file SIG_SimulationVisualisation.cpp. |
|
This method lets the simulation progress and updates internal data structures (for example position and rotation of objects).
Definition at line 92 of file SIG_SimulationVisualisation.cpp. Referenced by SIG_SimulationVisualisationWidget::makeTimeSteps(). |
|
Definition at line 56 of file SIG_SimulationVisualisation.cpp. |
|
Definition at line 51 of file SIG_SimulationVisualisation.cpp. |
|
Definition at line 72 of file SIG_SimulationVisualisation.cpp. |
|
Definition at line 67 of file SIG_SimulationVisualisation.cpp. |
|
Definition at line 77 of file SIG_SimulationVisualisation.cpp. |
|
Reads the actual positions and rotations of the robot's links from the renderRecorder and writes them in the appropriate elements of the attribute sceneObjects of the robotRenderer. Is called by the constructor for setting up the initial robot. Is called in makeTimeSteps. Definition at line 124 of file SIG_SimulationVisualisation.cpp. |
|
Reads the actual positions and rotations of the robot's links and sets the according values of the appropriate robot points. Is called by the constructor for setting up the initial robot. Is called in makeTimeSteps. Definition at line 134 of file SIG_SimulationVisualisation.cpp. |
|
This method finally initiates the calling of certain OpenGL rendering commands. They refresh the active framebuffer of the current OpenGL context according to the current state of the simulation and the attribute viewSettings. Reimplemented from SIGEL_Visualisation::SIG_Visualisation. Definition at line 82 of file SIG_SimulationVisualisation.cpp. |
|
The SIG_Environment object that should take part in the simulation.
Definition at line 141 of file SIG_SimulationVisualisation.h. |
|
The SIG_EnvironmentRenderer object that is responsible for the rendering of the environment. While this SIG_SimulationVisualisation object takes care of all OpenGL related things to be done (framebuffer initialization and setting of OpenGL state variables for example), the final rendering of the environment is done by the environmentRenderer. Definition at line 116 of file SIG_SimulationVisualisation.h. |
|
Definition at line 171 of file SIG_SimulationVisualisation.h. |
|
The SIG_Program object that should take part in the simulation.
Definition at line 169 of file SIG_SimulationVisualisation.h. |
|
The pointer to the SIG_RenderRecorder object that is used to retrieve acutal information about the elements of the simulation. Is created in the constructor. Definition at line 150 of file SIG_SimulationVisualisation.h. |
|
The SIG_Robot object that should take part in the simulation.
Definition at line 135 of file SIG_SimulationVisualisation.h. |
|
Definition at line 173 of file SIG_SimulationVisualisation.h. |
|
The SIG_RobotRenderer object that is responsible for the rendering of the robot. While this SIG_SimulationVisualisation object takes care of all OpenGL related things to be done (framebuffer initialization and setting of OpenGL state variables for example), the final rendering of the robot is done by the robotRenderer. Definition at line 129 of file SIG_SimulationVisualisation.h. |
|
The pointer to the SIG_Simulation that should be visualized. Is created in the constructor. Definition at line 157 of file SIG_SimulationVisualisation.h. |
|
The SIG_SimulationParameter that should be used in the simulation.
Definition at line 163 of file SIG_SimulationVisualisation.h. |