LuciadCPillar 2024.0.04
|
1-dimensional geometric primitive, representing the continuous image of a line. More...
#include <luciad/geometries/Curve.h>
Public Member Functions | |
virtual Coordinate | computePoint (double parameter) const =0 |
Computes a point of the curve, defined by the given parameter. More... | |
virtual double | getLength2D () const =0 |
Returns the length of the curve. More... | |
Public Member Functions inherited from luciad::Geometry | |
virtual | ~Geometry ()=default |
virtual Bounds | getBounds () const =0 |
Returns the bounds for the geometry object. More... | |
virtual std::shared_ptr< CoordinateReference > | getReference () const =0 |
Returns the coordinate reference of the geometry. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from luciad::Geometry | |
virtual size_t | getHash () const =0 |
Returns the hash value for this geometry. More... | |
1-dimensional geometric primitive, representing the continuous image of a line.
One-dimensional geometries may be composed of simple curve segments where for adjacent curve segments the end and start point fall together to form a continuous geometry. A curve may be composed of curve segments that each have a different interpolation type. The most common use for curves is to have curve segments with the same interpolation type (e.g. polyline).
You can read more about the available geometries here.
|
pure virtual |
Computes a point of the curve, defined by the given parameter.
parameter | the parameter value, within [0,1] , to compute the point location for. |
luciad::InvalidArgumentException | if parameter is not within [0,1] , or if the point could not be computed. For example, when the curve is defined by invalid points. |
Implemented in luciad::ArcBand, luciad::BezierCurve, luciad::CircleBy3Points, luciad::CircleByCenterPoint, luciad::CircularArcBy3Points, luciad::CircularArcByBulge, luciad::CircularArcByCenterPoint, luciad::CompositeCurve, luciad::CompositeRing, luciad::Ellipse, luciad::EllipticalArc, luciad::Line, luciad::Polyline, and luciad::PolylineRing.
|
pure virtual |
Returns the length of the curve.
luciad::InvalidArgumentException | if the length could not be computed. For example, when the curve is defined by invalid points. |
Implemented in luciad::ArcBand, luciad::BezierCurve, luciad::CircleBy3Points, luciad::CircleByCenterPoint, luciad::CircularArcBy3Points, luciad::CircularArcByBulge, luciad::CircularArcByCenterPoint, luciad::CompositeCurve, luciad::CompositeRing, luciad::Ellipse, luciad::EllipticalArc, luciad::Line, luciad::Polyline, and luciad::PolylineRing.