GLWidget Class Reference

#include <GLWidget.hh>

Inherits QWidget.

Public Types

enum  SelectionLevels { MODEL, LINK }
 Unique identifiers for all selection levels supported. More...
 

Signals

void clicked ()
 
void selectionMsgReceived (const QString &_name)
 QT signal to notify when we received a selection msg. More...
 

Public Member Functions

 GLWidget (QWidget *_parent=0)
 
virtual ~GLWidget ()
 
rendering::UserCameraPtr Camera () const
 Return the user camera. More...
 
void Clear ()
 
rendering::UserCameraPtr GetCamera () const GAZEBO_DEPRECATED(7.0)
 Return the user camera. More...
 
rendering::ScenePtr GetScene () const GAZEBO_DEPRECATED(7.0)
 Return the scene. More...
 
rendering::ScenePtr Scene () const
 Return the scene. More...
 
std::vector< rendering::VisualPtrSelectedVisuals () const
 Returns the list of selected visuals. More...
 
void ViewScene (rendering::ScenePtr _scene)
 View a scene in this widget. More...
 

Protected Member Functions

virtual void enterEvent (QEvent *_event)
 
void keyPressEvent (QKeyEvent *_event)
 
void keyReleaseEvent (QKeyEvent *_event)
 
void mouseDoubleClickEvent (QMouseEvent *_event)
 
void mouseMoveEvent (QMouseEvent *_event)
 
void mousePressEvent (QMouseEvent *_event)
 
void mouseReleaseEvent (QMouseEvent *_event)
 
virtual void moveEvent (QMoveEvent *_e)
 
virtual QPaintEngine * paintEngine () const
 Override paintEngine to stop Qt From trying to draw on top of OGRE. More...
 
virtual void paintEvent (QPaintEvent *_e)
 
virtual void resizeEvent (QResizeEvent *_e)
 
virtual void showEvent (QShowEvent *_e)
 Custom processing for the QT showEvent. More...
 
void wheelEvent (QWheelEvent *_event)
 

Member Enumeration Documentation

§ SelectionLevels

Unique identifiers for all selection levels supported.

Enumerator
MODEL 

Model level.

LINK 

Link level.

Constructor & Destructor Documentation

§ GLWidget()

GLWidget ( QWidget *  _parent = 0)

§ ~GLWidget()

virtual ~GLWidget ( )
virtual

Member Function Documentation

§ Camera()

rendering::UserCameraPtr Camera ( ) const

Return the user camera.

Returns
User camera.

§ Clear()

void Clear ( )

§ clicked

void clicked ( )
signal

§ enterEvent()

virtual void enterEvent ( QEvent *  _event)
protectedvirtual

§ GetCamera()

rendering::UserCameraPtr GetCamera ( ) const

Return the user camera.

Returns
User camera.
Deprecated:
See rendering::UserCameraPtr Camera() const.

§ GetScene()

rendering::ScenePtr GetScene ( ) const

Return the scene.

Returns
Scene.
Deprecated:
See rendering::ScenePtr Scene() const.

§ keyPressEvent()

void keyPressEvent ( QKeyEvent *  _event)
protected

§ keyReleaseEvent()

void keyReleaseEvent ( QKeyEvent *  _event)
protected

§ mouseDoubleClickEvent()

void mouseDoubleClickEvent ( QMouseEvent *  _event)
protected

§ mouseMoveEvent()

void mouseMoveEvent ( QMouseEvent *  _event)
protected

§ mousePressEvent()

void mousePressEvent ( QMouseEvent *  _event)
protected

§ mouseReleaseEvent()

void mouseReleaseEvent ( QMouseEvent *  _event)
protected

§ moveEvent()

virtual void moveEvent ( QMoveEvent *  _e)
protectedvirtual

§ paintEngine()

virtual QPaintEngine* paintEngine ( ) const
protectedvirtual

Override paintEngine to stop Qt From trying to draw on top of OGRE.

Returns
NULL.

§ paintEvent()

virtual void paintEvent ( QPaintEvent *  _e)
protectedvirtual

§ resizeEvent()

virtual void resizeEvent ( QResizeEvent *  _e)
protectedvirtual

§ Scene()

rendering::ScenePtr Scene ( ) const

Return the scene.

Returns
Scene.

§ SelectedVisuals()

std::vector<rendering::VisualPtr> SelectedVisuals ( ) const

Returns the list of selected visuals.

Returns
List with pointers to selected visuals.

§ selectionMsgReceived

void selectionMsgReceived ( const QString &  _name)
signal

QT signal to notify when we received a selection msg.

Parameters
[in]_nameName of the selected entity.

§ showEvent()

virtual void showEvent ( QShowEvent *  _e)
protectedvirtual

Custom processing for the QT showEvent.

Based on empirical evidence, we believe Mac needs to create the render window in this function.

Parameters
[in]_eThe QT show event information.

§ ViewScene()

void ViewScene ( rendering::ScenePtr  _scene)

View a scene in this widget.

This will use the scene's UserCamera to visualize the scene. If a UserCamera does not exist, one is created with the name "gzclient_camera".

Parameters
[in]_scenePointer to the scene to visualize.

§ wheelEvent()

void wheelEvent ( QWheelEvent *  _event)
protected

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