 |
Geometrize
1.0
An application for geometrizing images into geometric primitives
|
Go to the documentation of this file.
22 class ImageTaskGraphicsView;
68 void updateScenes(
const QPixmap& pixmap,
const std::vector<geometrize::ShapeResult>& shapes);
120 std::unique_ptr<ImageTaskSceneManagerImpl>
d;
void reset()
reset Resets the state of the scenes, removing shapes etc.
Definition: imagetaskscenemanager.cpp:173
Definition: imagetaskscenemanager.cpp:27
ImageTaskSceneManagerImpl(ImageTaskSceneManager *pQ)
Definition: imagetaskscenemanager.cpp:29
void setAreaOfInfluenceShape(const geometrize::Shape &shape)
Definition: imagetaskscenemanager.cpp:87
void signal_onMouseMoveEvent(double lastX, double lastY, double x, double y, bool ctrlModifier)
void setTargetPixmapOpacity(const float opacity)
Definition: imagetaskscenemanager.cpp:50
void setTargetPixmap(const QPixmap &pixmap)
setTargetPixmap Sets the pixmap that provides the target/goal image visualization.
Definition: imagetaskscene.cpp:97
void signal_onCustomTabletEvent(const geometrize::scene::CustomTabletEvent &event)
void signal_onMousePressEvent(double x, double y, bool ctrlModifier)
void signal_onTargetImageMouseMoveEvent(double lastX, double lastY, double x, double y, bool ctrlModifier)
void reset()
Definition: imagetaskscenemanager.cpp:62
ImageTaskSceneManager()
Definition: imagetaskscenemanager.cpp:145
void signal_onKeyReleaseEvent(int key, bool ctrlModifier)
void connectTargetItemSignals(geometrize::scene::ImageTaskPixmapGraphicsItem &item)
Definition: imagetaskscenemanager.cpp:109
void signal_onHoverMoveEvent(double lastX, double lastY, double x, double y, bool ctrlModifier)
void updateScenes(const QPixmap &pixmap, const std::vector< geometrize::ShapeResult > &shapes)
updateScenes Updates the scenes to show the latest image/shapes.
Definition: imagetaskscenemanager.cpp:168
void fitVectorSceneInView(ImageTaskGraphicsView &svgView)
Definition: imagetaskscenemanager.cpp:74
The ImageTaskSvgScene class models a graphics scene for viewing the shape data of an image task as an...
Definition: imagetasksvgscene.h:25
~ImageTaskSceneManagerImpl()=default
geometrize::scene::ImageTaskSvgScene m_svgScene
The scene containing the raster/pixel-based representation of the shapes
Definition: imagetaskscenemanager.cpp:138
void setTargetPixmap(const QPixmap &pixmap)
Definition: imagetaskscenemanager.cpp:44
void signal_onTargetImageMousePressEvent(double x, double y, bool ctrlModifier)
void setViews(ImageTaskGraphicsView &pixmapView, ImageTaskGraphicsView &svgView)
Definition: imagetaskscenemanager.cpp:38
ImageTaskSceneManager * q
The scene containing the vector-based representation of the shapes
Definition: imagetaskscenemanager.cpp:140
ImageTaskPixmapGraphicsItem & getTargetPixmapItem()
getTargetPixmapItem Gets a refernece to the graphics item that houses the target pixmap.
Definition: imagetaskscene.cpp:102
void setWorkingPixmap(const QPixmap &pixmap)
setWorkingPixmap Sets the pixmap that provides the current/working image visualization.
Definition: imagetaskpixmapscene.cpp:43
void signal_onKeyPressEvent(int key, bool ctrlModifier)
void fitVectorSceneInView(ImageTaskGraphicsView &svgView)
fitVectorSceneInView Fits the SVG/vector scene into the given view.
Definition: imagetaskscenemanager.cpp:183
void signal_onTargetImageMouseReleaseEvent(double x, double y, bool ctrlModifier)
void setTargetPixmapOpacity(float opacity)
setTargetPixmapOpacity Sets the opacity of the target pixmap.
Definition: imagetaskscenemanager.cpp:163
void signal_onTargetImageKeyPressEvent(int key, bool ctrlModifier)
The CustomTabletEvent class represents a tablet event (specifically from a Wacom Pro pen) that can be...
Definition: customtabletevent.h:88
void updateScenes(const QPixmap &pixmap, const std::vector< geometrize::ShapeResult > &shapes)
Definition: imagetaskscenemanager.cpp:56
void fitScenesInViews(ImageTaskGraphicsView &pixmapView, ImageTaskGraphicsView &svgView)
fitScenesInViews Fits the scenes into their respective views.
Definition: imagetaskscenemanager.cpp:188
std::unique_ptr< ImageTaskSceneManagerImpl > d
Definition: imagetaskscenemanager.h:119
The ImageTaskGraphicsView class models a graphics view for viewing the images and shapes used and/or ...
Definition: imagetaskgraphicsview.h:22
void signal_onAreaOfInfluenceShapeMousePressEvent(double x, double y, bool ctrlModifier)
void removeShapes()
removeShapes Removes all shapes from the scene.
Definition: imagetasksvgscene.cpp:74
Definition: commandlineparser.cpp:73
void signal_onTargetImageTabletEvent(const geometrize::scene::CustomTabletEvent &event)
void setTargetPixmapOpacity(float opacity)
setTargetPixmapOpacity Sets the opacity of the target pixmap.
Definition: imagetaskscene.cpp:92
void signal_onAreaOfInfluenceShapeMouseReleaseEvent(double x, double y, bool ctrlModifier)
void signal_onAreaOfInfluenceShapeKeyReleaseEvent(int key, bool ctrlModifier)
void signal_onTargetImageWheelEvent(double x, double y, int amount, bool ctrlModifier)
void signal_onAreaOfInfluenceShapeKeyPressEvent(int key, bool ctrlModifier)
void signal_onTargetImageKeyReleaseEvent(int key, bool ctrlModifier)
ImageTaskSceneManagerImpl operator=(const ImageTaskSceneManagerImpl &)=delete
void signal_onMouseReleaseEvent(double x, double y, bool ctrlModifier)
void setOverlayShape(SvgItem *item)
setOverlayItem Sets the given overlay shape upon the scene.
Definition: imagetaskscene.cpp:107
void signal_onAreaOfInfluenceShapeHoverMoveEvent(double lastX, double lastY, double x, double y, bool ctrlModifier)
void signal_onTargetImageHoverMoveEvent(double lastX, double lastY, double x, double y, bool ctrlModifier)
void fitPixmapSceneInView(ImageTaskGraphicsView &pixmapView)
fitPixmapSceneInView Fits the pixmap scene into the given view.
Definition: imagetaskscenemanager.cpp:178
The ImageTaskPixmapGraphicsItem class models a pixmap graphic item that goes into the scene for an im...
Definition: imagetaskpixmapgraphicsitem.h:26
void fitScenesInViews(ImageTaskGraphicsView &pixmapView, ImageTaskGraphicsView &svgView)
Definition: imagetaskscenemanager.cpp:81
void addShapes(const std::vector< geometrize::ShapeResult > &shapes, const std::uint32_t width, const std::uint32_t height)
addShapes Updates the SVG data based on the given shapes.
Definition: imagetasksvgscene.cpp:69
void setViews(ImageTaskGraphicsView &pixmapView, ImageTaskGraphicsView &svgView)
setViews Associates the given views with the scenes managed by this class.
Definition: imagetaskscenemanager.cpp:153
ImageTaskSceneManagerImpl(const ImageTaskSceneManagerImpl &)=delete
The AreaOfInfluenceShapeItem class represents a graphical visualization of a shape that the user inte...
Definition: areaofinfluenceshapeitem.h:21
void signal_onAreaOfInfluenceShapeMouseWheelEvent(double x, double y, int amount, bool ctrlModifier)
geometrize::scene::ImageTaskPixmapScene m_pixmapScene
Definition: imagetaskscenemanager.cpp:137
The ImageTaskSceneManager manages the scenes representing the graphical state of the shapes It mostly...
Definition: imagetaskscenemanager.h:37
const double m_defaultViewMargins
Definition: imagetaskscenemanager.cpp:142
void signal_onWheelEvent(double x, double y, int amount, bool ctrlModifier)
void setAreaOfInfluenceShape(const geometrize::Shape &shape)
setAreaOfInfluenceShape Sets up a area of influence visual for the given shape.
Definition: imagetaskscenemanager.cpp:193
void setTargetPixmap(const QPixmap &pixmap)
setTargetPixmap Sets the pixmap that provides the target/goal image visualization.
Definition: imagetaskscenemanager.cpp:158
void fitPixmapSceneInView(ImageTaskGraphicsView &pixmapView)
Definition: imagetaskscenemanager.cpp:67
void signal_onAreaOfInfluenceShapeMouseMoveEvent(double lastX, double lastY, double x, double y, bool ctrlModifier)
The ImageTaskPixmapScene class models a graphics scene for viewing the pixmap-based results of image ...
Definition: imagetaskpixmapscene.h:21
virtual ~ImageTaskSceneManager()
Definition: imagetaskscenemanager.cpp:149