Skip to content

Class SFCGAL::Surface

ClassList > SFCGAL > Surface

More...

  • #include <Surface.h>

Inherits the following classes: SFCGAL::Geometry

Inherited by the following classes: SFCGAL::Polygon, SFCGAL::PolyhedralSurface, SFCGAL::Triangle, SFCGAL::TriangulatedSurface

Public Functions

Type Name
virtual int dimension () const
virtual ~Surface ()

Public Functions inherited from SFCGAL::Geometry

See SFCGAL::Geometry

Type Name
Geometry ()
Default constructor.
Geometry (const Geometry &) = default
Copy constructor.
virtual void accept (GeometryVisitor & visitor) = 0
[visitor]dispatch visitor
virtual void accept (ConstGeometryVisitor & visitor) const = 0
[visitor]dispatch visitor
auto almostEqual (const Geometry & other, const double tolerance) const
const Derived & as () const
Downcast to a "Derived" class.
Derived & as ()
Downcast to a "Derived" class.
std::string asText (const int & numDecimals=-1) const
std::string asWkb (boost::endian::order wkbOrder=boost::endian::order::native, bool asHex=false) const
virtual std::unique_ptr< Geometry > boundary () const
[OGC/SFA]Returns the boundary of the geometry
virtual Geometry * clone () const = 0
Get a deep copy of the geometry.
virtual int coordinateDimension () const = 0
virtual int dimension () const = 0
double distance (const Geometry & other) const
Computes the distance to an other geometry.
double distance3D (const Geometry & other) const
Computes the 3D distance to an other geometry.
Envelope envelope () const
void forceValidityFlag (bool validity)
virtual const Geometry & geometryN (size_t const & n) const
[OGC/SFA]Returns the n-th geometry
virtual Geometry & geometryN (size_t const & n)
[OGC/SFA]Returns the n-th geometry
virtual std::string geometryType () const = 0
[OGC/SFA]returns the geometry type
virtual GeometryType geometryTypeId () const = 0
Returns a code corresponding to the type.
bool hasValidityFlag () const
bool is () const
Tests if geometry is of "Derived" type given as template parameter.
virtual bool is3D () const = 0
virtual bool isEmpty () const = 0
virtual bool isMeasured () const = 0
virtual size_t numGeometries () const
[OGC/SFA]Gets the number of geometries in a collection of geometries
Geometry & operator= (const Geometry & other) = default
Copy assignemnt operator.
void round (const long & scale=1)
round the geometry with a corresponding scale factor
void serialize (Archive &, const unsigned int)
virtual ~Geometry () = default
Destructor.

Protected Attributes inherited from SFCGAL::Geometry

See SFCGAL::Geometry

Type Name
bool validityFlag_ = = false

Protected Functions

Type Name
Surface ()
Surface (Surface const & other)

Detailed Description

Abstract Surface class

Public Functions Documentation

function dimension

virtual int SFCGAL::Surface::dimension () const

[OGC/SFA]Dimension of the Geometry ( 0 : punctual, 1 : curve, ...)

Warning:

empty geometries provide the dimension corresponding to the object

Implements SFCGAL::Geometry::dimension


function ~Surface

virtual SFCGAL::Surface::~Surface () 

destructor


Protected Functions Documentation

function Surface [1/2]

SFCGAL::Surface::Surface () 

[OGC/SFS]"The area of this Surface, as measured in the spatial reference system of this Surface" [OGC/SFS]"The mathematical centroid for this Surface as a Point. The result in not guaranteed to be on this Surface" [OGC/SFS]"A Point guaranteed to be on this Surface"

Warning:

empty point is isEmpty() no default constructor


function Surface [2/2]

SFCGAL::Surface::Surface (
    Surface const & other
) 

no copy constructor



The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/Surface.h