26 #ifndef __TERRALIB_GEOMETRY_INTERNAL_POLYHEDRALSURFACE_H 27 #define __TERRALIB_GEOMETRY_INTERNAL_POLYHEDRALSURFACE_H 85 PolyhedralSurface(
const PolyhedralSurface& rhs);
88 virtual ~PolyhedralSurface();
97 virtual PolyhedralSurface& operator=(
const PolyhedralSurface& rhs);
135 return m_polygons.size();
147 void setNumPatches(std::size_t size);
158 Polygon* getPatchN(std::size_t i)
const;
172 void setPatchN(std::size_t i,
Polygon* p);
273 double getPerimeter()
const;
287 virtual const std::string& getGeometryType()
const throw();
296 void setSRID(
int srid)
throw();
324 void computeMBR(
bool cascade)
const throw();
333 std::size_t getNPoints()
const throw();
349 #endif // __TERRALIB_GEOMETRY_INTERNAL_POLYHEDRALSURFACE_H double getArea() const
It returns the area of this surface, as measured in the spatial reference system of this surface...
PolyhedralSurface is a contiguous collection of polygons, which share common boundary segments...
MultiPolygon is a MultiSurface whose elements are Polygons.
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
static const std::string sm_typeName
Geometry type name for PolyhedralSurface.
An utility struct for representing 2D coordinates.
#define TEGEOMEXPORT
You can use this macro in order to export/import classes and functions from this module.
A point with x and y coordinate values.
An Envelope defines a 2D rectangular region.
Surface is an abstract class that represents a 2-dimensional geometric objects.
A base class for values that can be retrieved from the data access module.
Coord2D * getCentroidCoord() const
It returns the mathematical centroid for this surface as a coordinate.
#define TE_DEFINE_VISITABLE
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
Point * getCentroid() const
It returns the mathematical centroid for this surface as a point.
std::size_t getNumPatches() const
It returns the number of including polygons.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
std::vector< Polygon * > m_polygons
An array with the polygon list.
Coord2D * getCoordOnSurface() const
It returns a coordinate guaranteed to be on this surface.
bool isClosed() const
It returns true if the polygon closes on itself, and thus has no boundary and encloses a solid...
Point * getPointOnSurface() const
It returns a point guaranteed to be on this surface.
Surface is an abstract class that represents a 2-dimensional geometric objects.