32 #ifndef DOXYGEN_SHOULD_SKIP_THIS    84     template<
typename Iterator>
   111     Vector2f 
getPoint(std::size_t index) 
const;
   120     const Vector2f *
begin() 
const;
   129     const Vector2f *
end() 
const;
   188       return m_type == 
Loop;
   199       return m_type == 
Chain;
   203     std::vector<Vector2f> m_points;
   207 #ifndef DOXYGEN_SHOULD_SKIP_THIS 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
 
bool hasPrevPoint(std::size_t i) const
Check if there is a point before the i-th point. 
 
std::size_t getPointCount() const
Get the number of points of the polyline. 
 
Vector2f getNextPoint(std::size_t i) const
Get the point after the i-th point. 
 
bool hasNextPoint(std::size_t i) const
Check if there is a point after the i-th point. 
 
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
 
const Vector2f * begin() const
Get an iterator to the first point. 
 
Vector2f getPoint(std::size_t index) const
Get the i-th point of the polyline. 
 
The namespace for gf classes. 
Definition: Action.h:34
 
const Vector2f * end() const
Get an iterator past the last point. 
 
A constant reference to an array and its size. 
Definition: ArrayRef.h:42
 
Type
The type of polyline. 
Definition: Polyline.h:48
 
void addPoint(Vector2f point)
Add a point to the polyline. 
 
#define GF_API
Definition: Portability.h:35
 
Vector2f getPrevPoint(std::size_t i) const
Get the point before the i-th point. 
 
The polyline is closed. 
Definition: Polyline.h:50