1 #ifndef ADDENTITYCOMMAND_H 2 #define ADDENTITYCOMMAND_H 4 #include <QUndoCommand> 7 #include <osg/observer_ptr> 14 #include "Bookmarks.h" 15 #include "SceneState.h" 39 const std::string& name, QUndoCommand* parent = 0);
43 QUndoCommand* parent = 0);
48 const std::string& name, QUndoCommand* parent = 0);
50 #ifndef DOXYGEN_SHOULD_SKIP_THIS 51 void undo() Q_DECL_OVERRIDE;
52 void redo() Q_DECL_OVERRIDE;
56 osg::observer_ptr<entity::UserScene> m_scene;
57 osg::ref_ptr<entity::Canvas> m_canvas;
58 osg::observer_ptr<entity::Bookmarks> m_bookmarks;
69 QUndoCommand* parent = 0);
71 #ifndef DOXYGEN_SHOULD_SKIP_THIS 72 void undo() Q_DECL_OVERRIDE;
73 void redo() Q_DECL_OVERRIDE;
74 #endif // DOXYGEN_SHOULD_SKIP_THIS 79 osg::observer_ptr<entity::UserScene> m_scene;
80 osg::observer_ptr<entity::Canvas> m_source;
81 osg::ref_ptr<entity::Canvas> m_target;
82 std::vector<entity::Entity2D*> m_entities;
83 osg::observer_ptr<entity::Bookmarks> m_bookmarks;
94 QUndoCommand* parent = 0);
96 #ifndef DOXYGEN_SHOULD_SKIP_THIS 97 void undo() Q_DECL_OVERRIDE;
98 void redo() Q_DECL_OVERRIDE;
99 #endif // DOXYGEN_SHOULD_SKIP_THIS 102 osg::observer_ptr<entity::UserScene> m_scene;
103 osg::observer_ptr<entity::Canvas> m_canvas;
104 osg::ref_ptr<entity::Photo> m_photo;
105 osg::observer_ptr<entity::Bookmarks> m_bookmarks;
117 #ifndef DOXYGEN_SHOULD_SKIP_THIS 118 void undo() Q_DECL_OVERRIDE;
119 void redo() Q_DECL_OVERRIDE;
120 #endif // DOXYGEN_SHOULD_SKIP_THIS 123 osg::observer_ptr<entity::UserScene> m_scene;
124 osg::observer_ptr<entity::Canvas> m_canvas;
125 osg::ref_ptr<entity::Stroke> m_stroke;
133 void undo() Q_DECL_OVERRIDE;
134 void redo() Q_DECL_OVERRIDE;
137 osg::observer_ptr<entity::UserScene> m_scene;
138 osg::observer_ptr<entity::Canvas> m_canvas;
139 osg::ref_ptr<entity::Entity2D> m_entity;
151 #ifndef DOXYGEN_SHOULD_SKIP_THIS 152 void undo() Q_DECL_OVERRIDE;
153 void redo() Q_DECL_OVERRIDE;
154 #endif // DOXYGEN_SHOULD_SKIP_THIS 157 osg::observer_ptr<entity::UserScene> m_scene;
158 osg::observer_ptr<entity::Canvas> m_canvas;
159 osg::ref_ptr<entity::Polygon> m_polygon;
167 void undo() Q_DECL_OVERRIDE;
168 void redo() Q_DECL_OVERRIDE;
171 osg::observer_ptr<entity::UserScene> m_scene;
172 osg::observer_ptr<entity::Canvas> m_canvas;
173 osg::ref_ptr<entity::LineSegment> m_segment;
178 #endif // ADDENTITYCOMMAND_H QUndoCommand that performs addition of a canvas to entity::UserScene.
Definition: AddEntityCommand.h:33
A proxy class that helps to connect scene graph camera positions (in format eye, center, up and name) with the corresponding BookmarkWidget.
Definition: Bookmarks.h:48
Geometry class that represents a line segment in 3D space.
Definition: LineSegment.h:17
QUndoCommand that performs addition of a stroke to UserScene.
Definition: AddEntityCommand.h:111
Scene graph entities.
Definition: AddEntityCommand.h:17
Geometry class that defined strokes entered by a user. The creation and usage of this class must be f...
Definition: Stroke.h:62
Geometry class that defines opacity polygons drawn by a user. The creation and usage of this class mu...
Definition: Polygon.h:47
The UserScene class contains scene graph that was created by user, including the construction tools...
Definition: UserScene.h:86
Definition: AddEntityCommand.h:162
Definition: Entity2D.h:13
QUndoCommand that perform addition of a entity::Polygon to entity::UserScene.
Definition: AddEntityCommand.h:145
QUndoCommand that performs separation of a canvas and addition of it to entity::UserScene.
Definition: AddEntityCommand.h:64
QUndoCommand that performs addition of a photo to entity::UserScene.
Definition: AddEntityCommand.h:89
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.
Definition: AddEntityCommand.h:128