|
SFCGAL
2.2.0
|
A LineString in SFA. More...
#include <LineString.h>
Inherits SFCGAL::Geometry.
Classes | |
| class | Point_2_const_iterator |
| Const iterator to 2D points TODO: replace by boost::tranform_iterator ? More... | |
| class | Point_3_const_iterator |
| Const iterator to 3D points TODO: replace by boost::tranform_iterator ? More... | |
Public Types | |
| typedef boost::ptr_vector< Point >::iterator | iterator |
| typedef boost::ptr_vector< Point >::const_iterator | const_iterator |
Public Member Functions | |
| LineString () | |
| Empty LineString constructor. More... | |
| LineString (const std::vector< Point > &points) | |
| Constructor with a point vector. More... | |
| LineString (const Point &startPoint, const Point &endPoint) | |
| LineString constructor. More... | |
| LineString (LineString const &other) | |
| Copy constructor. More... | |
| LineString & | operator= (LineString other) |
| assign operator More... | |
| ~LineString () | |
| destructor More... | |
| LineString * | clone () const override |
| std::string | geometryType () const override |
| GeometryType | geometryTypeId () const override |
| int | dimension () const override |
| int | coordinateDimension () const override |
| bool | isEmpty () const override |
| bool | is3D () const override |
| bool | isMeasured () const override |
| auto | dropZ () -> bool override |
| auto | dropM () -> bool override |
| auto | swapXY () -> void override |
| void | clear () |
| remove all points from the LineString More... | |
| void | reverse () |
| reverse LineString orientation More... | |
| size_t | numPoints () const |
| [SFA/OGC]Returns the number of points More... | |
| size_t | numSegments () const |
| Returns the number of segments. More... | |
| const Point & | pointN (size_t const &n) const |
| [SFA/OGC]Returns the n-th point More... | |
| Point & | pointN (size_t const &n) |
| [SFA/OGC]Returns the n-th point More... | |
| const Point & | startPoint () const |
| [SFA/OGC]Returns the first point More... | |
| Point & | startPoint () |
| [SFA/OGC]Returns the first point More... | |
| const Point & | endPoint () const |
| [SFA/OGC]Returns the first point More... | |
| Point & | endPoint () |
| [SFA/OGC]Returns the first point More... | |
| void | addPoint (const Point &p) |
| append a Point to the LineString More... | |
| void | addPoint (Point *p) |
| append a Point to the LineString and takes ownership More... | |
| bool | isClosed () const |
| test if the LineString is closed More... | |
| void | closes () |
| closes the LineString More... | |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| void | reserve (const size_t &n) |
| Point_2_const_iterator | points_2_begin () const |
| Point_2_const_iterator | points_2_end () const |
| std::pair< Point_2_const_iterator, Point_2_const_iterator > | points_2 () const |
| Point_3_const_iterator | points_3_begin () const |
| Point_3_const_iterator | points_3_end () const |
| std::pair< Point_3_const_iterator, Point_3_const_iterator > | points_3 () const |
| CGAL::Polygon_2< Kernel > | toPolygon_2 (bool fixOrientation=true) const |
| void | accept (GeometryVisitor &visitor) override |
| void | accept (ConstGeometryVisitor &visitor) const override |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int) |
| Serializer. More... | |
A LineString in SFA.
| typedef boost::ptr_vector<Point>::const_iterator SFCGAL::LineString::const_iterator |
| typedef boost::ptr_vector<Point>::iterator SFCGAL::LineString::iterator |
|
default |
Empty LineString constructor.
| SFCGAL::LineString::LineString | ( | const std::vector< Point > & | points | ) |
Constructor with a point vector.
LineString constructor.
| SFCGAL::LineString::LineString | ( | LineString const & | other | ) |
Copy constructor.
|
default |
destructor
|
override |
|
override |
|
inline |
append a Point to the LineString
|
inline |
append a Point to the LineString and takes ownership
|
inline |
|
inline |
| void SFCGAL::LineString::clear | ( | ) |
remove all points from the LineString
|
override |
|
inline |
closes the LineString
|
override |
|
override |
|
override |
|
override |
|
inline |
|
inline |
|
inline |
[SFA/OGC]Returns the first point
|
inline |
[SFA/OGC]Returns the first point
|
override |
|
override |
|
override |
| auto SFCGAL::LineString::isClosed | ( | ) | const |
test if the LineString is closed
|
override |
|
override |
|
inline |
[SFA/OGC]Returns the number of points
| auto SFCGAL::LineString::numSegments | ( | ) | const |
Returns the number of segments.
| auto SFCGAL::LineString::operator= | ( | LineString | other | ) |
assign operator
|
inline |
[SFA/OGC]Returns the n-th point
|
inline |
[SFA/OGC]Returns the n-th point
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void SFCGAL::LineString::reserve | ( | const size_t & | n | ) |
| void SFCGAL::LineString::reverse | ( | ) |
reverse LineString orientation
|
inline |
Serializer.
|
inline |
[SFA/OGC]Returns the first point
|
inline |
[SFA/OGC]Returns the first point
|
override |
| auto SFCGAL::LineString::toPolygon_2 | ( | bool | fixOrientation = true | ) | const |
1.8.10