28 #include "Portability.h" 32 #ifndef DOXYGEN_SHOULD_SKIP_THIS 71 : m_points(points.begin(), points.end())
84 template<
typename Iterator>
86 : m_points(first, last)
104 std::size_t getPointCount()
const;
111 Vector2f getPoint(std::size_t index)
const;
139 bool hasPrevPoint(std::size_t i)
const;
149 Vector2f getPrevPoint(std::size_t i)
const;
159 bool hasNextPoint(std::size_t i)
const;
169 Vector2f getNextPoint(std::size_t i)
const;
188 return m_type == Loop;
199 return m_type == Chain;
203 std::vector<Vector2f> m_points;
207 #ifndef DOXYGEN_SHOULD_SKIP_THIS 212 #endif // GF_POLYLINE_H void setType(Type type)
Set the type of the polyline.
Definition: Polyline.h:176
Polyline(ArrayRef< Vector2f > points, Type type=Chain)
Constructor from an array.
Definition: Polyline.h:70
The polyline is open.
Definition: Polyline.h:49
Polyline(Iterator first, Iterator last, Type type=Chain)
Constructor from points.
Definition: Polyline.h:85
A polyline.
Definition: Polyline.h:43
bool isLoop() const
Check is the polyline is a loop.
Definition: Polyline.h:187
bool isChain() const
Check is the polyline is a chain.
Definition: Polyline.h:198
Polyline(Type type=Chain)
Default constructor.
Definition: Polyline.h:58
The namespace for gf classes.
Definition: Action.h:34
A constant reference to an array and its size.
Definition: ArrayRef.h:42
Type
The type of polyline.
Definition: Polyline.h:48
The polyline is closed.
Definition: Polyline.h:50