17 #ifndef _GL_WIDGET_HH_
18 #define _GL_WIDGET_HH_
54 public:
GLWidget(QWidget *_parent = 0);
68 signals:
void clicked();
71 protected:
virtual void moveEvent(QMoveEvent *_e);
72 protected:
virtual void paintEvent(QPaintEvent *_e);
73 protected:
virtual void resizeEvent(QResizeEvent *_e);
74 protected:
virtual void showEvent(QShowEvent *_e);
75 protected:
virtual void enterEvent(QEvent * event);
78 protected:
void keyPressEvent(QKeyEvent *_event);
79 protected:
void keyReleaseEvent(QKeyEvent *_event);
80 protected:
void wheelEvent(QWheelEvent *_event);
81 protected:
void mousePressEvent(QMouseEvent *_event);
82 protected:
void mouseDoubleClickEvent(QMouseEvent *_event);
83 protected:
void mouseMoveEvent(QMouseEvent *_event);
84 protected:
void mouseReleaseEvent(QMouseEvent *_event);
86 private: std::string GetOgreHandle()
const;
94 private:
void OnMouseMoveNormal();
97 private:
void OnMouseMoveMakeEntity();
105 private:
void OnMouseReleaseNormal();
108 private:
void OnMouseReleaseMakeEntity();
116 private:
void OnMousePressNormal();
119 private:
void OnMousePressMakeEntity();
126 private:
void OnRequest(ConstRequestPtr &_msg);
127 private:
void OnCreateScene(
const std::string &_name);
128 private:
void OnRemoveScene(
const std::string &_name);
129 private:
void OnMoveMode(
bool _mode);
130 private:
void OnCreateEntity(
const std::string &_type,
131 const std::string &_data);
133 private:
void OnFPS();
134 private:
void OnOrbit();
135 private:
void OnManipMode(
const std::string &_mode);
137 private:
void OnSetSelectedEntity(
const std::string &_name,
138 const std::string &_mode);
140 private:
void OnSelectionMsg(ConstSelectionPtr &_msg);
142 private:
bool eventFilter(QObject *_obj, QEvent *_event);
144 private:
void ClearSelection();
146 private:
void PushHistory(
const std::string &_visName,
148 private:
void PopHistory();
160 private:
void OnAlignMode(
const std::string &_axis,
161 const std::string &_config,
const std::string &_target,
166 private:
void Copy(
const std::string &_name);
170 private:
void Paste(
const std::string &_name);
173 private slots:
void OnCopy();
176 private slots:
void OnPaste();
180 private slots:
void OnModelEditor(
bool _checked);
182 private:
int windowId;
186 private: QFrame *renderFrame;
192 private: std::vector<event::ConnectionPtr> connections;
210 private: std::vector<rendering::VisualPtr> selectedVisuals;
220 private: std::string keyText;
221 private: Qt::KeyboardModifiers keyModifiers;
222 private: QPoint onShiftMousePos;
224 private: std::string copiedObject;
226 private: std::string state;
228 private: std::list<std::pair<std::string, math::Pose> > moveHistory;
231 private: std::string copyEntityName;
235 private:
bool sceneCreated;
238 private:
bool modelEditorEnabled;
241 private: boost::mutex selectedVisMutex;
Generic description of a mouse event.
Definition: MouseEvent.hh:32
Encapsulates a position and rotation in three space.
Definition: Pose.hh:40
Definition: LightMaker.hh:35
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
Definition: LightMaker.hh:80
Definition: ModelMaker.hh:36
Definition: MeshMaker.hh:33
Generic description of a keyboard event.
Definition: KeyEvent.hh:32
Definition: SphereMaker.hh:35
Forward declarations for transport.
to make a box
Definition: BoxMaker.hh:41
to make a cylinder
Definition: CylinderMaker.hh:39
Definition: LightMaker.hh:70
to make an entity base class
Definition: EntityMaker.hh:41
Definition: LightMaker.hh:96
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:74
boost::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:102
boost::shared_ptr< UserCamera > UserCameraPtr
Definition: RenderTypes.hh:86
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48