31#include "GraphicsApi.h"
38#ifndef DOXYGEN_SHOULD_SKIP_THIS
196 std::size_t m_pointCount;
269 std::vector<Vector2f> m_points;
306 StarShape(
float minRadius = 0,
float maxRadius = 0, std::size_t branches = 7);
368 std::size_t m_branches;
473 std::size_t m_cornerPointCount;
484 Pie(
float radius,
float angle0,
float angle1,
Variation variation = Positive, std::size_t pointCount = 30);
506 std::size_t m_pointCount;
509#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)
Get the number of points of the polygon.
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:479
@ Negative
Definition: Shapes.h:481
@ Positive
Definition: Shapes.h:480
float getRadius() const
Definition: Shapes.h:488
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:395
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:454
Vector2f getSize() const
Get the size of the rectangle.
Definition: Shapes.h:434
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:297
StarShape(float minRadius=0, float maxRadius=0, std::size_t branches=7)
Default constructor.
float getMinRadius() const
Get the minimum radius.
Definition: Shapes.h:322
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:358
Vector2f getPoint(std::size_t index) const override
Get a point of the shape.
float getMaxRadius() const
Get the maximum radius.
Definition: Shapes.h:340
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.
Definition: Action.h:35
Utility class for manipulating circles.
Definition: Circ.h:61