Circle in a two-dimensionnal space.
More...
#include <Circle.hpp>
|
| | Circle (const Vector2 ¢erPos, int radius, const Color &color) |
| | Circle constructor. More...
|
| |
| | Circle (int centerPosX, int centerPosY, int radius, const Color &color) |
| | Circle constructor. More...
|
| |
| | Circle (const Circle &)=default |
| | A default copy constructor. More...
|
| |
| Circle & | operator= (const Circle &)=default |
| | A circle is assignable. More...
|
| |
| | ~Circle () override=default |
| | A default destructor. More...
|
| |
| int | getRadius (void) const |
| |
| Circle & | setRadius (int radius) |
| | set radius More...
|
| |
| void | drawOn (RAY::Window &) override |
| | Draw point on window. More...
|
| |
| void | drawOn (RAY::Image &image) override |
| | Draw point on image. More...
|
| |
| | ADrawable2D (const Vector2 &position, const RAY::Color &color, float scale=1, float rotation=0) |
| | ADrawable constructor. More...
|
| |
| | ADrawable2D (int x, int y, const RAY::Color &color, float scale=1, float rotation=0) |
| | ADrawable constructor. More...
|
| |
| | ADrawable2D (const ADrawable2D &)=default |
| | A default copy constructor. More...
|
| |
| | ~ADrawable2D () override=default |
| | A default destructor. More...
|
| |
| const RAY::Vector2 & | getPosition (void) const |
| |
| const RAY::Color & | getColor (void) const |
| |
| ADrawable2D & | setPosition (const Vector2 &position) |
| | set Top-left position More...
|
| |
| ADrawable2D & | setPosition (int x, int y) |
| | set Top-left position More...
|
| |
| ADrawable2D & | setColor (const Color &color) |
| | set color More...
|
| |
| float | getScale () const |
| | scale getter More...
|
| |
| void | setScale (float scale) |
| | scale setters More...
|
| |
| virtual | ~IDrawable ()=default |
| |
Circle in a two-dimensionnal space.
◆ Circle() [1/3]
| RAY::Drawables::Drawables2D::Circle::Circle |
( |
const Vector2 & |
centerPos, |
|
|
int |
radius, |
|
|
const Color & |
color |
|
) |
| |
Circle constructor.
- Parameters
-
| centerPos | position of center point
|
| radius | radius of the circle |
| Color | Color of the circle
|
◆ Circle() [2/3]
| RAY::Drawables::Drawables2D::Circle::Circle |
( |
int |
centerPosX, |
|
|
int |
centerPosY, |
|
|
int |
radius, |
|
|
const Color & |
color |
|
) |
| |
Circle constructor.
- Parameters
-
| centerPosX | x-position of center point
|
| centerPosY | y-position of center point |
| radius | radius of the circle |
| Color | Color of the circle
|
◆ Circle() [3/3]
| RAY::Drawables::Drawables2D::Circle::Circle |
( |
const Circle & |
| ) |
|
|
default |
A default copy constructor.
◆ ~Circle()
| RAY::Drawables::Drawables2D::Circle::~Circle |
( |
| ) |
|
|
overridedefault |
◆ drawOn() [1/2]
| void RAY::Drawables::Drawables2D::Circle::drawOn |
( |
RAY::Image & |
image | ) |
|
|
overridevirtual |
◆ drawOn() [2/2]
| void RAY::Drawables::Drawables2D::Circle::drawOn |
( |
RAY::Window & |
| ) |
|
|
overridevirtual |
◆ getRadius()
| int RAY::Drawables::Drawables2D::Circle::getRadius |
( |
void |
| ) |
const |
- Returns
- the radius of the circle
◆ operator=()
| Circle& RAY::Drawables::Drawables2D::Circle::operator= |
( |
const Circle & |
| ) |
|
|
default |
◆ setRadius()
| Circle & RAY::Drawables::Drawables2D::Circle::setRadius |
( |
int |
radius | ) |
|
◆ _radius
| int RAY::Drawables::Drawables2D::Circle::_radius |
|
private |
The documentation for this class was generated from the following files: