GEOS  3.9.1dev
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
geos::geom::util::ComponentCoordinateExtracter Class Reference

Extracts a single representative Coordinate from each connected component of a Geometry. More...

#include <ComponentCoordinateExtracter.h>

Inheritance diagram for geos::geom::util::ComponentCoordinateExtracter:
[legend]
Collaboration diagram for geos::geom::util::ComponentCoordinateExtracter:
[legend]

Public Member Functions

 ComponentCoordinateExtracter (std::vector< const Coordinate * > &newComps)
 
void filter_rw (Geometry *geom) override
 
void filter_ro (const Geometry *geom) override
 
- Public Member Functions inherited from geos::geom::GeometryComponentFilter
virtual bool isDone ()
 
virtual ~GeometryComponentFilter ()
 

Static Public Member Functions

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

Private Member Functions

 ComponentCoordinateExtracter (const ComponentCoordinateExtracter &other)=delete
 
ComponentCoordinateExtracteroperator= (const ComponentCoordinateExtracter &rhs)=delete
 

Private Attributes

Coordinate::ConstVectcomps
 

Detailed Description

Extracts a single representative Coordinate from each connected component of a Geometry.

Version
1.9

Definition at line 37 of file ComponentCoordinateExtracter.h.

Constructor & Destructor Documentation

geos::geom::util::ComponentCoordinateExtracter::ComponentCoordinateExtracter ( std::vector< const Coordinate * > &  newComps)

Constructs a ComponentCoordinateFilter with a list in which to store Coordinates found.

geos::geom::util::ComponentCoordinateExtracter::ComponentCoordinateExtracter ( const ComponentCoordinateExtracter other)
privatedelete

Member Function Documentation

void geos::geom::util::ComponentCoordinateExtracter::filter_ro ( const Geometry geom)
overridevirtual
void geos::geom::util::ComponentCoordinateExtracter::filter_rw ( Geometry geom)
overridevirtual

Performs an operation with or on geom.

Parameters
geoma Geometry to which the filter is applied.

Reimplemented from geos::geom::GeometryComponentFilter.

static void geos::geom::util::ComponentCoordinateExtracter::getCoordinates ( const Geometry geom,
std::vector< const Coordinate * > &  ret 
)
static

Push the linear 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 ComponentCoordinateFilter instance and pass it to multiple geometries.

ComponentCoordinateExtracter& geos::geom::util::ComponentCoordinateExtracter::operator= ( const ComponentCoordinateExtracter rhs)
privatedelete

Member Data Documentation

Coordinate::ConstVect& geos::geom::util::ComponentCoordinateExtracter::comps
private

Definition at line 60 of file ComponentCoordinateExtracter.h.


The documentation for this class was generated from the following file: