#include <Geom2dAPI_ProjectPointOnCurve.hxx>
Public Member Functions | |
void * | operator new (size_t, void *anAddress) |
void * | operator new (size_t size) |
void | operator delete (void *anAddress) |
Standard_EXPORT | Geom2dAPI_ProjectPointOnCurve () |
Constructs an empty projector algorithm. Use an Init function to define the point and the curve on which it is going to work. . | |
Standard_EXPORT | Geom2dAPI_ProjectPointOnCurve (const gp_Pnt2d &P, const Handle(Geom2d_Curve)&Curve) |
Create the projection of a point | |
Standard_EXPORT | Geom2dAPI_ProjectPointOnCurve (const gp_Pnt2d &P, const Handle(Geom2d_Curve)&Curve, const Quantity_Parameter Umin, const Quantity_Parameter Usup) |
Create the projection of a point
on a curve | |
Standard_EXPORT void | Init (const gp_Pnt2d &P, const Handle(Geom2d_Curve)&Curve) |
Initializes this algorithm with the given arguments, and computes the orthogonal projections of a point | |
Standard_EXPORT void | Init (const gp_Pnt2d &P, const Handle(Geom2d_Curve)&Curve, const Quantity_Parameter Umin, const Quantity_Parameter Usup) |
Initializes this algorithm with the given arguments, and computes the orthogonal projections of the point P onto the portion of the curve Curve limited by the two points of parameter Umin and Usup. . | |
Standard_EXPORT Standard_Integer | NbPoints () const |
return the number of of computed orthogonal projectionn points. | |
Standard_EXPORT | operator Standard_Integer () const |
Standard_EXPORT gp_Pnt2d | Point (const Standard_Integer Index) const |
Returns the orthogonal projection on the curve. Index is a number of a computed point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points. . | |
Standard_EXPORT Quantity_Parameter | Parameter (const Standard_Integer Index) const |
Returns the parameter on the curve of a point which is the orthogonal projection. Index is a number of a computed projected point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points. . | |
Standard_EXPORT void | Parameter (const Standard_Integer Index, Quantity_Parameter &U) const |
Returns the parameter on the curve of a point which is the orthogonal projection. Index is a number of a computed projected point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points . | |
Standard_EXPORT Quantity_Length | Distance (const Standard_Integer Index) const |
Computes the distance between the point and its computed orthogonal projection on the curve. Index is a number of computed projected point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points. . | |
Standard_EXPORT gp_Pnt2d | NearestPoint () const |
Returns the nearest orthogonal projection of the point on the curve. Exceptions StdFail_NotDone if this algorithm fails. . | |
Standard_EXPORT | operator gp_Pnt2d () const |
Standard_EXPORT Quantity_Parameter | LowerDistanceParameter () const |
Returns the parameter on the curve of the nearest orthogonal projection of the point. Exceptions StdFail_NotDone if this algorithm fails. . | |
Standard_EXPORT Quantity_Length | LowerDistance () const |
Computes the distance between the point and its nearest orthogonal projection on the curve. Exceptions StdFail_NotDone if this algorithm fails. . | |
Standard_EXPORT | operator Standard_Real () const |
const Extrema_ExtPC2d & | Extrema () const |
return the algorithmic object from Extrema | |
Private Attributes | |
Standard_Boolean | myIsDone |
Standard_Integer | myIndex |
Extrema_ExtPC2d | myExtPC |
Geom2dAdaptor_Curve | myC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|