SFCGAL 2.3.0
SFCGAL::detail::GetPointsVisitor Class Reference

Get the list of points from a Geometry. More...

#include <GetPointsVisitor.h>

Inheritance diagram for SFCGAL::detail::GetPointsVisitor:
SFCGAL::ConstGeometryVisitor

Public Types

typedef std::vector< constPoint * >::const_iterator const_iterator
 Const iterator type for points.

Public Member Functions

void visit (const Point &g) override
 Visit a Point and add it to collection.
void visit (const LineString &g) override
 Visit a LineString and add all points to collection.
void visit (const Polygon &g) override
 Visit a Polygon and add all points to collection.
void visit (const Triangle &g) override
 Visit a Triangle and add all points to collection.
void visit (const Solid &g) override
 Visit a Solid and add all points to collection.
void visit (const MultiPoint &g) override
 Visit a MultiPoint and add all points to collection.
void visit (const MultiLineString &g) override
 Visit a MultiLineString and add all points to collection.
void visit (const MultiPolygon &g) override
 Visit a MultiPolygon and add all points to collection.
void visit (const MultiSolid &g) override
 Visit a MultiSolid and add all points to collection.
void visit (const GeometryCollection &g) override
 Visit a GeometryCollection and add all points to collection.
void visit (const PolyhedralSurface &g) override
 Visit a PolyhedralSurface and add all points to collection.
void visit (const TriangulatedSurface &g) override
 Visit a TriangulatedSurface and add all points to collection.
void visit (const NURBSCurve &g) override
 Process NURBSCurve to extract control points.
Public Member Functions inherited from SFCGAL::ConstGeometryVisitor
virtual ~ConstGeometryVisitor ()
 Default destructor for ConstGeometryVisitor.
virtual void visit (const Geometry &geometry)
 Apply this visitor to a generic const Geometry reference.

Public Attributes

std::vector< const Point * > points
 Collection of collected points.

Detailed Description

Get the list of points from a Geometry.

Member Typedef Documentation

◆ const_iterator

typedef std::vector<constPoint*>::const_iterator SFCGAL::detail::GetPointsVisitor::const_iterator

Const iterator type for points.

Member Function Documentation

◆ visit() [1/13]

void SFCGAL::detail::GetPointsVisitor::visit ( const GeometryCollection & g)
overridevirtual

Visit a GeometryCollection and add all points to collection.

Parameters
gThe geometry collection to visit

Implements SFCGAL::ConstGeometryVisitor.

◆ visit() [2/13]

void SFCGAL::detail::GetPointsVisitor::visit ( const LineString & g)
overridevirtual

Visit a LineString and add all points to collection.

Parameters
gThe linestring to visit

Implements SFCGAL::ConstGeometryVisitor.

◆ visit() [3/13]

void SFCGAL::detail::GetPointsVisitor::visit ( const MultiLineString & g)
overridevirtual

Visit a MultiLineString and add all points to collection.

Parameters
gThe multilinestring to visit

Implements SFCGAL::ConstGeometryVisitor.

◆ visit() [4/13]

void SFCGAL::detail::GetPointsVisitor::visit ( const MultiPoint & g)
overridevirtual

Visit a MultiPoint and add all points to collection.

Parameters
gThe multipoint to visit

Implements SFCGAL::ConstGeometryVisitor.

◆ visit() [5/13]

void SFCGAL::detail::GetPointsVisitor::visit ( const MultiPolygon & g)
overridevirtual

Visit a MultiPolygon and add all points to collection.

Parameters
gThe multipolygon to visit

Implements SFCGAL::ConstGeometryVisitor.

◆ visit() [6/13]

void SFCGAL::detail::GetPointsVisitor::visit ( const MultiSolid & g)
overridevirtual

Visit a MultiSolid and add all points to collection.

Parameters
gThe multisolid to visit

Implements SFCGAL::ConstGeometryVisitor.

◆ visit() [7/13]

void SFCGAL::detail::GetPointsVisitor::visit ( const NURBSCurve & g)
overridevirtual

Process NURBSCurve to extract control points.

Parameters
gThe NURBSCurve geometry to process

Reimplemented from SFCGAL::ConstGeometryVisitor.

◆ visit() [8/13]

void SFCGAL::detail::GetPointsVisitor::visit ( const Point & g)
overridevirtual

Visit a Point and add it to collection.

Parameters
gThe point to visit

Implements SFCGAL::ConstGeometryVisitor.

◆ visit() [9/13]

void SFCGAL::detail::GetPointsVisitor::visit ( const Polygon & g)
overridevirtual

Visit a Polygon and add all points to collection.

Parameters
gThe polygon to visit

Implements SFCGAL::ConstGeometryVisitor.

◆ visit() [10/13]

void SFCGAL::detail::GetPointsVisitor::visit ( const PolyhedralSurface & g)
overridevirtual

Visit a PolyhedralSurface and add all points to collection.

Parameters
gThe polyhedral surface to visit

Implements SFCGAL::ConstGeometryVisitor.

◆ visit() [11/13]

void SFCGAL::detail::GetPointsVisitor::visit ( const Solid & g)
overridevirtual

Visit a Solid and add all points to collection.

Parameters
gThe solid to visit

Implements SFCGAL::ConstGeometryVisitor.

◆ visit() [12/13]

void SFCGAL::detail::GetPointsVisitor::visit ( const Triangle & g)
overridevirtual

Visit a Triangle and add all points to collection.

Parameters
gThe triangle to visit

Implements SFCGAL::ConstGeometryVisitor.

◆ visit() [13/13]

void SFCGAL::detail::GetPointsVisitor::visit ( const TriangulatedSurface & g)
overridevirtual

Visit a TriangulatedSurface and add all points to collection.

Parameters
gThe triangulated surface to visit

Implements SFCGAL::ConstGeometryVisitor.

Member Data Documentation

◆ points

std::vector<const Point *> SFCGAL::detail::GetPointsVisitor::points

Collection of collected points.