argos::CQTOpenGLMainWindow Class Reference

#include <qtopengl_main_window.h>

Inheritance diagram for argos::CQTOpenGLMainWindow:
Collaboration diagram for argos::CQTOpenGLMainWindow:

Public Slots

void PlayExperiment ()
 Plays the experiment. More...
 
void FastForwardExperiment ()
 Fast forwards the experiment. More...
 
void StepExperiment ()
 Executes one experiment time step. More...
 
void PauseExperiment ()
 Pauses the experiment. More...
 
void TerminateExperiment ()
 Terminates the execution of the experiment. More...
 
void ResetExperiment ()
 Resets the state of the experiment to its state right after initialization. More...
 
void SuspendExperiment ()
 Suspends an experiment due to an error. More...
 
void ResumeExperiment ()
 Resumes a suspended experiment. More...
 
void CameraXMLPopUp ()
 
QString GetCameraXMLData ()
 
void SwitchCamera (QAction *)
 

Signals

void CameraSwitched (int n_camera)
 Emitted whenever the user presses a camera button to switch camera. More...
 
void ExperimentStarted ()
 Emitted when the experiment has just been started. More...
 
void ExperimentPlaying ()
 Emitted when the experiment has (re)started playing. More...
 
void ExperimentFastForwarding ()
 Emitted when the experiment has (re)started fast-forwarding. More...
 
void ExperimentPaused ()
 Emitted when the experiment has been paused. More...
 
void ExperimentSuspended ()
 Emitted when the experiment has been suspended. More...
 
void ExperimentResumed ()
 Emitted when the experiment has just been resumed. More...
 
void ExperimentDone ()
 Emitted when the experiment is finished. More...
 
void ExperimentReset ()
 Emitted when the experiment has been reset. More...
 

Public Member Functions

 CQTOpenGLMainWindow (TConfigurationNode &t_tree)
 
virtual ~CQTOpenGLMainWindow ()
 
CQTOpenGLWidgetGetOpenGLWidget ()
 
const CQTOpenGLWidgetGetOpenGLWidget () const
 
CQTOpenGLUserFunctionsGetUserFunctions ()
 
const CQTOpenGLUserFunctionsGetUserFunctions () const
 
const QString & GetIconDir () const
 
const QString & GetTextureDir () const
 

Detailed Description

Definition at line 36 of file qtopengl_main_window.h.

Constructor & Destructor Documentation

argos::CQTOpenGLMainWindow::CQTOpenGLMainWindow ( TConfigurationNode t_tree)

Definition at line 127 of file qtopengl_main_window.cpp.

argos::CQTOpenGLMainWindow::~CQTOpenGLMainWindow ( )
virtual

Definition at line 174 of file qtopengl_main_window.cpp.

Member Function Documentation

void argos::CQTOpenGLMainWindow::CameraSwitched ( int  n_camera)
signal

Emitted whenever the user presses a camera button to switch camera.

Parameters
n_cameraThe index of the desired camera
void argos::CQTOpenGLMainWindow::CameraXMLPopUp ( )
slot

Definition at line 880 of file qtopengl_main_window.cpp.

void argos::CQTOpenGLMainWindow::ExperimentDone ( )
signal

Emitted when the experiment is finished.

An experiment can finish "naturally", when CSimulator::IsExperimentFinished() returns true; or "forcedly", when the user pressed the terminate button.

void argos::CQTOpenGLMainWindow::ExperimentFastForwarding ( )
signal

Emitted when the experiment has (re)started fast-forwarding.

void argos::CQTOpenGLMainWindow::ExperimentPaused ( )
signal

Emitted when the experiment has been paused.

The difference between pausing and suspending an experiment is that pausing results from an action of the user; suspending is caused by an error condition. To resume execution, call PlayExperiment() or FastForwardExperiment().

void argos::CQTOpenGLMainWindow::ExperimentPlaying ( )
signal

Emitted when the experiment has (re)started playing.

void argos::CQTOpenGLMainWindow::ExperimentReset ( )
signal

Emitted when the experiment has been reset.

void argos::CQTOpenGLMainWindow::ExperimentResumed ( )
signal

Emitted when the experiment has just been resumed.

This marks the fact that the error condition has been solved.

void argos::CQTOpenGLMainWindow::ExperimentStarted ( )
signal

Emitted when the experiment has just been started.

void argos::CQTOpenGLMainWindow::ExperimentSuspended ( )
signal

Emitted when the experiment has been suspended.

The difference between pausing and suspending an experiment is that pausing results from an action of the user; suspending is caused by an error condition. To resume execution, call ResumeExperiment().

void argos::CQTOpenGLMainWindow::FastForwardExperiment ( )
slot

Fast forwards the experiment.

Internally sets a timer whose period is 1ms.

Definition at line 672 of file qtopengl_main_window.cpp.

QString argos::CQTOpenGLMainWindow::GetCameraXMLData ( )
slot

Definition at line 930 of file qtopengl_main_window.cpp.

const QString& argos::CQTOpenGLMainWindow::GetIconDir ( ) const
inline

Definition at line 61 of file qtopengl_main_window.h.

CQTOpenGLWidget& argos::CQTOpenGLMainWindow::GetOpenGLWidget ( )
inline

Definition at line 45 of file qtopengl_main_window.h.

const CQTOpenGLWidget& argos::CQTOpenGLMainWindow::GetOpenGLWidget ( ) const
inline

Definition at line 49 of file qtopengl_main_window.h.

const QString& argos::CQTOpenGLMainWindow::GetTextureDir ( ) const
inline

Definition at line 65 of file qtopengl_main_window.h.

CQTOpenGLUserFunctions& argos::CQTOpenGLMainWindow::GetUserFunctions ( )
inline

Definition at line 53 of file qtopengl_main_window.h.

const CQTOpenGLUserFunctions& argos::CQTOpenGLMainWindow::GetUserFunctions ( ) const
inline

Definition at line 57 of file qtopengl_main_window.h.

void argos::CQTOpenGLMainWindow::PauseExperiment ( )
slot

Pauses the experiment.

The experiment can be resumed with PlayExperiment() or FastForwardExperiment().

Definition at line 729 of file qtopengl_main_window.cpp.

void argos::CQTOpenGLMainWindow::PlayExperiment ( )
slot

Plays the experiment.

Internally sets a timer whose period corresponds to the XML attribute 'ticks_per_second' in the .argos file.

Definition at line 639 of file qtopengl_main_window.cpp.

void argos::CQTOpenGLMainWindow::ResetExperiment ( )
slot

Resets the state of the experiment to its state right after initialization.

Definition at line 796 of file qtopengl_main_window.cpp.

void argos::CQTOpenGLMainWindow::ResumeExperiment ( )
slot

Resumes a suspended experiment.

Definition at line 854 of file qtopengl_main_window.cpp.

void argos::CQTOpenGLMainWindow::StepExperiment ( )
slot

Executes one experiment time step.

Definition at line 703 of file qtopengl_main_window.cpp.

void argos::CQTOpenGLMainWindow::SuspendExperiment ( )
slot

Suspends an experiment due to an error.

Definition at line 832 of file qtopengl_main_window.cpp.

void argos::CQTOpenGLMainWindow::SwitchCamera ( QAction *  pc_action)
slot

Definition at line 1058 of file qtopengl_main_window.cpp.

void argos::CQTOpenGLMainWindow::TerminateExperiment ( )
slot

Terminates the execution of the experiment.

Definition at line 758 of file qtopengl_main_window.cpp.