![]() |
Geometrize
1.0
C++ library for geometrizing images into geometric primitives
|
The QuadraticBezier class represents a quadratic bezier curve. More...
#include <quadraticbezier.h>
Public Member Functions | |
QuadraticBezier ()=default | |
QuadraticBezier (float cx, float cy, 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_cx |
Control point x-coordinate. More... | |
float | m_cy |
Control point y-coordinate. More... | |
float | m_x1 |
First x-coordinate. More... | |
float | m_y1 |
First y-coordinate. More... | |
float | m_x2 |
Second x-coordinate. More... | |
float | m_y2 |
Second y-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 QuadraticBezier class represents a quadratic bezier curve.
|
default |
geometrize::QuadraticBezier::QuadraticBezier | ( | float | cx, |
float | cy, | ||
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::QuadraticBezier::m_cx |
Control point x-coordinate.
float geometrize::QuadraticBezier::m_cy |
Control point y-coordinate.
float geometrize::QuadraticBezier::m_x1 |
First x-coordinate.
float geometrize::QuadraticBezier::m_x2 |
Second x-coordinate.
float geometrize::QuadraticBezier::m_y1 |
First y-coordinate.
float geometrize::QuadraticBezier::m_y2 |
Second y-coordinate.