![]() |
Geometrize
1.0
C++ library for geometrizing images into geometric primitives
|
The Rectangle class represents a rectangle. More...
#include <rectangle.h>
Public Member Functions | |
Rectangle ()=default | |
Rectangle (float x1, float y1, float x2, float y2) | |
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_x1 |
Left coordinate. More... | |
float | m_y1 |
Top coordinate. More... | |
float | m_x2 |
Right coordinate. More... | |
float | m_y2 |
Bottom coordinate. More... | |
![]() | |
std::function< void(geometrize::Shape &)> | setup |
std::function< void(geometrize::Shape &)> | mutate |
std::function< std::vector < geometrize::Scanline >const geometrize::Shape &)> | rasterize |
The Rectangle class represents a rectangle.
|
default |
geometrize::Rectangle::Rectangle | ( | float | x1, |
float | y1, | ||
float | x2, | ||
float | y2 | ||
) |
|
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::Rectangle::m_x1 |
Left coordinate.
float geometrize::Rectangle::m_x2 |
Right coordinate.
float geometrize::Rectangle::m_y1 |
Top coordinate.
float geometrize::Rectangle::m_y2 |
Bottom coordinate.