7 #include "../rasterizer/scanline.h"
21 virtual ~Shape() =
default;
25 std::function<void(geometrize::Shape&)>
setup;
26 std::function<void(geometrize::Shape&)>
mutate;
33 virtual std::shared_ptr<geometrize::Shape>
clone()
const
35 throw "Unimplemented";
44 throw "Unimplemented";
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
clone Clones the shape, a virtual copy constructor.
Definition: shape.h:33
std::function< void(geometrize::Shape &)> mutate
Definition: shape.h:26
std::function< std::vector< geometrize::Scanline >const geometrize::Shape &)> rasterize
Definition: shape.h:27
Shape & operator=(const geometrize::Shape &other)=default
std::function< void(geometrize::Shape &)> setup
Definition: shape.h:25
virtual geometrize::ShapeTypes getType() const
getType Gets the ShapeType of the shape.
Definition: shape.h:42