1 #ifndef EDITENTITYCOMMAND_H 2 #define EDITENTITYCOMMAND_H 6 #include <QUndoCommand> 8 #include <osg/observer_ptr> 10 #include "UserScene.h" 14 #include "ShaderedEntity2D.h" 15 #include "Bookmarks.h" 16 #include "SceneState.h" 33 virtual void undo() = 0;
34 virtual void redo() = 0;
37 osg::observer_ptr<entity::UserScene> m_scene;
38 osg::observer_ptr<entity::Canvas> m_canvas;
51 #ifndef DOXYGEN_SHOULD_SKIP_THIS 52 void undo() Q_DECL_OVERRIDE;
53 void redo() Q_DECL_OVERRIDE;
57 osg::observer_ptr<entity::UserScene> m_scene;
58 osg::observer_ptr<entity::Canvas> m_canvas;
59 osg::Vec3f m_translate;
71 #ifndef DOXYGEN_SHOULD_SKIP_THIS 72 void undo() Q_DECL_OVERRIDE;
73 void redo() Q_DECL_OVERRIDE;
77 osg::observer_ptr<entity::UserScene> m_scene;
78 osg::observer_ptr<entity::Canvas> m_canvas;
92 #ifndef DOXYGEN_SHOULD_SKIP_THIS 93 void undo() Q_DECL_OVERRIDE;
94 void redo() Q_DECL_OVERRIDE;
98 osg::observer_ptr<entity::UserScene> m_scene;
99 osg::ref_ptr<entity::Canvas> m_canvas;
100 osg::observer_ptr<entity::Bookmarks> m_bookmarks;
112 #ifndef DOXYGEN_SHOULD_SKIP_THIS 113 void undo() Q_DECL_OVERRIDE;
114 void redo() Q_DECL_OVERRIDE;
118 osg::observer_ptr<entity::UserScene> m_scene;
119 osg::observer_ptr<entity::Canvas> m_canvas;
120 osg::ref_ptr<entity::Photo> m_photo;
121 osg::observer_ptr<entity::Bookmarks> m_bookmarks;
133 osg::ref_ptr<entity::Entity2D> m_entity;
141 const std::vector<osg::ref_ptr<entity::Entity2D>>& entities);
143 void undo() Q_DECL_OVERRIDE;
144 void redo() Q_DECL_OVERRIDE;
147 const std::vector<osg::ref_ptr<entity::Entity2D>> m_entities;
160 const osg::Vec3f& eye, QUndoCommand* parent = 0);
162 #ifndef DOXYGEN_SHOULD_SKIP_THIS 163 void undo() Q_DECL_OVERRIDE;
164 void redo() Q_DECL_OVERRIDE;
170 osg::observer_ptr<entity::UserScene> m_scene;
171 const std::vector<entity::Entity2D*> m_entities;
172 osg::observer_ptr<entity::Canvas> m_canvasCurrent;
173 osg::observer_ptr<entity::Canvas> m_canvasTarget;
184 double du,
double dv, QUndoCommand* parent = 0);
187 #ifndef DOXYGEN_SHOULD_SKIP_THIS 188 void undo() Q_DECL_OVERRIDE;
189 void redo() Q_DECL_OVERRIDE;
193 osg::observer_ptr<entity::UserScene> m_scene;
194 std::vector<entity::Entity2D*> m_entities;
195 osg::observer_ptr<entity::Canvas> m_canvas;
208 double scaleX,
double scaleY,
210 QUndoCommand* parent = 0);
213 #ifndef DOXYGEN_SHOULD_SKIP_THIS 214 void undo() Q_DECL_OVERRIDE;
215 void redo() Q_DECL_OVERRIDE;
219 osg::observer_ptr<entity::UserScene> m_scene;
220 std::vector<entity::Entity2D*> m_entities;
221 osg::observer_ptr<entity::Canvas> m_canvas;
222 double m_scaleX, m_scaleY;
233 double theta, osg::Vec3f center, QUndoCommand* parent = 0);
236 #ifndef DOXYGEN_SHOULD_SKIP_THIS 237 void undo() Q_DECL_OVERRIDE;
238 void redo() Q_DECL_OVERRIDE;
242 osg::observer_ptr<entity::UserScene> m_scene;
243 std::vector<entity::Entity2D*> m_entities;
244 osg::observer_ptr<entity::Canvas> m_canvas;
257 #ifndef DOXYGEN_SHOULD_SKIP_THIS 258 void undo() Q_DECL_OVERRIDE;
259 void redo() Q_DECL_OVERRIDE;
262 osg::observer_ptr<entity::UserScene> m_scene;
263 osg::observer_ptr<entity::Canvas> m_canvas;
264 osg::ref_ptr<entity::Stroke> m_stroke;
274 const std::vector< osg::ref_ptr<entity::Entity2D> >& buffer, QUndoCommand* parent=0);
276 #ifndef DOXYGEN_SHOULD_SKIP_THIS 277 void undo() Q_DECL_OVERRIDE;
278 void redo() Q_DECL_OVERRIDE;
282 osg::observer_ptr<entity::UserScene> m_scene;
283 osg::observer_ptr<entity::Canvas> m_canvas;
284 std::vector<entity::Entity2D*> m_entities;
294 const std::vector<entity::Entity2D*>& selected,
295 std::vector< osg::ref_ptr<entity::Entity2D> >& buffer, QUndoCommand* parent=0);
298 #ifndef DOXYGEN_SHOULD_SKIP_THIS 299 void undo() Q_DECL_OVERRIDE;
300 void redo() Q_DECL_OVERRIDE;
304 osg::observer_ptr<entity::UserScene> m_scene;
305 osg::observer_ptr<entity::Canvas> m_canvas;
306 std::vector< osg::ref_ptr<entity::Entity2D> >& m_buffer;
307 const std::vector<entity::Entity2D*>& m_selected;
320 #ifndef DOXYGEN_SHOULD_SKIP_THIS 321 void undo() Q_DECL_OVERRIDE;
322 void redo() Q_DECL_OVERRIDE;
326 osg::observer_ptr<entity::UserScene> m_scene;
327 osg::observer_ptr<entity::Canvas> m_source;
328 osg::observer_ptr<entity::Canvas> m_destination;
329 osg::observer_ptr<entity::Photo> m_photo;
334 #endif // EDITENTITYCOMMAND_H QUndoCommand that performs deletion of a photo.
Definition: EditEntityCommand.h:106
QUndoCommand that performs rotation of a canvas.
Definition: EditEntityCommand.h:65
Scene graph entities.
Definition: AddEntityCommand.h:17
Definition: EditEntityCommand.h:229
Definition: EditEntityCommand.h:136
Geometry class that defined strokes entered by a user. The creation and usage of this class must be f...
Definition: Stroke.h:62
Definition: EditEntityCommand.h:290
Definition: EditEntityCommand.h:203
Base virtual class for undo/redo commands.
Definition: EditEntityCommand.h:28
The UserScene class contains scene graph that was created by user, including the construction tools...
Definition: UserScene.h:86
Definition: Entity2D.h:13
Definition: EditEntityCommand.h:180
Definition: EditEntityCommand.h:252
QUndoCommand that performs offset of a canvas.
Definition: EditEntityCommand.h:45
Definition: EditEntityCommand.h:124
Definition: EditEntityCommand.h:270
Quad that uses texture to represent a 2D photo in 3D space.
Definition: Photo.h:22
Contains QUndoCommand - based classes that are defined within undo/redo framework. All these classes are made friend classes for entity::UserScene (protected) so that to access add and remove entity functionality.
QUndoCommand that performs push operation of a set of strokes.
Definition: EditEntityCommand.h:153
QUndoCommand that performs deletion of a canvas.
Definition: EditEntityCommand.h:86
Definition: EditEntityCommand.h:313