0028799: Coding Rules - elimilate confusing Quantity aliases of Standard_Real type

Aliases to Standard_Real within Quantity package have been marked as deprecated.
This commit is contained in:
kgv
2017-06-06 15:30:19 +03:00
committed by bugmaster
parent e57aedeb26
commit 09324e85c8
111 changed files with 224 additions and 590 deletions

View File

@@ -25,8 +25,6 @@
#include <Standard_Integer.hxx>
#include <Extrema_ExtPC.hxx>
#include <GeomAdaptor_Curve.hxx>
#include <Quantity_Parameter.hxx>
#include <Quantity_Length.hxx>
class Standard_OutOfRange;
class StdFail_NotDone;
class gp_Pnt;
@@ -54,7 +52,7 @@ public:
//! Create the projection of a point <P> on a curve
//! <Curve> limited by the two points of parameter Umin and Usup.
Standard_EXPORT GeomAPI_ProjectPointOnCurve(const gp_Pnt& P, const Handle(Geom_Curve)& Curve, const Quantity_Parameter Umin, const Quantity_Parameter Usup);
Standard_EXPORT GeomAPI_ProjectPointOnCurve(const gp_Pnt& P, const Handle(Geom_Curve)& Curve, const Standard_Real Umin, const Standard_Real Usup);
//! Init the projection of a point <P> on a curve
//! <Curve>
@@ -62,11 +60,11 @@ public:
//! Init the projection of a point <P> on a curve
//! <Curve> limited by the two points of parameter Umin and Usup.
Standard_EXPORT void Init (const gp_Pnt& P, const Handle(Geom_Curve)& Curve, const Quantity_Parameter Umin, const Quantity_Parameter Usup);
Standard_EXPORT void Init (const gp_Pnt& P, const Handle(Geom_Curve)& Curve, const Standard_Real Umin, const Standard_Real Usup);
//! Init the projection of a point <P> on a curve
//! <Curve> limited by the two points of parameter Umin and Usup.
Standard_EXPORT void Init (const Handle(Geom_Curve)& Curve, const Quantity_Parameter Umin, const Quantity_Parameter Usup);
Standard_EXPORT void Init (const Handle(Geom_Curve)& Curve, const Standard_Real Umin, const Standard_Real Usup);
//! Performs the projection of a point on the current curve.
Standard_EXPORT void Perform (const gp_Pnt& P);
@@ -90,7 +88,7 @@ Standard_EXPORT operator Standard_Integer() const;
//! 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;
Standard_EXPORT Standard_Real Parameter (const Standard_Integer Index) const;
//! Returns the parameter on the curve
//! of the point, which is the orthogonal projection. Index is a
@@ -98,14 +96,14 @@ Standard_EXPORT operator Standard_Integer() const;
//! 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;
Standard_EXPORT void Parameter (const Standard_Integer Index, Standard_Real& U) const;
//! Computes the distance between the
//! point and its 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_Length Distance (const Standard_Integer Index) const;
Standard_EXPORT Standard_Real Distance (const Standard_Integer Index) const;
//! Returns the nearest orthogonal
//! projection of the point on the curve.
@@ -116,36 +114,24 @@ Standard_EXPORT operator gp_Pnt() 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_Parameter LowerDistanceParameter() const;
Standard_EXPORT Standard_Real LowerDistanceParameter() const;
//! Computes the distance between the
//! point and its nearest orthogonal projection on the curve.
//! Exceptions: StdFail_NotDone if this algorithm fails.
Standard_EXPORT Quantity_Length LowerDistance() const;
Standard_EXPORT Standard_Real LowerDistance() const;
Standard_EXPORT operator Standard_Real() const;
//! return the algorithmic object from Extrema
const Extrema_ExtPC& Extrema() const;
protected:
private:
Standard_Boolean myIsDone;
Standard_Integer myIndex;
Extrema_ExtPC myExtPC;
GeomAdaptor_Curve myC;
};