ARGoS  3
A parallel, multi-engine simulator for swarm robotics
argos::CQTOpenGLWidget Class Reference

#include <qtopengl_widget.h>

List of all members.

Classes

struct  SFrameGrabData
struct  SSelectionInfo

Public Slots

void PlayPauseSimulation (bool b_play)
void FastForwardPauseSimulation (bool b_play)
void StepSimulation ()
void StopSimulation ()
void ResetSimulation ()
void SetAntiAliasing (bool b_antialias_on)
void SetDrawFrameEvery (int n_every)
void SetGrabFrame (bool b_grab_on)
void SetCamera (int n_camera)
void SetCameraFocalLength (double f_length)

Signals

void StepDone (int n_step)
void SimulationDone ()
void EntitySelected (size_t un_index)
void EntityDeselected (size_t un_index)

Public Member Functions

 CQTOpenGLWidget (const QGLFormat &c_format, QWidget *pc_parent, CQTOpenGLMainWindow *pc_main_window, CQTOpenGLUserFunctions &c_user_functions)
virtual ~CQTOpenGLWidget ()
virtual void initializeGL ()
virtual void resizeGL (int n_width, int n_height)
virtual void paintEvent (QPaintEvent *)
void DrawScene ()
void SelectInScene (UInt32 un_x, UInt32 un_y)
void DrawPositionalEntity (CPositionalEntity &c_entity)
void DrawRays (CControllableEntity &c_entity)
void DrawBoundingBox (CEmbodiedEntity &c_entity)
virtual int heightForWidth (int w) const
virtual QSize sizeHint () const
virtual QSize minimumSize () const
CQTOpenGLUserFunctionsGetUserFunctions ()
CQTOpenGLCameraGetCamera ()
SFrameGrabDataGetFrameGrabData ()
void SetInvertMouse (bool b_InvertMouse)

Protected Member Functions

void InitializeArena ()
void DrawArena ()
void DrawAxes ()
virtual void timerEvent (QTimerEvent *pc_event)
virtual void mouseMoveEvent (QMouseEvent *pc_event)
virtual void mousePressEvent (QMouseEvent *pc_event)
virtual void mouseReleaseEvent (QMouseEvent *pc_event)
virtual void keyPressEvent (QKeyEvent *pc_event)
virtual void keyReleaseEvent (QKeyEvent *pc_event)
virtual void resizeEvent (QResizeEvent *pc_event)
void reactToKeyEvent ()

Detailed Description

Definition at line 58 of file qtopengl_widget.h.


Constructor & Destructor Documentation

argos::CQTOpenGLWidget::CQTOpenGLWidget ( const QGLFormat &  c_format,
QWidget *  pc_parent,
CQTOpenGLMainWindow pc_main_window,
CQTOpenGLUserFunctions c_user_functions 
)

Definition at line 36 of file qtopengl_widget.cpp.

Definition at line 112 of file qtopengl_widget.cpp.


Member Function Documentation

void argos::CQTOpenGLWidget::DrawArena ( ) [protected]

Definition at line 608 of file qtopengl_widget.cpp.

void argos::CQTOpenGLWidget::DrawAxes ( ) [protected]

Definition at line 164 of file qtopengl_widget.cpp.

Definition at line 397 of file qtopengl_widget.cpp.

Definition at line 364 of file qtopengl_widget.cpp.

Definition at line 171 of file qtopengl_widget.cpp.

void argos::CQTOpenGLWidget::EntityDeselected ( size_t  un_index) [signal]
void argos::CQTOpenGLWidget::EntitySelected ( size_t  un_index) [signal]

Definition at line 476 of file qtopengl_widget.cpp.

Definition at line 130 of file qtopengl_widget.h.

virtual int argos::CQTOpenGLWidget::heightForWidth ( int  w) const [inline, virtual]

Definition at line 114 of file qtopengl_widget.h.

Definition at line 581 of file qtopengl_widget.cpp.

Definition at line 132 of file qtopengl_widget.cpp.

void argos::CQTOpenGLWidget::keyPressEvent ( QKeyEvent *  pc_event) [protected, virtual]

Definition at line 798 of file qtopengl_widget.cpp.

void argos::CQTOpenGLWidget::keyReleaseEvent ( QKeyEvent *  pc_event) [protected, virtual]

Definition at line 844 of file qtopengl_widget.cpp.

virtual QSize argos::CQTOpenGLWidget::minimumSize ( ) const [inline, virtual]

Definition at line 122 of file qtopengl_widget.h.

void argos::CQTOpenGLWidget::mouseMoveEvent ( QMouseEvent *  pc_event) [protected, virtual]

Definition at line 713 of file qtopengl_widget.cpp.

void argos::CQTOpenGLWidget::mousePressEvent ( QMouseEvent *  pc_event) [protected, virtual]

Definition at line 744 of file qtopengl_widget.cpp.

void argos::CQTOpenGLWidget::mouseReleaseEvent ( QMouseEvent *  pc_event) [protected, virtual]

Definition at line 759 of file qtopengl_widget.cpp.

void argos::CQTOpenGLWidget::paintEvent ( QPaintEvent *  ) [virtual]

Definition at line 156 of file qtopengl_widget.cpp.

void argos::CQTOpenGLWidget::PlayPauseSimulation ( bool  b_play) [slot]

Definition at line 461 of file qtopengl_widget.cpp.

Definition at line 883 of file qtopengl_widget.cpp.

Definition at line 527 of file qtopengl_widget.cpp.

void argos::CQTOpenGLWidget::resizeEvent ( QResizeEvent *  pc_event) [protected, virtual]

Definition at line 876 of file qtopengl_widget.cpp.

void argos::CQTOpenGLWidget::resizeGL ( int  n_width,
int  n_height 
) [virtual]

Definition at line 453 of file qtopengl_widget.cpp.

Definition at line 252 of file qtopengl_widget.cpp.

void argos::CQTOpenGLWidget::SetAntiAliasing ( bool  b_antialias_on) [slot]

Definition at line 536 of file qtopengl_widget.cpp.

void argos::CQTOpenGLWidget::SetCamera ( int  n_camera) [slot]

Definition at line 561 of file qtopengl_widget.cpp.

void argos::CQTOpenGLWidget::SetCameraFocalLength ( double  f_length) [slot]

Definition at line 570 of file qtopengl_widget.cpp.

void argos::CQTOpenGLWidget::SetDrawFrameEvery ( int  n_every) [slot]

Definition at line 547 of file qtopengl_widget.cpp.

void argos::CQTOpenGLWidget::SetGrabFrame ( bool  b_grab_on) [slot]

Definition at line 554 of file qtopengl_widget.cpp.

void argos::CQTOpenGLWidget::SetInvertMouse ( bool  b_InvertMouse) [inline]

Definition at line 138 of file qtopengl_widget.h.

virtual QSize argos::CQTOpenGLWidget::sizeHint ( ) const [inline, virtual]

Definition at line 118 of file qtopengl_widget.h.

void argos::CQTOpenGLWidget::StepDone ( int  n_step) [signal]

Definition at line 493 of file qtopengl_widget.cpp.

Definition at line 518 of file qtopengl_widget.cpp.

void argos::CQTOpenGLWidget::timerEvent ( QTimerEvent *  pc_event) [protected, virtual]

Definition at line 706 of file qtopengl_widget.cpp.


The documentation for this class was generated from the following files: