29 #include "PointSequence.h" 30 #include "SerializationFwd.h" 36 #ifndef DOXYGEN_SHOULD_SKIP_THIS 86 template<
typename Iterator>
102 bool hasPrevPoint(std::size_t i)
const;
112 Vector2f getPrevPoint(std::size_t i)
const;
123 Vector2f getPrevExtensionPoint()
const;
133 bool hasNextPoint(std::size_t i)
const;
143 Vector2f getNextPoint(std::size_t i)
const;
155 Vector2f getNextExtensionPoint()
const;
176 bool contains(
Vector2f point)
const;
204 return m_type == Loop;
215 return m_type == Chain;
234 #ifndef DOXYGEN_SHOULD_SKIP_THIS 239 #endif // GF_POLYLINE_H void setType(Type type)
Set the type of the polyline.
Definition: Polyline.h:183
A deserializer from a binary file.
Definition: Serialization.h:151
The polyline is open.
Definition: Polyline.h:53
Type getType() const
Get the type of the polyline.
Definition: Polyline.h:192
Polyline(Iterator first, Iterator last, Type type=Chain)
Constructor from points.
Definition: Polyline.h:87
A polyline.
Definition: Polyline.h:47
A span.
Definition: Span.h:36
Polyline(Span< const Vector2f > points, Type type=Chain)
Constructor from an array.
Definition: Polyline.h:73
bool isLoop() const
Check is the polyline is a loop.
Definition: Polyline.h:203
bool isChain() const
Check is the polyline is a chain.
Definition: Polyline.h:214
Polyline(Type type=Chain)
Default constructor.
Definition: Polyline.h:62
A serializer to a binary file.
Definition: Serialization.h:43
The namespace for gf classes.
Definition: Action.h:35
Type
The type of polyline.
Definition: Polyline.h:52
Winding
The direction of a polygon's rotation.
Definition: Winding.h:33
General purpose math vector.
Definition: Vector.h:61
The polyline is closed.
Definition: Polyline.h:54
A sequence of points.
Definition: PointSequence.h:44