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();
156 private:
void Copy(
const std::string &_name);
160 private:
void Paste(
const std::string &_name);
163 private slots:
void OnCopy();
166 private slots:
void OnPaste();
168 private:
int windowId;
172 private: QFrame *renderFrame;
178 private: std::vector<event::ConnectionPtr> connections;
199 private: std::string keyText;
200 private: Qt::KeyboardModifiers keyModifiers;
201 private: QPoint onShiftMousePos;
203 private: std::string copiedObject;
205 private: std::string state;
207 private: std::list<std::pair<std::string, math::Pose> > moveHistory;
210 private: std::string copyEntityName;
214 private:
bool sceneCreated;
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:48
Definition: LightMaker.hh:80
Definition: ModelMaker.hh:36
Definition: MeshMaker.hh:33
Generic description of a keyboard event.
Definition: KeyEvent.hh:31
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:52
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:72
boost::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:100
boost::shared_ptr< UserCamera > UserCameraPtr
Definition: RenderTypes.hh:84
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:44
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48