#include <canvas_primitives.h>
Public Member Functions | |
Polygon (const Color &color_) | |
Polygon (const Color &color_, const std::vector< Coordinate > &points_) | |
Polygon (const Color &color_, const Coordinate &start_point) | |
void | add_point (const Coordinate &point) |
std::string | get_representation () override |
Public Member Functions inherited from editor::figures::CanvasPrimitive | |
CanvasPrimitive ()=default | |
CanvasPrimitive (const Color &color_) | |
CanvasPrimitive (const Color &color_, int z_index_) | |
void | move_to_z_index (int z_index_) |
Primitive - Polygon
editor::figures::Polygon::Polygon | ( | const Color & | color_ | ) |
editor::figures::Polygon::Polygon | ( | const Color & | color_, |
const std::vector< Coordinate > & | points_ | ||
) |
editor::figures::Polygon::Polygon | ( | const Color & | color_, |
const Coordinate & | start_point | ||
) |
void editor::figures::Polygon::add_point | ( | const Coordinate & | point | ) |
|
overridevirtual |
Implements editor::figures::CanvasPrimitive.