SFCGAL
Public Member Functions | List of all members
SFCGAL::transform::ForceOrderPoints Class Reference

If the 2D surface is pointing down, reverse its points. More...

#include <ForceOrderPoints.h>

Inheritance diagram for SFCGAL::transform::ForceOrderPoints:
SFCGAL::Transform SFCGAL::GeometryVisitor

Public Member Functions

 ForceOrderPoints (bool orientCCW=true)
 Pass the forced orientation as parameter. More...
 
virtual void transform (Point &p)
 apply transform to a geometry More...
 
virtual void visit (Triangle &)
 
virtual void visit (Polygon &)
 
- Public Member Functions inherited from SFCGAL::Transform
virtual ~Transform ()
 
virtual void transform (Point &p)=0
 apply transform to a geometry More...
 
virtual void visit (Point &g)
 
virtual void visit (LineString &g)
 
virtual void visit (Polygon &g)
 
virtual void visit (Triangle &g)
 
virtual void visit (Solid &g)
 
virtual void visit (MultiPoint &g)
 
virtual void visit (MultiLineString &g)
 
virtual void visit (MultiPolygon &g)
 
virtual void visit (MultiSolid &g)
 
virtual void visit (GeometryCollection &g)
 
virtual void visit (PolyhedralSurface &g)
 
virtual void visit (TriangulatedSurface &g)
 
- Public Member Functions inherited from SFCGAL::GeometryVisitor
virtual ~GeometryVisitor ()
 
virtual void visit (Geometry &g)
 apply visitor More...
 
virtual void visit (Point &g)=0
 
virtual void visit (LineString &g)=0
 
virtual void visit (Polygon &g)=0
 
virtual void visit (Triangle &g)=0
 
virtual void visit (Solid &g)=0
 
virtual void visit (MultiPoint &g)=0
 
virtual void visit (MultiLineString &g)=0
 
virtual void visit (MultiPolygon &g)=0
 
virtual void visit (MultiSolid &g)=0
 
virtual void visit (GeometryCollection &g)=0
 
virtual void visit (PolyhedralSurface &g)=0
 
virtual void visit (TriangulatedSurface &g)=0
 

Detailed Description

If the 2D surface is pointing down, reverse its points.

Todo:

unittest

move outside (it's not a coordinate transform)?

Constructor & Destructor Documentation

◆ ForceOrderPoints()

SFCGAL::transform::ForceOrderPoints::ForceOrderPoints ( bool  orientCCW = true)

Pass the forced orientation as parameter.

Member Function Documentation

◆ transform()

void SFCGAL::transform::ForceOrderPoints::transform ( Point p)
virtual

apply transform to a geometry

Implements SFCGAL::Transform.

◆ visit() [1/2]

void SFCGAL::transform::ForceOrderPoints::visit ( Polygon p)
virtual

Reimplemented from SFCGAL::Transform.

◆ visit() [2/2]

void SFCGAL::transform::ForceOrderPoints::visit ( Triangle t)
virtual

Reimplemented from SFCGAL::Transform.