![]() |
Geometrize
1.0
An application for geometrizing images into geometric primitives
|
The ImageTaskSvgScene class models a graphics scene for viewing the shape data of an image task as an SVG. More...
#include <imagetasksvgscene.h>


Classes | |
| class | ImageTaskSvgSceneImpl |
Public Member Functions | |
| ImageTaskSvgScene () | |
| virtual | ~ImageTaskSvgScene () |
| 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. More... | |
| void | removeShapes () |
| removeShapes Removes all shapes from the scene. More... | |
Public Member Functions inherited from geometrize::scene::ImageTaskScene | |
| ImageTaskScene (QObject *parent=nullptr) | |
| virtual | ~ImageTaskScene () |
| void | setTargetPixmapOpacity (float opacity) |
| setTargetPixmapOpacity Sets the opacity of the target pixmap. More... | |
| void | setTargetPixmap (const QPixmap &pixmap) |
| setTargetPixmap Sets the pixmap that provides the target/goal image visualization. More... | |
| ImageTaskPixmapGraphicsItem & | getTargetPixmapItem () |
| getTargetPixmapItem Gets a refernece to the graphics item that houses the target pixmap. More... | |
| void | setOverlayShape (SvgItem *item) |
| setOverlayItem Sets the given overlay shape upon the scene. More... | |
| void | setOverlayShapeVisibility (bool visible) |
| setOverlayShapeVisibility Whether the overlay shape(s) in the scene should be visible. More... | |
Private Attributes | |
| std::unique_ptr< ImageTaskSvgSceneImpl > | d |
Additional Inherited Members | |
Protected Member Functions inherited from geometrize::scene::ImageTaskScene | |
| bool | event (QEvent *event) override |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
| void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
| void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
| void | wheelEvent (QGraphicsSceneWheelEvent *event) override |
| void | keyPressEvent (QKeyEvent *event) override |
| void | keyReleaseEvent (QKeyEvent *event) override |
| void | focusInEvent (QFocusEvent *event) override |
| void | focusOutEvent (QFocusEvent *event) override |
The ImageTaskSvgScene class models a graphics scene for viewing the shape data of an image task as an SVG.
| geometrize::scene::ImageTaskSvgScene::ImageTaskSvgScene | ( | ) |
| void geometrize::scene::ImageTaskSvgScene::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.
| shapes | The shapes to draw in the scene. |
| width | The width of the SVG. |
| height | The height of the SVG. |

| void geometrize::scene::ImageTaskSvgScene::removeShapes | ( | ) |
removeShapes Removes all shapes from the scene.

|
private |