31 #include "GraphicsApi.h" 38 #ifndef DOXYGEN_SHOULD_SKIP_THIS 103 std::size_t getPointCount()
const override;
104 Vector2f getPoint(std::size_t index)
const override;
149 CircleShape(
float radius = 0, std::size_t pointCount = 30);
169 void setRadius(
float radius);
189 void setPointCount(std::size_t pointCount);
191 std::size_t getPointCount()
const override;
192 Vector2f getPoint(std::size_t index)
const override;
196 std::size_t m_pointCount;
254 void setPointCount(std::size_t pointCount);
263 void setPoint(std::size_t index,
Vector2f point);
265 std::size_t getPointCount()
const override;
266 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);
314 void setMinRadius(
float minRadius);
332 void setMaxRadius(
float maxRadius);
350 void setBranches(std::size_t branches);
362 std::size_t getPointCount()
const override;
363 Vector2f getPoint(std::size_t index)
const override;
368 std::size_t m_branches;
445 void setRadius(
float radius);
465 void setCornerPointCount(std::size_t cornerPointCount);
467 std::size_t getPointCount()
const override;
468 Vector2f getPoint(std::size_t index)
const override;
473 std::size_t m_cornerPointCount;
484 Pie(
float radius,
float angle0,
float angle1,
Variation variation =
Positive, std::size_t pointCount = 30);
486 void setRadius(
float radius);
492 void setAngleRange(
float angle0,
float angle1,
Variation variation);
494 void setPointCount(std::size_t pointCount);
496 std::size_t getPointCount()
const override;
497 Vector2f getPoint(std::size_t index)
const override;
506 std::size_t m_pointCount;
509 #ifndef DOXYGEN_SHOULD_SKIP_THIS 514 #endif // GF_SHAPES_H Base class for textured shapes with outline.
Definition: Shape.h:73
Variation
Definition: Shapes.h:479
Specialized shape representing a rounded rectangle.
Definition: Shapes.h:395
Specialized shape representing a rectangle.
Definition: Shapes.h:64
float getMinRadius() const
Get the minimum radius.
Definition: Shapes.h:322
Utility class for manipulating circles.
Definition: Circ.h:61
float getMaxRadius() const
Get the maximum radius.
Definition: Shapes.h:340
Positive direction of the axis.
The namespace for gf classes.
Definition: Action.h:35
Specialized shape representing a circle.
Definition: Shapes.h:141
Vector2f getSize() const
Get the size of the rectangle.
Definition: Shapes.h:99
float getRadius() const
Get the radius of the corner.
Definition: Shapes.h:454
A convex polygon.
Definition: Polygon.h:47
Specialized shape representing a star.
Definition: Shapes.h:297
Vector2f getSize() const
Get the size of the rectangle.
Definition: Shapes.h:434
Specialized shape representing a convex polygon.
Definition: Shapes.h:229
General purpose math vector.
Definition: Vector.h:61
float getRadius() const
Definition: Shapes.h:488
std::size_t getBranches() const
Get the number of branches.
Definition: Shapes.h:358
float getRadius() const
Get the radius of the circle.
Definition: Shapes.h:178