Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
imagetasksvgscene.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 #include <vector>
5 
6 #include <QGraphicsScene>
7 
8 #include "imagetaskscene.h"
9 
10 namespace geometrize
11 {
12 struct ShapeResult;
13 }
14 
15 namespace geometrize
16 {
17 
18 namespace scene
19 {
20 
25 {
26  Q_OBJECT
27 
28 public:
30  virtual ~ImageTaskSvgScene();
31 
38  void addShapes(const std::vector<geometrize::ShapeResult>& shapes, const std::uint32_t width, const std::uint32_t height);
39 
43  void removeShapes();
44 
45 private:
47  std::unique_ptr<ImageTaskSvgSceneImpl> d;
48 };
49 
50 }
51 
52 }
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:68
virtual ~ImageTaskSvgScene()
Definition: imagetasksvgscene.cpp:64
The ImageTaskScene class models a graphics scene for viewing the results of image tasks...
Definition: imagetaskscene.h:24
The ImageTaskSvgScene class models a graphics scene for viewing the shape data of an image task as an...
Definition: imagetasksvgscene.h:24
std::unique_ptr< ImageTaskSvgSceneImpl > d
Definition: imagetasksvgscene.h:46
ImageTaskSvgScene()
Definition: imagetasksvgscene.cpp:60
void removeShapes()
removeShapes Removes all shapes from the scene.
Definition: imagetasksvgscene.cpp:73