20 #ifndef GeomAPI_Curve_H_
21 #define GeomAPI_Curve_H_
23 #include <GeomAPI_Shape.h>
42 GeomAPI_Curve(
const std::shared_ptr<GeomAPI_Shape>& theShape);
50 bool isEqual(
const std::shared_ptr<GeomAPI_Curve>& theOther)
const;
54 virtual bool isLine()
const;
78 virtual std::shared_ptr<GeomAPI_Curve>
basisCurve()
const;
83 std::shared_ptr<GeomAPI_Pnt>
getPoint(
double theParam);
86 GEOMAPI_EXPORT
const std::shared_ptr<GeomAPI_Pnt>
project(
87 const std::shared_ptr<GeomAPI_Pnt>& thePoint)
const;
96 bool operator ()(
const std::shared_ptr<GeomAPI_Curve>& theCurve1,
97 const std::shared_ptr<GeomAPI_Curve>& theCurve2)
const;
106 typedef std::shared_ptr<GeomAPI_Curve> GeomCurvePtr;
Compare addresses of curves.
Definition: GeomAPI_Curve.h:92
GEOMAPI_EXPORT bool operator()(const std::shared_ptr< GeomAPI_Curve > &theCurve1, const std::shared_ptr< GeomAPI_Curve > &theCurve2) const
Return true if the address of the first curve is less than the address of the second.
Definition: GeomAPI_Curve.cpp:160
Interface to the generic curve object.
Definition: GeomAPI_Curve.h:34
GEOMAPI_EXPORT double endParam()
Returns end parameter of the curve.
Definition: GeomAPI_Curve.cpp:99
virtual GEOMAPI_EXPORT bool isTrimmed() const
Returns true if the curve is trimmed.
Definition: GeomAPI_Curve.cpp:123
GEOMAPI_EXPORT double startParam()
Returns start parameter of the curve.
Definition: GeomAPI_Curve.cpp:87
virtual GEOMAPI_EXPORT bool isCircle() const
Returns whether the curve is circular.
Definition: GeomAPI_Curve.cpp:77
GEOMAPI_EXPORT bool isNull() const
Returns true if curve is not initialized.
Definition: GeomAPI_Curve.cpp:57
virtual GEOMAPI_EXPORT bool isLine() const
Returns whether the curve is linear.
Definition: GeomAPI_Curve.cpp:72
GEOMAPI_EXPORT bool isEqual(const std::shared_ptr< GeomAPI_Curve > &theOther) const
Returns true if curves are equal.
Definition: GeomAPI_Curve.cpp:118
GEOMAPI_EXPORT GeomAPI_Curve()
Creation of empty (null) shape.
Definition: GeomAPI_Curve.cpp:37
virtual GEOMAPI_EXPORT bool isEllipse() const
Returns whether the curve is elliptic.
Definition: GeomAPI_Curve.cpp:82
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_Pnt > project(const std::shared_ptr< GeomAPI_Pnt > &thePoint) const
Project point on curve.
Definition: GeomAPI_Curve.cpp:140
virtual GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Curve > basisCurve() const
Returns basis for the trimmed curve.
Definition: GeomAPI_Curve.cpp:128
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > getPoint(double theParam)
Returns point on the curve by parameter.
Definition: GeomAPI_Curve.cpp:111
General base class for all interfaces in this package.
Definition: GeomAPI_Interface.h:38
3D point defined by three coordinates
Definition: GeomAPI_Pnt.h:38