34 #ifndef DOXYGEN_SHOULD_SKIP_THIS 146 return m_outlineColor;
168 return m_outlineThickness;
194 virtual Vector2f
getPoint(std::size_t index)
const = 0;
266 void updateOutline();
267 void updateOutlineColors();
269 void computeVertices(
VertexArray& vertices,
float halfWidth);
279 Color4f m_outlineColor;
280 float m_outlineThickness;
284 #ifndef DOXYGEN_SHOULD_SKIP_THIS
void setColor(const Color4f &color)
Set the fill color of the curve.
void setOutlineThickness(float thickness)
Set the thickness of the curve's outline.
An outlined curve.
Definition: Curve.h:59
A set of primitives.
Definition: VertexArray.h:65
virtual std::size_t getPointCount() const =0
Get the total number of points of the curve.
void setType(Type type)
Set the type of the curve.
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:66
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82
RectF getLocalBounds() const
Get the local bounding rectangle of the entity.
VertexBuffer commitOutlineGeometry() const
Create a buffer with the current outline geometry.
Data in the graphics memory.
Definition: VertexBuffer.h:70
void updateGeometry()
Recompute the internal geometry of the curve.
Curve()
Default constructor.
A curve is a one dimension object.
Definition: Curve.h:52
virtual void draw(RenderTarget &target, RenderStates states)
Draw the object to a render target.
A simple curve with no outline.
Definition: Curve.h:58
void setWidth(float width)
Set the width of the curve.
void setAnchor(Anchor anchor)
Set the anchor origin of the entity.
The namespace for gf classes.
Definition: Action.h:34
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
Type getType() const noexcept
Return the type of the curve.
Definition: Curve.h:81
void setClosed(bool closed=true)
Set the curve closed.
Anchor
An anchor of a box.
Definition: Anchor.h:41
VertexBuffer commitGeometry() const
Create a buffer with the current geometry.
virtual Vector2f getPoint(std::size_t index) const =0
Get a point of the curve.
float getWidth() const
Get the width of the curve.
Definition: Curve.h:123
Type
The type of the curve.
Definition: Curve.h:57
#define GF_API
Definition: Portability.h:35
float getOutlineThickness() const
Get the outline thickness of the curve.
Definition: Curve.h:167
void setOutlineColor(const Color4f &color)
Set the outline color of the curve.