Public Types | Signals | Public Member Functions | Protected Member Functions | List of all members
gazebo::gui::GLWidget Class Reference

#include <GLWidget.hh>

Inheritance diagram for gazebo::gui::GLWidget:
Inheritance graph
[legend]

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 ()
 
void Clear ()
 
rendering::UserCameraPtr GetCamera () const
 
rendering::ScenePtr GetScene () const
 
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

Unique identifiers for all selection levels supported.

Enumerator
MODEL 

Model level.

LINK 

Link level.

Constructor & Destructor Documentation

gazebo::gui::GLWidget::GLWidget ( QWidget *  _parent = 0)
virtual gazebo::gui::GLWidget::~GLWidget ( )
virtual

Member Function Documentation

void gazebo::gui::GLWidget::Clear ( )
void gazebo::gui::GLWidget::clicked ( )
signal
virtual void gazebo::gui::GLWidget::enterEvent ( QEvent *  event)
protectedvirtual
rendering::UserCameraPtr gazebo::gui::GLWidget::GetCamera ( ) const
rendering::ScenePtr gazebo::gui::GLWidget::GetScene ( ) const
void gazebo::gui::GLWidget::keyPressEvent ( QKeyEvent *  _event)
protected
void gazebo::gui::GLWidget::keyReleaseEvent ( QKeyEvent *  _event)
protected
void gazebo::gui::GLWidget::mouseDoubleClickEvent ( QMouseEvent *  _event)
protected
void gazebo::gui::GLWidget::mouseMoveEvent ( QMouseEvent *  _event)
protected
void gazebo::gui::GLWidget::mousePressEvent ( QMouseEvent *  _event)
protected
void gazebo::gui::GLWidget::mouseReleaseEvent ( QMouseEvent *  _event)
protected
virtual void gazebo::gui::GLWidget::moveEvent ( QMoveEvent *  _e)
protectedvirtual
virtual QPaintEngine* gazebo::gui::GLWidget::paintEngine ( ) const
protectedvirtual

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

Returns
NULL.
virtual void gazebo::gui::GLWidget::paintEvent ( QPaintEvent *  _e)
protectedvirtual
virtual void gazebo::gui::GLWidget::resizeEvent ( QResizeEvent *  _e)
protectedvirtual
std::vector<rendering::VisualPtr> gazebo::gui::GLWidget::SelectedVisuals ( ) const

Returns the list of selected visuals.

Returns
List with pointers to selected visuals.
void gazebo::gui::GLWidget::selectionMsgReceived ( const QString &  _name)
signal

QT signal to notify when we received a selection msg.

Parameters
[in]_nameName of the selected entity.
virtual void gazebo::gui::GLWidget::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.
void gazebo::gui::GLWidget::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.
void gazebo::gui::GLWidget::wheelEvent ( QWheelEvent *  _event)
protected

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