#include <PolygonExtracter.h>
Extracts all the 2-dimensional (Polygon) components from a Geometry.
Definition at line 31 of file PolygonExtracter.h.
geos::geom::util::PolygonExtracter::PolygonExtracter |
( |
std::vector< const Polygon * > & |
newComps | ) |
|
Constructs a PolygonExtracterFilter with a list in which to store Polygons found.
geos::geom::util::PolygonExtracter::PolygonExtracter |
( |
const PolygonExtracter & |
other | ) |
|
|
privatedelete |
void geos::geom::util::PolygonExtracter::filter_ro |
( |
const Geometry * |
geom | ) |
|
|
overridevirtual |
void geos::geom::util::PolygonExtracter::filter_rw |
( |
Geometry * |
geom | ) |
|
|
overridevirtual |
static void geos::geom::util::PolygonExtracter::getPolygons |
( |
const Geometry & |
geom, |
|
|
std::vector< const Polygon * > & |
ret |
|
) |
| |
|
static |
Pushes the Polygon components from a single geometry into the provided vector. If more than one geometry is to be processed, it is more efficient to create a single PolygonExtracterFilter instance and pass it to multiple geometries.
std::vector<const Polygon*>& geos::geom::util::PolygonExtracter::comps |
|
private |
The documentation for this class was generated from the following file: