The Polyline class represents a polyline.
More...
#include <polyline.h>
The Polyline class represents a polyline.
- Author
- Sam Twidale (https://samcodes.co.uk/)
◆ Polyline() [1/2]
geometrize::Polyline::Polyline |
( |
| ) |
|
|
default |
◆ Polyline() [2/2]
geometrize::Polyline::Polyline |
( |
const std::vector< std::pair< float, float > > & |
points | ) |
|
14{
16}
std::vector< std::pair< float, float > > m_points
The points on the polyline.
Definition: polyline.h:26
◆ clone()
clone Clones the shape, a virtual copy constructor.
- Returns
- A clone of the shape.
Reimplemented from geometrize::Shape.
19{
20 std::shared_ptr<geometrize::Polyline> polyline{std::make_shared<geometrize::Polyline>()};
22 polyline->setup =
setup;
25 return polyline;
26}
std::function< std::vector< geometrize::Scanline >(const geometrize::Shape &)> rasterize
Definition: shape.h:27
std::function< void(geometrize::Shape &)> setup
Definition: shape.h:25
std::function< void(geometrize::Shape &)> mutate
Definition: shape.h:26
◆ getType()
getType Gets the ShapeType of the shape.
- Returns
- The ShapeType of the shape.
Reimplemented from geometrize::Shape.
29{
31}
@ POLYLINE
Definition: shapetypes.h:26
◆ m_points
std::vector<std::pair<float, float> > geometrize::Polyline::m_points |
The points on the polyline.
The documentation for this class was generated from the following files:
- /home/appveyor/projects/geometrize-lib-docs/geometrize-lib/geometrize/geometrize/shape/polyline.h
- /home/appveyor/projects/geometrize-lib-docs/geometrize-lib/geometrize/geometrize/shape/polyline.cpp