34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
146 return m_outlineColor;
168 return m_outlineThickness;
266 void updateOutline();
267 void updateOutlineColors();
269 void computeVertices(
VertexArray& vertices,
float halfWidth);
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.
float getWidth() const
Get the width of the curve.
Definition: Curve.h:123
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.
Vector< float, 2 > Vector2f
A float vector with 2 components.
Definition: Vector.h:741
RectF getLocalBounds() const
Get the local bounding rectangle of the entity.
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:65
VertexBuffer commitOutlineGeometry() const
Create a buffer with the current outline geometry.
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:81
Type
The type of the curve.
Definition: Curve.h:57
Data in the graphics memory.
Definition: VertexBuffer.h:70
void updateGeometry()
Recompute the internal geometry of the curve.
Curve()
Default constructor.
A simple curve with no outline.
Definition: Curve.h:58
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.
void setWidth(float width)
Set the width of the curve.
Rect< float > RectF
A float rectangle.
Definition: Rect.h:306
void setAnchor(Anchor anchor)
Set the anchor origin of the entity.
float getOutlineThickness() const
Get the outline thickness of the curve.
Definition: Curve.h:167
Type getType() const noexcept
Return the type of the curve.
Definition: Curve.h:81
An outlined curve.
Definition: Curve.h:59
const Color4f & getColor() const
Get the fill color of the curve.
Definition: Curve.h:107
Vector< float, 4 > Color4f
A float color vector with 4 components.
Definition: Vector.h:855
void setClosed(bool closed=true)
Set the curve closed.
Anchor
The origin anchor of the transformable object.
Definition: Transformable.h:45
virtual Vector2f getPoint(std::size_t index) const =0
Get a point of the curve.
VertexBuffer commitGeometry() const
Create a buffer with the current geometry.
#define GF_API
Definition: Portability.h:35
const Color4f & getOutlineColor() const
Get the outline color of the curve.
Definition: Curve.h:145
void setOutlineColor(const Color4f &color)
Set the outline color of the curve.