Geometrize  1.0
C++ library for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
polyline.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <cstdint>
4 #include <memory>
5 #include <utility>
6 #include <vector>
7 
8 #include "shape.h"
9 
10 namespace geometrize
11 {
12 
17 class Polyline : public Shape
18 {
19 public:
20  Polyline() = default;
21  Polyline(const std::vector<std::pair<float, float>>& points);
22 
23  virtual std::shared_ptr<geometrize::Shape> clone() const override;
24  virtual geometrize::ShapeTypes getType() const override;
25 
26  std::vector<std::pair<float, float>> m_points;
27 };
28 
29 }
ShapeTypes
The ShapeTypes enum specifies the types of shapes that can be used. These can be combined to produce ...
Definition: shapetypes.h:16
virtual std::shared_ptr< geometrize::Shape > clone() const override
clone Clones the shape, a virtual copy constructor.
Definition: polyline.cpp:18
std::vector< std::pair< float, float > > m_points
The points on the polyline.
Definition: polyline.h:26
virtual geometrize::ShapeTypes getType() const override
getType Gets the ShapeType of the shape.
Definition: polyline.cpp:28
The Polyline class represents a polyline.
Definition: polyline.h:17
Definition: shape.h:17