SFCGAL  2.3.0
Public Types | Public Member Functions | Public Attributes | List of all members
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< const Point * >::const_iterator const_iterator
 Const iterator type for points. More...
 

Public Member Functions

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

Public Attributes

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

Detailed Description

Get the list of points from a Geometry.

Member Typedef Documentation

Const iterator type for points.

Member Function Documentation

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

Member Data Documentation

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

Collection of collected points.