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

#include <LinearComponentExtracter.h>

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

Public Member Functions

 LinearComponentExtracter (std::vector< const LineString * > &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 getLines (const Geometry &geom, std::vector< const LineString * > &ret)
 

Private Member Functions

 LinearComponentExtracter (const LinearComponentExtracter &other)=delete
 
LinearComponentExtracteroperator= (const LinearComponentExtracter &rhs)=delete
 

Private Attributes

LineString::ConstVectcomps
 

Detailed Description

Extracts all the 1-dimensional (LineString) components from a Geometry.

Definition at line 34 of file LinearComponentExtracter.h.

Constructor & Destructor Documentation

geos::geom::util::LinearComponentExtracter::LinearComponentExtracter ( const LinearComponentExtracter other)
privatedelete
geos::geom::util::LinearComponentExtracter::LinearComponentExtracter ( std::vector< const LineString * > &  newComps)

Constructs a LinearComponentExtracterFilter with a list in which to store LineStrings found.

Member Function Documentation

void geos::geom::util::LinearComponentExtracter::filter_ro ( const Geometry geom)
overridevirtual
void geos::geom::util::LinearComponentExtracter::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::LinearComponentExtracter::getLines ( const Geometry geom,
std::vector< const LineString * > &  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 LinearComponentExtracterFilter instance and pass it to multiple geometries.

Referenced by geos::noding::SegmentStringUtil::extractSegmentStrings().

Here is the caller graph for this function:

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

Member Data Documentation

LineString::ConstVect& geos::geom::util::LinearComponentExtracter::comps
private

Definition at line 38 of file LinearComponentExtracter.h.


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