Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

geos::geom::util::PolygonExtracter Class Reference

#include <PolygonExtracter.h>

Inheritance diagram for geos::geom::util::PolygonExtracter:

geos::geom::GeometryFilter List of all members.

Public Member Functions

 PolygonExtracter (std::vector< const Polygon * > &newComps)
void filter_rw (Geometry *geom)
void filter_ro (const Geometry *geom)

Static Public Member Functions

static void getPolygons (const Geometry &geom, std::vector< const Polygon * > &ret)

Detailed Description

Extracts all the 2-dimensional (Polygon) components from a Geometry.

Constructor & Destructor Documentation

geos::geom::util::PolygonExtracter::PolygonExtracter std::vector< const Polygon * > &  newComps  )  [inline]

Constructs a PolygonExtracterFilter with a list in which to store Polygons found.

Member Function Documentation

static void geos::geom::util::PolygonExtracter::getPolygons const Geometry geom,
std::vector< const Polygon * > &  ret
[inline, 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.

The documentation for this class was generated from the following file:
Generated on Thu Jun 11 06:17:03 2009 for GEOS by  doxygen 1.4.4