Graphics Editor
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | List of all members
editor::figures::Polygon Class Reference

#include <canvas_primitives.h>

Inheritance diagram for editor::figures::Polygon:
Collaboration diagram for editor::figures::Polygon:

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_)
 

Detailed Description

Primitive - Polygon

Constructor & Destructor Documentation

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 
)

Member Function Documentation

void editor::figures::Polygon::add_point ( const Coordinate point)
std::string editor::figures::Polygon::get_representation ( )
overridevirtual

The documentation for this class was generated from the following files: