#include <qtopengl_widget.h>
Definition at line 56 of file qtopengl_widget.h.
◆ CQTOpenGLWidget()
Class constructor.
- Parameters
-
pc_parent | The containing widget. |
pc_main_window | A pointer to the main window. |
c_user_functions | A reference to the main window. |
Definition at line 38 of file qtopengl_widget.cpp.
◆ ~CQTOpenGLWidget()
argos::CQTOpenGLWidget::~CQTOpenGLWidget |
( |
| ) |
|
|
virtual |
◆ DeselectEntity()
void argos::CQTOpenGLWidget::DeselectEntity |
( |
| ) |
|
Deselects the currently selected entity.
If no entity is selected, nothing is done.
Definition at line 350 of file qtopengl_widget.cpp.
◆ DrawArena()
void argos::CQTOpenGLWidget::DrawArena |
( |
| ) |
|
|
protected |
◆ DrawAxes()
void argos::CQTOpenGLWidget::DrawAxes |
( |
| ) |
|
|
protected |
◆ DrawBoundingBox()
◆ DrawEntity() [1/2]
◆ DrawEntity() [2/2]
◆ DrawRays()
◆ DrawScene()
void argos::CQTOpenGLWidget::DrawScene |
( |
| ) |
|
|
protected |
◆ EntityDeselected
void argos::CQTOpenGLWidget::EntityDeselected |
( |
size_t |
un_index | ) |
|
|
signal |
Emitted when an entity is deselected.
- Parameters
-
The | index of the deselected entity |
◆ EntitySelected
void argos::CQTOpenGLWidget::EntitySelected |
( |
size_t |
un_index | ) |
|
|
signal |
Emitted when an entity is selected.
- Parameters
-
The | index of the selected entity |
◆ ExperimentDone
void argos::CQTOpenGLWidget::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.
◆ FastForwardExperiment
void argos::CQTOpenGLWidget::FastForwardExperiment |
( |
| ) |
|
|
slot |
Fast forwards the experiment.
Internally sets a timer whose period is 1ms.
Definition at line 603 of file qtopengl_widget.cpp.
◆ GetCamera()
◆ GetFrameGrabData()
◆ GetSelectedEntity()
CEntity * argos::CQTOpenGLWidget::GetSelectedEntity |
( |
| ) |
|
Returns the currently selected entity, or NULL if none is selected.
- Returns
- The currently selected entity.
Definition at line 311 of file qtopengl_widget.cpp.
◆ GetUserFunctions()
◆ GetWindowCoordInWorld()
CVector3 argos::CQTOpenGLWidget::GetWindowCoordInWorld |
( |
int |
n_x, |
|
|
int |
n_y |
|
) |
| |
Returns the position in the world corresponding to the given window coordinate.
Definition at line 269 of file qtopengl_widget.cpp.
◆ heightForWidth()
virtual int argos::CQTOpenGLWidget::heightForWidth |
( |
int |
w | ) |
const |
|
inlinevirtual |
◆ initializeGL()
void argos::CQTOpenGLWidget::initializeGL |
( |
| ) |
|
|
virtual |
Called when the GL context must be initialized.
This happens once per runtime, either before the first call to resizeGL() or to paintGL().
Definition at line 93 of file qtopengl_widget.cpp.
◆ KeyPressed
void argos::CQTOpenGLWidget::KeyPressed |
( |
QKeyEvent * |
pc_event | ) |
|
|
slot |
◆ keyPressEvent()
void argos::CQTOpenGLWidget::keyPressEvent |
( |
QKeyEvent * |
pc_event | ) |
|
|
protectedvirtual |
◆ KeyReleased
void argos::CQTOpenGLWidget::KeyReleased |
( |
QKeyEvent * |
pc_event | ) |
|
|
slot |
◆ keyReleaseEvent()
void argos::CQTOpenGLWidget::keyReleaseEvent |
( |
QKeyEvent * |
pc_event | ) |
|
|
protectedvirtual |
◆ minimumSize()
virtual QSize argos::CQTOpenGLWidget::minimumSize |
( |
| ) |
const |
|
inlinevirtual |
Called internally by Qt to know the minimum widget size.
Definition at line 198 of file qtopengl_widget.h.
◆ mouseMoveEvent()
void argos::CQTOpenGLWidget::mouseMoveEvent |
( |
QMouseEvent * |
pc_event | ) |
|
|
protectedvirtual |
◆ mousePressEvent()
void argos::CQTOpenGLWidget::mousePressEvent |
( |
QMouseEvent * |
pc_event | ) |
|
|
protectedvirtual |
◆ mouseReleaseEvent()
void argos::CQTOpenGLWidget::mouseReleaseEvent |
( |
QMouseEvent * |
pc_event | ) |
|
|
protectedvirtual |
◆ paintGL()
void argos::CQTOpenGLWidget::paintGL |
( |
| ) |
|
|
virtual |
◆ PauseExperiment
void argos::CQTOpenGLWidget::PauseExperiment |
( |
| ) |
|
|
slot |
◆ PlayExperiment
void argos::CQTOpenGLWidget::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 594 of file qtopengl_widget.cpp.
◆ RayFromWindowCoord()
CRay3 argos::CQTOpenGLWidget::RayFromWindowCoord |
( |
int |
n_x, |
|
|
int |
n_y |
|
) |
| |
Casts a ray from the given window coordinate.
The ray goes from the near clipping plane to the far one.
Definition at line 223 of file qtopengl_widget.cpp.
◆ reactToKeyEvent()
void argos::CQTOpenGLWidget::reactToKeyEvent |
( |
| ) |
|
|
protected |
◆ ResetExperiment
void argos::CQTOpenGLWidget::ResetExperiment |
( |
| ) |
|
|
slot |
Resets the state of the experiment to its state right after initialization.
Definition at line 646 of file qtopengl_widget.cpp.
◆ resizeEvent()
void argos::CQTOpenGLWidget::resizeEvent |
( |
QResizeEvent * |
pc_event | ) |
|
|
protectedvirtual |
◆ SelectEntity()
void argos::CQTOpenGLWidget::SelectEntity |
( |
CEntity & |
c_entity | ) |
|
Selects the passed entity.
- Parameters
-
c_entity | The entity to select. |
Definition at line 320 of file qtopengl_widget.cpp.
◆ SelectInScene()
void argos::CQTOpenGLWidget::SelectInScene |
( |
UInt32 |
un_x, |
|
|
UInt32 |
un_y |
|
) |
| |
Selects the entity closest to the camera at the given screen coordinates.
- Parameters
-
un_x | The screen X coordinate. |
un_y | The screen Y coordinate. |
Definition at line 364 of file qtopengl_widget.cpp.
◆ SetCamera
void argos::CQTOpenGLWidget::SetCamera |
( |
int |
n_camera | ) |
|
|
slot |
Sets the current camera in use.
- Parameters
-
n_camera | The index of the wanted camera [0-11] |
Definition at line 671 of file qtopengl_widget.cpp.
◆ SetCameraFocalLength
void argos::CQTOpenGLWidget::SetCameraFocalLength |
( |
double |
f_length | ) |
|
|
slot |
Sets the focal length of the current camera.
- Parameters
-
f_length | The desired focal length |
Definition at line 680 of file qtopengl_widget.cpp.
◆ SetDrawFrameEvery
void argos::CQTOpenGLWidget::SetDrawFrameEvery |
( |
int |
n_every | ) |
|
|
slot |
When fast-forwarding, sets every how many steps a frame must be drawn.
Definition at line 657 of file qtopengl_widget.cpp.
◆ SetGrabFrame
void argos::CQTOpenGLWidget::SetGrabFrame |
( |
bool |
b_grab_on | ) |
|
|
slot |
◆ SetInvertMouse()
void argos::CQTOpenGLWidget::SetInvertMouse |
( |
bool |
b_InvertMouse | ) |
|
|
inline |
Sets whether the mouse should be inverted when moving.
Definition at line 226 of file qtopengl_widget.h.
◆ sizeHint()
virtual QSize argos::CQTOpenGLWidget::sizeHint |
( |
| ) |
const |
|
inlinevirtual |
Called internally by Qt to know the preferred widget size.
Definition at line 191 of file qtopengl_widget.h.
◆ StepDone
void argos::CQTOpenGLWidget::StepDone |
( |
int |
n_step | ) |
|
|
signal |
Emitted whenever a time step has been executed.
- Parameters
-
n_step | The time-step count |
◆ StepExperiment
void argos::CQTOpenGLWidget::StepExperiment |
( |
| ) |
|
|
slot |
◆ timerEvent()
void argos::CQTOpenGLWidget::timerEvent |
( |
QTimerEvent * |
pc_event | ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files: