![]() |
Geometrize
1.0
C++ library for geometrizing images into geometric primitives
|
The Circle class represents a circle. More...
#include <circle.h>
Public Member Functions | |
Circle ()=default | |
Circle (float x, float y, float r) | |
virtual std::shared_ptr < geometrize::Shape > | clone () const override |
clone Clones the shape, a virtual copy constructor. More... | |
virtual geometrize::ShapeTypes | getType () const override |
getType Gets the ShapeType of the shape. More... | |
![]() | |
Shape ()=default | |
virtual | ~Shape ()=default |
Shape & | operator= (const geometrize::Shape &other)=default |
Shape (const geometrize::Shape &other)=default | |
Public Attributes | |
float | m_x |
x-coordinate. More... | |
float | m_y |
y-coordinate. More... | |
float | m_r |
Radius. More... | |
![]() | |
std::function< void(geometrize::Shape &)> | setup |
std::function< void(geometrize::Shape &)> | mutate |
std::function< std::vector < geometrize::Scanline >const geometrize::Shape &)> | rasterize |
The Circle class represents a circle.
|
default |
geometrize::Circle::Circle | ( | float | x, |
float | y, | ||
float | r | ||
) |
|
overridevirtual |
clone Clones the shape, a virtual copy constructor.
Reimplemented from geometrize::Shape.
|
overridevirtual |
getType Gets the ShapeType of the shape.
Reimplemented from geometrize::Shape.
float geometrize::Circle::m_r |
Radius.
float geometrize::Circle::m_x |
x-coordinate.
float geometrize::Circle::m_y |
y-coordinate.