A Cartesian 2d polygon.
More...
#include <geometries_cs.h>
◆ Cartesian_polygon()
gis::Cartesian_polygon::Cartesian_polygon |
( |
| ) |
|
|
inline |
◆ accept()
Applies a hierarchical visitor to this geometry.
- See also
- gis::Geometry_visitor
- Parameters
-
- Return values
-
true | The execution was aborted by the visitor. |
false | The execution completed. |
Implements gis::Polygon.
◆ cartesian_exterior_ring()
Get the exterior ring.
This function is used by the interface to Boost.Geometry.
- Returns
- The exterior ring.
◆ clone()
◆ const_interior_rings()
decltype(m_interior_rings) const & gis::Cartesian_polygon::const_interior_rings |
( |
| ) |
const |
Get list of interior rings.
This function is used by the interface to Boost.Geometry.
- Returns
- The list of interior rings
◆ coordinate_system()
Gets the coordinate system.
- Returns
- The coordinate system type.
Implements gis::Geometry.
◆ empty()
bool gis::Cartesian_polygon::empty |
( |
| ) |
const |
|
overridevirtual |
Checks if the polygon is empty.
The polygon is considered empty if it has no rings.
- Return values
-
true | The polygon is empty. |
false | The polygon is not empty. |
Implements gis::Polygon.
◆ exterior_ring()
Linearring & gis::Cartesian_polygon::exterior_ring |
( |
| ) |
|
|
inlineoverridevirtual |
Returns the exterior ring of the polygon.
- Note
- If the polygon currently has no exterior ring, an empty one is added.
- Returns
- The exterior ring.
Implements gis::Polygon.
◆ interior_ring()
Linearring & gis::Cartesian_polygon::interior_ring |
( |
std::size_t |
n | ) |
|
|
overridevirtual |
Returns an interior ring of the polygon.
- Parameters
-
n | Ring number, zero indexed. |
- Returns
- The interior ring.
Implements gis::Polygon.
◆ interior_rings()
Get list of interior rings.
This function is used by the interface to Boost.Geometry.
- Returns
- The list of interior rings
◆ push_back() [1/2]
void gis::Cartesian_polygon::push_back |
( |
const Linearring & |
lr | ) |
|
|
overridevirtual |
Adds a linear ring to the polygon.
The first ring will become the exterior ring. All following rings will be interior rings (holes).
- Parameters
-
lr | The linear ring to add. |
Implements gis::Polygon.
◆ push_back() [2/2]
void gis::Cartesian_polygon::push_back |
( |
Linearring && |
lr | ) |
|
|
overridevirtual |
◆ size()
std::size_t gis::Cartesian_polygon::size |
( |
| ) |
const |
|
overridevirtual |
Returns the size of the polygon.
- Returns
- Number of rings in the polygon (exterior + interior).
Implements gis::Polygon.
◆ m_exterior_ring
◆ m_interior_rings
The documentation for this class was generated from the following files: