31#include "GraphicsApi.h"
38#ifndef DOXYGEN_SHOULD_SKIP_THIS
196 std::size_t m_pointCount;
270 std::vector<Vector2f> m_points;
307 StarShape(
float minRadius = 0,
float maxRadius = 0, std::size_t branches = 7);
369 std::size_t m_branches;
474 std::size_t m_cornerPointCount;
485 Pie(
float radius,
float angle0,
float angle1,
Variation variation = Positive, std::size_t pointCount = 30);
507 std::size_t m_pointCount;
510#ifndef DOXYGEN_SHOULD_SKIP_THIS
Specialized shape representing a circle.
Definition: Shapes.h:141
CircleShape(const CircF &circ, std::size_t pointCount=30)
Constructor with a circle.
std::size_t getPointCount() const override
Get the total number of points of the shape.
CircleShape(float radius=0, std::size_t pointCount=30)
Default constructor.
float getRadius() const
Get the radius of the circle.
Definition: Shapes.h:178
Vector2f getPoint(std::size_t index) const override
Get a point of the shape.
void setPointCount(std::size_t pointCount)
Set the number of points of the circle.
void setRadius(float radius)
Set the radius of the circle.
Specialized shape representing a convex polygon.
Definition: Shapes.h:229
ConvexShape(std::size_t pointCount)
Default constructor.
ConvexShape(const Polygon &polygon)
Constructor with a polygon.
std::size_t getPointCount() const override
Get the total number of points of the shape.
void setPoint(std::size_t index, Vector2f point)
Set a point in the shape.
void setPointCount(std::size_t pointCount)
Set the number of points of the polygon.
Vector2f getPoint(std::size_t index) const override
Get a point of the shape.
Pie(float radius, float angle0, float angle1, Variation variation=Positive, std::size_t pointCount=30)
void setRadius(float radius)
void setPointCount(std::size_t pointCount)
Variation
Definition: Shapes.h:480
@ Negative
Definition: Shapes.h:482
@ Positive
Definition: Shapes.h:481
float getRadius() const
Definition: Shapes.h:489
Vector2f getPoint(std::size_t index) const override
Get a point of the shape.
void setAngleRange(float angle0, float angle1, Variation variation)
std::size_t getPointCount() const override
Get the total number of points of the shape.
A convex polygon.
Definition: Polygon.h:47
Specialized shape representing a rectangle.
Definition: Shapes.h:64
void setSize(Vector2f size)
Set the size of the rectangle.
std::size_t getPointCount() const override
Get the total number of points of the shape.
Vector2f getSize() const
Get the size of the rectangle.
Definition: Shapes.h:99
RectangleShape(Vector2f size=Vector2f{ 0.0f, 0.0f })
Default constructor.
Vector2f getPoint(std::size_t index) const override
Get a point of the shape.
RectangleShape(const RectF &rect)
Constructor with a rectangle.
Specialized shape representing a rounded rectangle.
Definition: Shapes.h:396
RoundedRectangleShape(const RectF &rect, float radius=0.0f, std::size_t cornerPointCount=8)
Constructor with a rectangle.
RoundedRectangleShape(Vector2f size=Vector2f{ 0.0f, 0.0f }, float radius=0.0f, std::size_t cornerPointCount=8)
Default constructor.
float getRadius() const
Get the radius of the corner.
Definition: Shapes.h:455
Vector2f getSize() const
Get the size of the rectangle.
Definition: Shapes.h:435
std::size_t getPointCount() const override
Get the total number of points of the shape.
void setCornerPointCount(std::size_t cornerPointCount)
Set the number of points of a corner.
void setRadius(float radius)
Set the radius of the corner.
Vector2f getPoint(std::size_t index) const override
Get a point of the shape.
void setSize(Vector2f size)
Set the size of the rectangle.
Base class for textured shapes with outline.
Definition: Shape.h:73
Specialized shape representing a star.
Definition: Shapes.h:298
StarShape(float minRadius=0, float maxRadius=0, std::size_t branches=7)
Default constructor.
float getMinRadius() const
Get the minimum radius.
Definition: Shapes.h:323
std::size_t getPointCount() const override
Get the total number of points of the shape.
std::size_t getBranches() const
Get the number of branches.
Definition: Shapes.h:359
Vector2f getPoint(std::size_t index) const override
Get a point of the shape.
float getMaxRadius() const
Get the maximum radius.
Definition: Shapes.h:341
void setBranches(std::size_t branches)
Set the number of branches.
void setMaxRadius(float maxRadius)
Set the maximum radius.
void setMinRadius(float minRadius)
Set the minimum radius.
The namespace for gf classes.
Utility class for manipulating circles.
Definition: Circ.h:61