My Project
Loading...
Searching...
No Matches
Public Member Functions | List of all members
circle Class Reference

Implementation of a circle figure. More...

#include <circle.h>

Inheritance diagram for circle:
Inheritance graph
Collaboration diagram for circle:
Collaboration graph

Public Member Functions

 circle (int x, int y, int radius)
 Constructor.
 
void set_line_color (Color color) override
 Set line color.
 
void set_background_color (Color color) override
 Set the background color of the shape.
 
void set_coordinates (int x, int y) override
 Setting new coordinates for the figure.
 
void draw () override
 Drawing a figure.
 
std::tuple< int, int > get_coordinates () override
 Returns the coordinates of a figure.
 
void set_radius (int radius)
 Set circle radius.
 
- Public Member Functions inherited from graphic_primitive
 graphic_primitive ()
 Constructor.
 
virtual ~graphic_primitive ()
 Destructor.
 

Additional Inherited Members

- Public Types inherited from graphic_primitive
enum class  Color { RED , GREEN , BLUE }
 Acceptable colors. More...
 
enum class  Type { CICLE , RECTANGLE , SQUARE , TRIANGLE }
 Acceptable shape types. More...
 

Detailed Description

Implementation of a circle figure.

Constructor & Destructor Documentation

◆ circle()

circle::circle ( int x,
int y,
int radius )

Constructor.

Member Function Documentation

◆ draw()

void circle::draw ( )
overridevirtual

Drawing a figure.

Implements graphic_primitive.

◆ get_coordinates()

std::tuple< int, int > circle::get_coordinates ( )
overridevirtual

Returns the coordinates of a figure.

Implements graphic_primitive.

◆ set_background_color()

void circle::set_background_color ( Color color)
overridevirtual

Set the background color of the shape.

Implements graphic_primitive.

◆ set_coordinates()

void circle::set_coordinates ( int x,
int y )
overridevirtual

Setting new coordinates for the figure.

Implements graphic_primitive.

◆ set_line_color()

void circle::set_line_color ( Color color)
overridevirtual

Set line color.

Implements graphic_primitive.

◆ set_radius()

void circle::set_radius ( int radius)

Set circle radius.


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