SFCGAL  2.3.0
Public Member Functions | Protected Member Functions | List of all members
SFCGAL::Surface Class Reference

Abstract Surface class. More...

#include <Surface.h>

Inherits SFCGAL::Geometry.

Inherited by SFCGAL::GeometryImpl< Polygon, Surface >, SFCGAL::GeometryImpl< PolyhedralSurface, Surface >, SFCGAL::GeometryImpl< Triangle, Surface >, and SFCGAL::GeometryImpl< TriangulatedSurface, Surface >.

Public Member Functions

 ~Surface () override
 destructor More...
 
auto dimension () const -> int override
 Get the dimension of the surface. More...
 

Protected Member Functions

 Surface ()
 [OGC/SFS]"The area of this Surface, as measured in the spatial reference system of this Surface" More...
 
 Surface (Surface const &other)
 no copy constructor More...
 

Detailed Description

Abstract Surface class.

Constructor & Destructor Documentation

SFCGAL::Surface::~Surface ( )
overridedefault

destructor

SFCGAL::Surface::Surface ( )
protecteddefault

[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
SFCGAL::Surface::Surface ( Surface const &  other)
protecteddefault

no copy constructor

Parameters
otherThe surface to copy from

Member Function Documentation

auto SFCGAL::Surface::dimension ( ) const -> int
override

Get the dimension of the surface.

Returns
2 (surfaces are 2-dimensional)