26 #include "GraphicsApi.h" 28 #include "Transformable.h" 30 #include "VertexArray.h" 31 #include "VertexBuffer.h" 34 #ifndef DOXYGEN_SHOULD_SKIP_THIS 74 void setType(
Type type);
98 void setColor(
const Color4f& color);
116 void setWidth(
float width);
136 void setOutlineColor(
const Color4f& color);
146 return m_outlineColor;
158 void setOutlineThickness(
float thickness);
168 return m_outlineThickness;
177 virtual std::size_t getPointCount()
const = 0;
194 virtual Vector2f getPoint(std::size_t index)
const = 0;
207 RectF getLocalBounds()
const;
219 void setAnchor(
Anchor anchor);
251 void updateGeometry();
262 void setClosed(
bool closed =
true);
266 void updateOutline();
267 void updateOutlineColors();
269 void computeVertices(
VertexArray& vertices,
float halfWidth);
280 float m_outlineThickness;
284 #ifndef DOXYGEN_SHOULD_SKIP_THIS
An outlined curve.
Definition: Curve.h:59
A set of primitives.
Definition: VertexArray.h:65
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:102
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82
Data in the graphics memory.
Definition: VertexBuffer.h:81
A curve is a one dimension object.
Definition: Curve.h:52
A simple curve with no outline.
Definition: Curve.h:58
The namespace for gf classes.
Definition: Action.h:35
const Color4f & getOutlineColor() const
Get the outline color of the curve.
Definition: Curve.h:145
const Color4f & getColor() const
Get the fill color of the curve.
Definition: Curve.h:107
A 4D vector.
Definition: Vector.h:852
Type getType() const noexcept
Return the type of the curve.
Definition: Curve.h:81
Anchor
An anchor of a box.
Definition: Anchor.h:38
float getWidth() const
Get the width of the curve.
Definition: Curve.h:123
Type
The type of the curve.
Definition: Curve.h:57
General purpose math vector.
Definition: Vector.h:61
float getOutlineThickness() const
Get the outline thickness of the curve.
Definition: Curve.h:167