GEOS 3.11.1
Public Member Functions | Static Public Member Functions | List of all members
geos::geom::util::PointExtracter Class Reference

#include <PointExtracter.h>

Inheritance diagram for geos::geom::util::PointExtracter:
geos::geom::GeometryFilter

Public Member Functions

 PointExtracter (Point::ConstVect &newComps)
 
void filter_rw (Geometry *geom) override
 
void filter_ro (const Geometry *geom) override
 
virtual void filter_ro (const Geometry *)
 
virtual void filter_rw (Geometry *)
 

Static Public Member Functions

static void getPoints (const Geometry &geom, Point::ConstVect &ret)
 

Detailed Description

Extracts all the 0-dimensional (Point) components from a Geometry.

Constructor & Destructor Documentation

◆ PointExtracter()

geos::geom::util::PointExtracter::PointExtracter ( Point::ConstVect newComps)

Constructs a PointExtracterFilter with a list in which to store Points found.

Member Function Documentation

◆ filter_ro()

void geos::geom::util::PointExtracter::filter_ro ( const Geometry geom)
overridevirtual

Reimplemented from geos::geom::GeometryFilter.

◆ filter_rw()

void geos::geom::util::PointExtracter::filter_rw ( Geometry geom)
overridevirtual

Reimplemented from geos::geom::GeometryFilter.

◆ getPoints()

static void geos::geom::util::PointExtracter::getPoints ( const Geometry geom,
Point::ConstVect ret 
)
static

Returns the Point components from a single geometry. If more than one geometry is to be processed, it is more efficient to create a single PointExtracter filter instance and pass it to multiple geometries.


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