38 #ifndef DOXYGEN_SHOULD_SKIP_THIS
104 virtual Vector2f
getPoint(std::size_t index)
const override;
149 CircleShape(
float radius = 0, std::size_t pointCount = 30);
160 explicit CircleShape(
const CircF& circ, std::size_t pointCount = 30);
192 virtual Vector2f
getPoint(std::size_t index)
const override;
196 std::size_t m_pointCount;
263 void setPoint(std::size_t index, Vector2f point);
266 virtual Vector2f
getPoint(std::size_t index)
const override;
269 std::vector<Vector2f> m_points;
306 StarShape(
float minRadius = 0,
float maxRadius = 0, std::size_t branches = 7);
363 virtual Vector2f
getPoint(std::size_t index)
const override;
368 std::size_t m_branches;
404 RoundedRectangleShape(Vector2f size = Vector2f
{ 0.0f
, 0.0f
},
float radius = 0.0f, std::size_t cornerPointCount = 8);
416 explicit RoundedRectangleShape(
const RectF& rect,
float radius = 0.0f, std::size_t cornerPointCount = 8);
468 virtual Vector2f
getPoint(std::size_t index)
const override;
473 std::size_t m_cornerPointCount;
477 #ifndef DOXYGEN_SHOULD_SKIP_THIS
StarShape(float minRadius=0, float maxRadius=0, std::size_t branches=7)
Default constructor.
Base class for textured shapes with outline.
Definition: Shape.h:73
virtual Vector2f getPoint(std::size_t index) const override
Get a point of the shape.
void setSize(Vector2f size)
Set the size of the rectangle.
virtual Vector2f getPoint(std::size_t index) const override
Get a point of the shape.
void setMinRadius(float minRadius)
Set the minimum radius.
float getRadius() const
Get the radius of the circle.
Definition: Shapes.h:178
virtual Vector2f getPoint(std::size_t index) const override
Get a point of the shape.
Specialized shape representing a rounded rectangle.
Definition: Shapes.h:395
void setRadius(float radius)
Set the radius of the circle.
void setRadius(float radius)
Set the radius of the corner.
float getMaxRadius() const
Get the maximum radius.
Definition: Shapes.h:340
virtual std::size_t getPointCount() const override
Get the total number of points of the shape.
virtual 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 setSize(Vector2f size)
Set the size of the rectangle.
constexpr Vector(T x, T y)
Constructor that takes 2 components.
Definition: Vector.h:354
Specialized shape representing a rectangle.
Definition: Shapes.h:64
virtual 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.
void setBranches(std::size_t branches)
Set the number of branches.
void setPointCount(std::size_t pointCount)
Set the number of points of the polygon.
std::size_t getBranches() const
Get the number of branches.
Definition: Shapes.h:358
RectangleShape(Vector2f size=Vector2f{0.0f, 0.0f})
Default constructor.
Vector2f getSize() const
Get the size of the rectangle.
Definition: Shapes.h:99
Specialized shape representing a circle.
Definition: Shapes.h:141
virtual std::size_t getPointCount() const override
Get the total number of points of the shape.
RoundedRectangleShape(const RectF &rect, float radius=0.0f, std::size_t cornerPointCount=8)
Constructor with a rectangle.
virtual std::size_t getPointCount() const override
Get the total number of points of the shape.
A convex polygon.
Definition: Polygon.h:40
ConvexShape(std::size_t pointCount)
Default constructor.
RectangleShape(const RectF &rect)
Constructor with a rectangle.
Specialized shape representing a star.
Definition: Shapes.h:297
virtual Vector2f getPoint(std::size_t index) const override
Get a point of the shape.
CircleShape(const CircF &circ, std::size_t pointCount=30)
Constructor with a circle.
virtual Vector2f getPoint(std::size_t index) const override
Get a point of the shape.
void setCornerPointCount(std::size_t cornerPointCount)
Set the number of points of a corner.
float getRadius() const
Get the radius of the corner.
Definition: Shapes.h:454
void setMaxRadius(float maxRadius)
Set the maximum radius.
#define GF_API
Definition: Portability.h:35
float getMinRadius() const
Get the minimum radius.
Definition: Shapes.h:322
Specialized shape representing a convex polygon.
Definition: Shapes.h:229
void setPointCount(std::size_t pointCount)
Set the number of points of the circle.
Vector2f getSize() const
Get the size of the rectangle.
Definition: Shapes.h:434
ConvexShape(const Polygon &polygon)
Constructor with a polygon.
RoundedRectangleShape(Vector2f size=Vector2f{0.0f, 0.0f}, float radius=0.0f, std::size_t cornerPointCount=8)
Default constructor.