26 #ifndef __TERRALIB_GEOMETRY_INTERNAL_COMPOUNDCURVE_H
27 #define __TERRALIB_GEOMETRY_INTERNAL_COMPOUNDCURVE_H
85 CompoundCurve(std::size_t size,
GeomType t,
int srid = 0,
Envelope* mbr = 0);
92 CompoundCurve(
const CompoundCurve& rhs);
104 CompoundCurve& operator=(
const CompoundCurve& rhs);
140 const std::string& getGeometryType()
const throw();
149 void setSRID(
int srid)
throw();
175 void computeMBR(
bool cascade)
const throw();
184 std::size_t getNPoints()
const throw();
196 Geometry* locateBetween(
const double& mStart,
const double& mEnd)
const throw(
Exception);
210 double getLength()
const;
219 Point* getStartPoint()
const;
228 Point* getEndPoint()
const;
237 bool isClosed()
const;
253 std::size_t
size()
const {
return m_curves.size(); }
267 Curve* getCurve(std::size_t i)
const;
318 #endif // __TERRALIB_GEOMETRY_INTERNAL_COMPOUNDCURVE_H
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
Base exception class for plugin module.
Curve is an abstract class that represents 1-dimensional geometric objects stored as a sequence of co...
std::vector< Curve * > m_curves
The list of segments of the compund curve.
#define TEGEOMEXPORT
You can use this macro in order to export/import classes and functions from this module.
std::size_t size() const
It returns the number of elements in the compound geometry.
A point with x and y coordinate values.
An Envelope defines a 2D rectangular region.
CompoundCurve is a curve that may have circular and linear segments.
A base class for values that can be retrieved from the data access module.
#define TE_DEFINE_VISITABLE
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
Curve is an abstract class that represents 1-dimensional geometric objects stored as a sequence of co...
const std::vector< Curve * > & getCurves() const
It returns a pointer to the internal array of segments.
static const std::string sm_typeName
std::vector< Curve * > & getCurves()
It returns a pointer to the internal array of segments.