37 #ifndef DOXYGEN_SHOULD_SKIP_THIS
103 virtual Vector2f
getPoint(std::size_t index)
const override;
148 CircleShape(
float radius = 0, std::size_t pointCount = 30);
159 explicit CircleShape(
const CircF& circ, std::size_t pointCount = 30);
191 virtual Vector2f
getPoint(std::size_t index)
const override;
195 std::size_t m_pointCount;
255 void setPoint(std::size_t index, Vector2f point);
258 virtual Vector2f
getPoint(std::size_t index)
const override;
261 std::vector<Vector2f> m_points;
298 StarShape(
float minRadius = 0,
float maxRadius = 0, std::size_t branches = 7);
355 virtual Vector2f
getPoint(std::size_t index)
const override;
360 std::size_t m_branches;
396 RoundedRectangleShape(Vector2f size = Vector2f
{ 0.0f
, 0.0f
},
float radius = 0.0f, std::size_t cornerPointCount = 8);
408 explicit RoundedRectangleShape(
const RectF& rect,
float radius = 0.0f, std::size_t cornerPointCount = 8);
460 virtual Vector2f
getPoint(std::size_t index)
const override;
465 std::size_t m_cornerPointCount;
469 #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:177
virtual Vector2f getPoint(std::size_t index) const override
Get a point of the shape.
Specialized shape representing a rounded rectangle.
Definition: Shapes.h:387
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:332
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:355
Specialized shape representing a rectangle.
Definition: Shapes.h:63
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:350
RectangleShape(Vector2f size=Vector2f{0.0f, 0.0f})
Default constructor.
Vector2f getSize() const
Get the size of the rectangle.
Definition: Shapes.h:98
Specialized shape representing a circle.
Definition: Shapes.h:140
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.
ConvexShape(std::size_t pointCount)
Default constructor.
RectangleShape(const RectF &rect)
Constructor with a rectangle.
Specialized shape representing a star.
Definition: Shapes.h:289
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:446
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:314
Specialized shape representing a convex polygon.
Definition: Shapes.h:228
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:426
RoundedRectangleShape(Vector2f size=Vector2f{0.0f, 0.0f}, float radius=0.0f, std::size_t cornerPointCount=8)
Default constructor.