17 #ifndef _GAZEBO_GUI_GLWIDGET_HH_
18 #define _GAZEBO_GUI_GLWIDGET_HH_
38 class GLWidgetPrivate;
53 public:
GLWidget(QWidget *_parent = 0);
75 public: rendering::
ScenePtr GetScene() const GAZEBO_DEPRECATED(7.0);
79 public: rendering::
ScenePtr Scene() const;
85 public: std::vector<rendering::
VisualPtr> SelectedVisuals() const;
87 signals:
void clicked();
91 signals:
void selectionMsgReceived(const QString &_name);
93 protected: virtual
void moveEvent(QMoveEvent *_e);
94 protected: virtual
void paintEvent(QPaintEvent *_e);
95 protected: virtual
void resizeEvent(QResizeEvent *_e);
101 protected: virtual
void showEvent(QShowEvent *_e);
103 protected: virtual
void enterEvent(QEvent *_event);
106 protected:
void keyPressEvent(QKeyEvent *_event);
107 protected:
void keyReleaseEvent(QKeyEvent *_event);
108 protected:
void wheelEvent(QWheelEvent *_event);
109 protected:
void mousePressEvent(QMouseEvent *_event);
110 protected:
void mouseDoubleClickEvent(QMouseEvent *_event);
111 protected:
void mouseMoveEvent(QMouseEvent *_event);
112 protected:
void mouseReleaseEvent(QMouseEvent *_event);
117 protected: virtual QPaintEngine *paintEngine() const;
119 private: std::
string OgreHandle() const;
124 private:
bool OnMouseMove(const common::MouseEvent &_event);
127 private:
void OnMouseMoveNormal();
130 private:
void OnMouseMoveMakeEntity();
135 private:
bool OnMouseRelease(const common::MouseEvent &_event);
138 private:
void OnMouseReleaseNormal();
141 private:
void OnMouseReleaseMakeEntity();
146 private:
bool OnMousePress(const common::MouseEvent &_event);
149 private:
void OnMousePressNormal();
152 private:
void OnMousePressMakeEntity();
157 private:
bool OnMouseDoubleClick(const common::MouseEvent &_event);
159 private:
void OnRequest(ConstRequestPtr &_msg);
160 private:
void OnCreateScene(const std::
string &_name);
161 private:
void OnRemoveScene(const std::
string &_name);
162 private:
void OnMoveMode(
bool _mode);
163 private:
void OnCreateEntity(const std::
string &_type,
164 const std::
string &_data);
166 private:
void OnFPS();
167 private:
void OnOrbit();
168 private:
void OnManipMode(const std::
string &_mode);
170 private:
void OnSetSelectedEntity(const std::
string &_name,
171 const std::
string &_mode);
173 private:
bool eventFilter(QObject *_obj, QEvent *_event);
175 private:
void ClearSelection();
179 private:
void SetSelectedVisual(rendering::
VisualPtr _vis);
182 private:
void DeselectAllVisuals();
191 private:
void OnAlignMode(const std::
string &_axis,
192 const std::
string &_config, const std::
string &_target,
193 const
bool _preview, const
bool _inverted = false);
197 private:
void Copy(const std::
string &_name);
201 private:
void Paste(const std::
string &_name);
204 private slots:
void OnCopy();
207 private slots:
void OnPaste();
211 private slots:
void OnModelEditor(
bool _checked);
214 private slots:
void OnOrtho();
217 private slots:
void OnPerspective();
224 private:
void SetMouseEventButton(const Qt::MouseButton &_button);
231 private:
void SetMouseEventButtons(const Qt::MouseButtons &_buttons);
235 private: std::unique_ptr<GLWidgetPrivate> dataPtr;
boost::shared_ptr< UserCamera > UserCameraPtr
Definition: RenderTypes.hh:92
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:80
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:112