]> OCCT Git - occt-copy.git/commitdiff
0028799: Coding Rules - elimilate confusing Quantity aliases of Standard_Real type
authorkgv <kgv@opencascade.com>
Tue, 6 Jun 2017 12:30:19 +0000 (15:30 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 15 Jun 2017 08:35:37 +0000 (11:35 +0300)
Aliases to Standard_Real within Quantity package have been marked as deprecated.

111 files changed:
src/BRepFeat/BRepFeat_MakeRevolutionForm.cxx
src/BRepFill/BRepFill_Filling.cxx
src/BRepSweep/BRepSweep_Revol.hxx
src/BRepSweep/BRepSweep_Rotation.hxx
src/Geom2dAPI/Geom2dAPI_ExtremaCurveCurve.hxx
src/Geom2dAPI/Geom2dAPI_ProjectPointOnCurve.hxx
src/GeomAPI/GeomAPI_ExtremaCurveCurve.cxx
src/GeomAPI/GeomAPI_ExtremaCurveCurve.hxx
src/GeomAPI/GeomAPI_ExtremaCurveSurface.hxx
src/GeomAPI/GeomAPI_ExtremaSurfaceSurface.hxx
src/GeomAPI/GeomAPI_IntCS.cxx
src/GeomAPI/GeomAPI_IntCS.hxx
src/GeomAPI/GeomAPI_ProjectPointOnCurve.hxx
src/GeomAPI/GeomAPI_ProjectPointOnSurf.hxx
src/Quantity/FILES
src/Quantity/Quantity_AbsorbedDose.hxx
src/Quantity/Quantity_Acceleration.hxx
src/Quantity/Quantity_AcousticIntensity.hxx
src/Quantity/Quantity_Activity.hxx
src/Quantity/Quantity_Admittance.hxx
src/Quantity/Quantity_AmountOfSubstance.hxx
src/Quantity/Quantity_AngularVelocity.hxx
src/Quantity/Quantity_Area.hxx
src/Quantity/Quantity_Array1OfCoefficient.hxx [deleted file]
src/Quantity/Quantity_Capacitance.hxx
src/Quantity/Quantity_Coefficient.hxx
src/Quantity/Quantity_CoefficientOfExpansion.hxx
src/Quantity/Quantity_Color.cxx
src/Quantity/Quantity_Color.hxx
src/Quantity/Quantity_Concentration.hxx
src/Quantity/Quantity_Conductivity.hxx
src/Quantity/Quantity_Constant.hxx
src/Quantity/Quantity_Consumption.hxx
src/Quantity/Quantity_Content.hxx
src/Quantity/Quantity_Convert.cxx
src/Quantity/Quantity_Convert.hxx
src/Quantity/Quantity_Convert.lxx [deleted file]
src/Quantity/Quantity_Date.hxx
src/Quantity/Quantity_Date.lxx [deleted file]
src/Quantity/Quantity_Density.hxx
src/Quantity/Quantity_DoseEquivalent.hxx
src/Quantity/Quantity_ElectricCapacitance.hxx
src/Quantity/Quantity_ElectricCharge.hxx
src/Quantity/Quantity_ElectricCurrent.hxx
src/Quantity/Quantity_ElectricFieldStrength.hxx
src/Quantity/Quantity_ElectricPotential.hxx
src/Quantity/Quantity_Energy.hxx
src/Quantity/Quantity_Enthalpy.hxx
src/Quantity/Quantity_Entropy.hxx
src/Quantity/Quantity_Factor.hxx
src/Quantity/Quantity_Force.hxx
src/Quantity/Quantity_Frequency.hxx
src/Quantity/Quantity_Illuminance.hxx
src/Quantity/Quantity_Impedance.hxx
src/Quantity/Quantity_Index.hxx
src/Quantity/Quantity_Inductance.hxx
src/Quantity/Quantity_KinematicViscosity.hxx
src/Quantity/Quantity_KineticMoment.hxx
src/Quantity/Quantity_Length.hxx
src/Quantity/Quantity_Luminance.hxx
src/Quantity/Quantity_LuminousEfficacity.hxx
src/Quantity/Quantity_LuminousExposition.hxx
src/Quantity/Quantity_LuminousFlux.hxx
src/Quantity/Quantity_LuminousIntensity.hxx
src/Quantity/Quantity_MagneticFieldStrength.hxx
src/Quantity/Quantity_MagneticFlux.hxx
src/Quantity/Quantity_MagneticFluxDensity.hxx
src/Quantity/Quantity_Mass.hxx
src/Quantity/Quantity_MassFlow.hxx
src/Quantity/Quantity_MolarConcentration.hxx
src/Quantity/Quantity_MolarMass.hxx
src/Quantity/Quantity_MolarVolume.hxx
src/Quantity/Quantity_Molarity.hxx
src/Quantity/Quantity_MomentOfAForce.hxx
src/Quantity/Quantity_MomentOfInertia.hxx
src/Quantity/Quantity_Momentum.hxx
src/Quantity/Quantity_Normality.hxx
src/Quantity/Quantity_Parameter.hxx
src/Quantity/Quantity_Period.hxx
src/Quantity/Quantity_Period.lxx [deleted file]
src/Quantity/Quantity_PlaneAngle.hxx
src/Quantity/Quantity_Power.hxx
src/Quantity/Quantity_Pressure.hxx
src/Quantity/Quantity_Quotient.hxx
src/Quantity/Quantity_Rate.hxx
src/Quantity/Quantity_Ratio.hxx
src/Quantity/Quantity_Reluctance.hxx
src/Quantity/Quantity_Resistance.hxx
src/Quantity/Quantity_Resistivity.hxx
src/Quantity/Quantity_Scalaire.hxx
src/Quantity/Quantity_SolidAngle.hxx
src/Quantity/Quantity_SoundIntensity.hxx
src/Quantity/Quantity_SpecificHeatCapacity.hxx
src/Quantity/Quantity_Speed.hxx
src/Quantity/Quantity_SurfaceTension.hxx
src/Quantity/Quantity_Temperature.hxx
src/Quantity/Quantity_ThermalConductivity.hxx
src/Quantity/Quantity_Torque.hxx
src/Quantity/Quantity_Velocity.hxx
src/Quantity/Quantity_Viscosity.hxx
src/Quantity/Quantity_Volume.hxx
src/Quantity/Quantity_VolumeFlow.hxx
src/Quantity/Quantity_Weight.hxx
src/Quantity/Quantity_Work.hxx
src/VrmlAPI/VrmlAPI_Writer.hxx
src/VrmlConverter/VrmlConverter_Drawer.cxx
src/VrmlConverter/VrmlConverter_Drawer.hxx
src/VrmlConverter/VrmlConverter_Projector.cxx
src/VrmlConverter/VrmlConverter_Projector.hxx
src/VrmlConverter/VrmlConverter_WFDeflectionRestrictedFace.cxx
src/VrmlConverter/VrmlConverter_WFDeflectionRestrictedFace.hxx

index c0b7e470aa235e8b1d2308461a22ca55e23c8b68..83bb7150b3f8980bce5ac92ca3c0bbcabc27f0c3 100644 (file)
@@ -164,7 +164,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
     Handle(Geom_Curve) c = BRep_Tool::Curve(e, f, l);
     Handle(Geom2d_Curve) c2d = GeomAPI::To2d(c, Plane->Pln());
     Geom2dAPI_ExtremaCurveCurve extr(ln2d, c2d, LineFirst, LineLast,f,l);
-    Quantity_Length L = RealLast();
+    Standard_Real L = RealLast();
     if(extr.NbExtrema() >= 1) {
       L = extr.LowerDistance();
     }
index b0c8ccddcf1b2f8f2a26d741de5ae9ca1d71b0ec..5fe70c826592a6aee6180fe227a5a735f2e51242 100644 (file)
@@ -576,7 +576,7 @@ void BRepFill_Filling::Build()
   for (j = 1; j <= myFreeConstraints.Length(); j++)
     {
       GeomAPI_ProjectPointOnSurf Projector;
-      Quantity_Parameter U1, V1, U2, V2;
+      Standard_Real U1, V1, U2, V2;
 
       CurFace = myFreeConstraints(j).myFace;
       Handle( BRepAdaptor_HSurface ) HSurf = new BRepAdaptor_HSurface();
index eb94dd3f8dc85ceb111f22412a6b7db0c0f5b9ef..b78906755dde97ded5925320d5f3ea14771c3cbe 100644 (file)
@@ -22,7 +22,6 @@
 #include <Standard_Handle.hxx>
 
 #include <BRepSweep_Rotation.hxx>
-#include <Quantity_PlaneAngle.hxx>
 #include <Standard_Boolean.hxx>
 #include <Standard_Real.hxx>
 class Standard_ConstructionError;
@@ -43,7 +42,7 @@ public:
   
   //! Builds the Revol of meridian S axis A  and angle D. If
   //! C is true S is copied.
-  Standard_EXPORT BRepSweep_Revol(const TopoDS_Shape& S, const gp_Ax1& A, const Quantity_PlaneAngle D, const Standard_Boolean C = Standard_False);
+  Standard_EXPORT BRepSweep_Revol(const TopoDS_Shape& S, const gp_Ax1& A, const Standard_Real D, const Standard_Boolean C = Standard_False);
   
   //! Builds the Revol of meridian S  axis A and angle 2*Pi.
   //! If C is true S is copied.
@@ -76,20 +75,10 @@ public:
   Standard_EXPORT gp_Ax1 Axe() const;
   
   //! returns the angle.
-  Standard_EXPORT Quantity_PlaneAngle Angle() const;
-
-
-
-
-protected:
-
-
-
-
+  Standard_EXPORT Standard_Real Angle() const;
 
 private:
 
-  
   //! builds the NumShape.
   Standard_EXPORT Sweep_NumShape NumShape (const Standard_Real D) const;
   
@@ -108,10 +97,4 @@ private:
 
 };
 
-
-
-
-
-
-
 #endif // _BRepSweep_Revol_HeaderFile
index 58b4b6451dc1f293d4a00675436c6f4b0cc24090..2adc5e4183b6ca518cb8e4768c643ed289353320 100644 (file)
@@ -24,7 +24,6 @@
 #include <Standard_Real.hxx>
 #include <gp_Ax1.hxx>
 #include <BRepSweep_Trsf.hxx>
-#include <Quantity_PlaneAngle.hxx>
 #include <Standard_Boolean.hxx>
 #include <TopAbs_Orientation.hxx>
 class Standard_ConstructionError;
@@ -45,7 +44,7 @@ public:
   
   //! Creates a topology  by rotating <S>  around A with the
   //! angle D.
-  Standard_EXPORT BRepSweep_Rotation(const TopoDS_Shape& S, const Sweep_NumShape& N, const TopLoc_Location& L, const gp_Ax1& A, const Quantity_PlaneAngle D, const Standard_Boolean C);
+  Standard_EXPORT BRepSweep_Rotation(const TopoDS_Shape& S, const Sweep_NumShape& N, const TopLoc_Location& L, const gp_Ax1& A, const Standard_Real D, const Standard_Boolean C);
   
   //! Builds the vertex addressed by [aGenV,aDirV], with its
   //! geometric part, but without subcomponents.
@@ -139,31 +138,13 @@ public:
   Standard_EXPORT gp_Ax1 Axe() const;
   
   //! returns the angle.
-  Standard_EXPORT Quantity_PlaneAngle Angle() const;
-
-
-
-
-protected:
-
-
-
-
+  Standard_EXPORT Standard_Real Angle() const;
 
 private:
 
-
-
   Standard_Real myAng;
   gp_Ax1 myAxe;
 
-
 };
 
-
-
-
-
-
-
 #endif // _BRepSweep_Rotation_HeaderFile
index 436f92d9ce166314dc8abd50ae92605fc41634a5..6e49db3278dcb6b79f2a34d67c74de22c756293c 100644 (file)
@@ -25,8 +25,6 @@
 #include <Standard_Integer.hxx>
 #include <Extrema_ExtCC2d.hxx>
 #include <Geom2dAdaptor_Curve.hxx>
-#include <Quantity_Parameter.hxx>
-#include <Quantity_Length.hxx>
 class Standard_OutOfRange;
 class StdFail_NotDone;
 class Geom2d_Curve;
@@ -72,7 +70,7 @@ public:
   //! Warning
   //! Use the function NbExtrema to obtain the number
   //! of solutions. If this algorithm fails, NbExtrema returns 0.
-  Standard_EXPORT Geom2dAPI_ExtremaCurveCurve(const Handle(Geom2d_Curve)& C1, const Handle(Geom2d_Curve)& C2, const Quantity_Parameter U1min, const Quantity_Parameter U1max, const Quantity_Parameter U2min, const Quantity_Parameter U2max);
+  Standard_EXPORT Geom2dAPI_ExtremaCurveCurve(const Handle(Geom2d_Curve)& C1, const Handle(Geom2d_Curve)& C2, const Standard_Real U1min, const Standard_Real U1max, const Standard_Real U2min, const Standard_Real U2max);
   
   //! Returns the number of extrema computed by this algorithm.
   //! Note: if this algorithm fails, NbExtrema returns 0.
@@ -96,7 +94,7 @@ Standard_EXPORT operator Standard_Integer() const;
   //! Standard_OutOfRange if Index is not in the range [
   //! 1,NbExtrema ], where NbExtrema is the
   //! number of extrema computed by this algorithm.
-  Standard_EXPORT void Parameters (const Standard_Integer Index, Quantity_Parameter& U1, Quantity_Parameter& U2) const;
+  Standard_EXPORT void Parameters (const Standard_Integer Index, Standard_Real& U1, Standard_Real& U2) const;
   
   //! Computes the distance between the end points of the
   //! extremum of index Index computed by this algorithm.
@@ -104,7 +102,7 @@ Standard_EXPORT operator Standard_Integer() const;
   //! Standard_OutOfRange if Index is not in the range [
   //! 1,NbExtrema ], where NbExtrema is the
   //! number of extrema computed by this algorithm.
-  Standard_EXPORT Quantity_Length Distance (const Standard_Integer Index) const;
+  Standard_EXPORT Standard_Real Distance (const Standard_Integer Index) const;
   
   //! Returns the points P1 on the first curve and P2 on
   //! the second curve, which are the ends of the shortest
@@ -117,12 +115,12 @@ Standard_EXPORT operator Standard_Integer() const;
   //! are the ends of the shortest extremum computed by this algorithm.
   //! Exceptions
   //! StdFail_NotDone if this algorithm fails.
-  Standard_EXPORT void LowerDistanceParameters (Quantity_Parameter& U1, Quantity_Parameter& U2) const;
+  Standard_EXPORT void LowerDistanceParameters (Standard_Real& U1, Standard_Real& U2) const;
   
   //! Computes the distance between the end points of the
   //! shortest extremum computed by this algorithm.
   //! 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;
   
     const Extrema_ExtCC2d& Extrema() const;
index 2e0bf3ec4f77675141931f3f25f4774e6b571e94..260e1e94dd156c81e24666af901c6b8e2582e794 100644 (file)
@@ -25,8 +25,6 @@
 #include <Standard_Integer.hxx>
 #include <Extrema_ExtPC2d.hxx>
 #include <Geom2dAdaptor_Curve.hxx>
-#include <Quantity_Parameter.hxx>
-#include <Quantity_Length.hxx>
 class Standard_OutOfRange;
 class StdFail_NotDone;
 class gp_Pnt2d;
@@ -57,7 +55,7 @@ public:
   //! Warning
   //! Use the function NbPoints to obtain the number of solutions. If
   //! projection fails, NbPoints returns 0.
-  Standard_EXPORT Geom2dAPI_ProjectPointOnCurve(const gp_Pnt2d& P, const Handle(Geom2d_Curve)& Curve, const Quantity_Parameter Umin, const Quantity_Parameter Usup);
+  Standard_EXPORT Geom2dAPI_ProjectPointOnCurve(const gp_Pnt2d& P, const Handle(Geom2d_Curve)& Curve, const Standard_Real Umin, const Standard_Real Usup);
   
   //! Initializes this algorithm with the given arguments, and
   //! computes the orthogonal  projections  of a  point  <P> on a curve <Curve>
@@ -66,7 +64,7 @@ public:
   //! 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 void Init (const gp_Pnt2d& P, const Handle(Geom2d_Curve)& Curve, const Quantity_Parameter Umin, const Quantity_Parameter Usup);
+  Standard_EXPORT void Init (const gp_Pnt2d& P, const Handle(Geom2d_Curve)& Curve, const Standard_Real Umin, const Standard_Real Usup);
   
   //! return the number of of computed
   //! orthogonal projectionn points.
@@ -86,7 +84,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 a point which is the orthogonal projection. Index is a number of a
@@ -94,7 +92,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 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 computed orthogonal projection on the curve. Index is a
@@ -102,7 +100,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_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.
   //! Exceptions
@@ -114,31 +112,20 @@ Standard_EXPORT operator gp_Pnt2d() const;
   //! 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_ExtPC2d& Extrema() const;
 
-
-
-
-protected:
-
-
-
-
-
 private:
 
-
-
   Standard_Boolean myIsDone;
   Standard_Integer myIndex;
   Extrema_ExtPC2d myExtPC;
index e608044c38970f5c490a30817f799d94a8c892da..f09b294d4721f16dfe9833e6a791475a40571c95 100644 (file)
@@ -303,8 +303,8 @@ Standard_Boolean GeomAPI_ExtremaCurveCurve::TotalNearestPoints(gp_Pnt& P1,gp_Pnt
     
 }
 
-Standard_Boolean GeomAPI_ExtremaCurveCurve::TotalLowerDistanceParameters(Quantity_Parameter& U1, 
-                                                                        Quantity_Parameter& U2) 
+Standard_Boolean GeomAPI_ExtremaCurveCurve::TotalLowerDistanceParameters(Standard_Real& U1, 
+                                                                        Standard_Real& U2) 
 {
   if(!myTotalExt) {
 
@@ -322,7 +322,7 @@ Standard_Boolean GeomAPI_ExtremaCurveCurve::TotalLowerDistanceParameters(Quantit
 
 }
 
-Quantity_Length GeomAPI_ExtremaCurveCurve::TotalLowerDistance() 
+Standard_Real GeomAPI_ExtremaCurveCurve::TotalLowerDistance() 
 {
   if(!myTotalExt) {
 
index e508f3461dffc3e51bfe41bb5f079701b3cf7dc9..9aa545c0f9f4e72474fdcf6762ec6e14c416f713 100644 (file)
@@ -27,8 +27,6 @@
 #include <GeomAdaptor_Curve.hxx>
 #include <Standard_Real.hxx>
 #include <gp_Pnt.hxx>
-#include <Quantity_Parameter.hxx>
-#include <Quantity_Length.hxx>
 class Standard_OutOfRange;
 class StdFail_NotDone;
 class Geom_Curve;
@@ -80,7 +78,7 @@ public:
   //! Warning
   //! Use the function NbExtrema to obtain the number
   //! of solutions. If this algorithm fails, NbExtrema returns 0.
-  Standard_EXPORT GeomAPI_ExtremaCurveCurve(const Handle(Geom_Curve)& C1, const Handle(Geom_Curve)& C2, const Quantity_Parameter U1min, const Quantity_Parameter U1max, const Quantity_Parameter U2min, const Quantity_Parameter U2max);
+  Standard_EXPORT GeomAPI_ExtremaCurveCurve(const Handle(Geom_Curve)& C1, const Handle(Geom_Curve)& C2, const Standard_Real U1min, const Standard_Real U1max, const Standard_Real U2min, const Standard_Real U2max);
   
   //! Initializes this algorithm with the given arguments
   //! and computes the extrema between the curves C1 and C2
@@ -95,7 +93,7 @@ public:
   //! Warning
   //! Use the function NbExtrema to obtain the number
   //! of solutions. If this algorithm fails, NbExtrema returns 0.
-  Standard_EXPORT void Init (const Handle(Geom_Curve)& C1, const Handle(Geom_Curve)& C2, const Quantity_Parameter U1min, const Quantity_Parameter U1max, const Quantity_Parameter U2min, const Quantity_Parameter U2max);
+  Standard_EXPORT void Init (const Handle(Geom_Curve)& C1, const Handle(Geom_Curve)& C2, const Standard_Real U1min, const Standard_Real U1max, const Standard_Real U2min, const Standard_Real U2max);
   
   //! Returns the number of extrema computed by this algorithm.
   //! Note: if this algorithm fails, NbExtrema returns 0.
@@ -118,7 +116,7 @@ Standard_EXPORT operator Standard_Integer() const;
   //! Standard_OutOfRange if Index is not in the range [
   //! 1,NbExtrema ], where NbExtrema is the
   //! number of extrema computed by this algorithm.
-  Standard_EXPORT void Parameters (const Standard_Integer Index, Quantity_Parameter& U1, Quantity_Parameter& U2) const;
+  Standard_EXPORT void Parameters (const Standard_Integer Index, Standard_Real& U1, Standard_Real& U2) const;
   
   //! Computes the distance between the end points of the
   //! extremum of index Index computed by this algorithm.
@@ -126,7 +124,7 @@ Standard_EXPORT operator Standard_Integer() const;
   //! Standard_OutOfRange if Index is not in the range [
   //! 1,NbExtrema ], where NbExtrema is the
   //! number of extrema computed by this algorithm.
-  Standard_EXPORT Quantity_Length Distance (const Standard_Integer Index) const;
+  Standard_EXPORT Standard_Real Distance (const Standard_Integer Index) const;
   
   //! Returns the points P1 on the first curve and P2 on
   //! the second curve, which are the ends of the shortest
@@ -138,12 +136,12 @@ Standard_EXPORT operator Standard_Integer() const;
   //! curve and U2 of the point on the second curve, which
   //! are the ends of the shortest extremum computed by this algorithm.
   //! Exceptions StdFail_NotDone if this algorithm fails.
-  Standard_EXPORT void LowerDistanceParameters (Quantity_Parameter& U1, Quantity_Parameter& U2) const;
+  Standard_EXPORT void LowerDistanceParameters (Standard_Real& U1, Standard_Real& U2) const;
   
   //! Computes the distance between the end points of the
   //! shortest extremum computed by this algorithm.
   //! 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
@@ -157,24 +155,14 @@ Standard_EXPORT operator Standard_Real() const;
   //! set  in <U1> and <U2> the parameters of the couple
   //! solution   points  which  represents  the  total  nearest
   //! solution.
-  Standard_EXPORT Standard_Boolean TotalLowerDistanceParameters (Quantity_Parameter& U1, Quantity_Parameter& U2);
+  Standard_EXPORT Standard_Boolean TotalLowerDistanceParameters (Standard_Real& U1, Standard_Real& U2);
   
   //! return the distance of the total  nearest couple solution
   //! point.
   //! if <myExtCC> is not done
-  Standard_EXPORT Quantity_Length TotalLowerDistance();
-
-
-
-
-protected:
-
-
-
-
+  Standard_EXPORT Standard_Real TotalLowerDistance();
 
 private:
-
   
   Standard_EXPORT void TotalPerform();
 
index 1d76316a86d5266cbfe72de1b0bc133cb1cd1526..6e08b14d754c9a38e2a803de8d1575ca01aec49e 100644 (file)
@@ -24,8 +24,6 @@
 #include <Standard_Boolean.hxx>
 #include <Standard_Integer.hxx>
 #include <Extrema_ExtCS.hxx>
-#include <Quantity_Parameter.hxx>
-#include <Quantity_Length.hxx>
 class Standard_OutOfRange;
 class StdFail_NotDone;
 class Geom_Curve;
@@ -83,7 +81,7 @@ public:
   //! Warning
   //! Use the function NbExtrema to obtain the number
   //! of solutions. If this algorithm fails, NbExtrema returns 0.
-  Standard_EXPORT GeomAPI_ExtremaCurveSurface(const Handle(Geom_Curve)& Curve, const Handle(Geom_Surface)& Surface, const Quantity_Parameter Wmin, const Quantity_Parameter Wmax, const Quantity_Parameter Umin, const Quantity_Parameter Umax, const Quantity_Parameter Vmin, const Quantity_Parameter Vmax);
+  Standard_EXPORT GeomAPI_ExtremaCurveSurface(const Handle(Geom_Curve)& Curve, const Handle(Geom_Surface)& Surface, const Standard_Real Wmin, const Standard_Real Wmax, const Standard_Real Umin, const Standard_Real Umax, const Standard_Real Vmin, const Standard_Real Vmax);
   
   //! Computes  the  extrema  distances  between  the
   //! curve <C> and the surface  <S>.
@@ -97,7 +95,7 @@ public:
   //! Warning
   //! Use the function NbExtrema to obtain the number
   //! of solutions. If this algorithm fails, NbExtrema returns 0.
-  Standard_EXPORT void Init (const Handle(Geom_Curve)& Curve, const Handle(Geom_Surface)& Surface, const Quantity_Parameter Wmin, const Quantity_Parameter Wmax, const Quantity_Parameter Umin, const Quantity_Parameter Umax, const Quantity_Parameter Vmin, const Quantity_Parameter Vmax);
+  Standard_EXPORT void Init (const Handle(Geom_Curve)& Curve, const Handle(Geom_Surface)& Surface, const Standard_Real Wmin, const Standard_Real Wmax, const Standard_Real Umin, const Standard_Real Umax, const Standard_Real Vmin, const Standard_Real Vmax);
   
   //! Returns the number of extrema computed by this algorithm.
   //! Note: if this algorithm fails, NbExtrema returns 0.
@@ -120,7 +118,7 @@ Standard_EXPORT operator Standard_Integer() const;
   //! Standard_OutOfRange if Index is not in the range [
   //! 1,NbExtrema ], where NbExtrema is the
   //! number of extrema computed by this algorithm.
-  Standard_EXPORT void Parameters (const Standard_Integer Index, Quantity_Parameter& W, Quantity_Parameter& U, Quantity_Parameter& V) const;
+  Standard_EXPORT void Parameters (const Standard_Integer Index, Standard_Real& W, Standard_Real& U, Standard_Real& V) const;
   
   //! Computes the distance between the end points of the
   //! extremum of index Index computed by this algorithm.
@@ -128,7 +126,7 @@ Standard_EXPORT operator Standard_Integer() const;
   //! Standard_OutOfRange if index is not in the range [
   //! 1,NbExtrema ], where NbExtrema is the
   //! number of extrema computed by this algorithm.
-  Standard_EXPORT Quantity_Length Distance (const Standard_Integer Index) const;
+  Standard_EXPORT Standard_Real Distance (const Standard_Integer Index) const;
   
   //! Returns the points PC on the curve and PS on the
   //! surface, which are the ends of the shortest extremum computed by this algorithm.
@@ -139,35 +137,23 @@ Standard_EXPORT operator Standard_Integer() const;
   //! and (U,V) of the point on the surface, which are the
   //! ends of the shortest extremum computed by this algorithm.
   //! Exceptions - StdFail_NotDone if this algorithm fails.
-  Standard_EXPORT void LowerDistanceParameters (Quantity_Parameter& W, Quantity_Parameter& U, Quantity_Parameter& V) const;
+  Standard_EXPORT void LowerDistanceParameters (Standard_Real& W, Standard_Real& U, Standard_Real& V) const;
   
   //! Computes the distance between the end points of the
   //! shortest extremum computed by this algorithm.
   //! 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;
   
   //! Returns the algorithmic object from Extrema
     const Extrema_ExtCS& Extrema() const;
 
-
-
-
-protected:
-
-
-
-
-
 private:
 
-
-
   Standard_Boolean myIsDone;
   Standard_Integer myIndex;
   Extrema_ExtCS myExtCS;
 
-
 };
 
 
index 255864897b36cf8375fb45939ad0616d076c4a20..894dc85f9e6ca69811d6acc9feb41efcee385fb8 100644 (file)
@@ -24,8 +24,6 @@
 #include <Standard_Boolean.hxx>
 #include <Standard_Integer.hxx>
 #include <Extrema_ExtSS.hxx>
-#include <Quantity_Parameter.hxx>
-#include <Quantity_Length.hxx>
 class Standard_OutOfRange;
 class StdFail_NotDone;
 class Geom_Surface;
@@ -80,7 +78,7 @@ public:
   //! the u parametric direction, and by the two
   //! values of parameter (V2min,V2max) in the v
   //! parametric direction.
-  Standard_EXPORT GeomAPI_ExtremaSurfaceSurface(const Handle(Geom_Surface)& S1, const Handle(Geom_Surface)& S2, const Quantity_Parameter U1min, const Quantity_Parameter U1max, const Quantity_Parameter V1min, const Quantity_Parameter V1max, const Quantity_Parameter U2min, const Quantity_Parameter U2max, const Quantity_Parameter V2min, const Quantity_Parameter V2max);
+  Standard_EXPORT GeomAPI_ExtremaSurfaceSurface(const Handle(Geom_Surface)& S1, const Handle(Geom_Surface)& S2, const Standard_Real U1min, const Standard_Real U1max, const Standard_Real V1min, const Standard_Real V1max, const Standard_Real U2min, const Standard_Real U2max, const Standard_Real V2min, const Standard_Real V2max);
   
   //! Initializes this algorithm with the given arguments
   //! and computes  the  extrema  distances  between  the
@@ -97,7 +95,7 @@ public:
   //! values of parameter (U2min,U2max) in the u
   //! parametric direction, and by the two values of
   //! parameter (V2min,V2max) in the v parametric direction.
-  Standard_EXPORT void Init (const Handle(Geom_Surface)& S1, const Handle(Geom_Surface)& S2, const Quantity_Parameter U1min, const Quantity_Parameter U1max, const Quantity_Parameter V1min, const Quantity_Parameter V1max, const Quantity_Parameter U2min, const Quantity_Parameter U2max, const Quantity_Parameter V2min, const Quantity_Parameter V2max);
+  Standard_EXPORT void Init (const Handle(Geom_Surface)& S1, const Handle(Geom_Surface)& S2, const Standard_Real U1min, const Standard_Real U1max, const Standard_Real V1min, const Standard_Real V1max, const Standard_Real U2min, const Standard_Real U2max, const Standard_Real V2min, const Standard_Real V2max);
   
   //! Returns the number of extrema computed by this algorithm.
   //! Note: if this algorithm fails, NbExtrema returns 0.
@@ -121,7 +119,7 @@ Standard_EXPORT operator Standard_Integer() const;
   //! Standard_OutOfRange if Index is not in the range [
   //! 1,NbExtrema ], where NbExtrema is the
   //! number of extrema computed by this algorithm.
-  Standard_EXPORT void Parameters (const Standard_Integer Index, Quantity_Parameter& U1, Quantity_Parameter& V1, Quantity_Parameter& U2, Quantity_Parameter& V2) const;
+  Standard_EXPORT void Parameters (const Standard_Integer Index, Standard_Real& U1, Standard_Real& V1, Standard_Real& U2, Standard_Real& V2) const;
   
   //! Computes the distance between the end points of the
   //! extremum of index Index computed by this algorithm.
@@ -129,7 +127,7 @@ Standard_EXPORT operator Standard_Integer() const;
   //! Standard_OutOfRange if Index is not in the range [
   //! 1,NbExtrema ], where NbExtrema is the
   //! number of extrema computed by this algorithm.
-  Standard_EXPORT Quantity_Length Distance (const Standard_Integer Index) const;
+  Standard_EXPORT Standard_Real Distance (const Standard_Integer Index) const;
   
   //! Returns the points P1 on the first surface and P2 on
   //! the second surface, which are the ends of the
@@ -142,35 +140,23 @@ Standard_EXPORT operator Standard_Integer() const;
   //! surface, which are the ends of the shortest extremum
   //! computed by this algorithm.
   //! Exceptions - StdFail_NotDone if this algorithm fails.
-  Standard_EXPORT void LowerDistanceParameters (Quantity_Parameter& U1, Quantity_Parameter& V1, Quantity_Parameter& U2, Quantity_Parameter& V2) const;
+  Standard_EXPORT void LowerDistanceParameters (Standard_Real& U1, Standard_Real& V1, Standard_Real& U2, Standard_Real& V2) const;
   
   //! Computes the distance between the end points of the
   //! shortest extremum computed by this algorithm.
   //! 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_ExtSS& Extrema() const;
 
-
-
-
-protected:
-
-
-
-
-
 private:
 
-
-
   Standard_Boolean myIsDone;
   Standard_Integer myIndex;
   Extrema_ExtSS myExtSS;
 
-
 };
 
 
index c803c4cd60d9cd947c76e91aca22cb7fe61770da..8f4e4c7a5202fa706c5469a764bab0601c3f4196 100644 (file)
@@ -106,9 +106,9 @@ const gp_Pnt& GeomAPI_IntCS::Point(const Standard_Integer Index) const
 //=======================================================================
 
 void GeomAPI_IntCS::Parameters(const Standard_Integer Index,
-                              Quantity_Parameter& U, 
-                              Quantity_Parameter& V, 
-                              Quantity_Parameter& W) const 
+                              Standard_Real& U, 
+                              Standard_Real& V, 
+                              Standard_Real& W) const 
 {
   const IntCurveSurface_IntersectionPoint& ThePoint = 
     myIntCS.Point(Index);
@@ -156,10 +156,10 @@ Handle(Geom_Curve) GeomAPI_IntCS::Segment(const Standard_Integer Index) const
 //=======================================================================
 
 void GeomAPI_IntCS::Parameters(const Standard_Integer Index,
-                              Quantity_Parameter& U1,
-                              Quantity_Parameter& V1,
-                              Quantity_Parameter& U2,
-                              Quantity_Parameter& V2) const 
+                              Standard_Real& U1,
+                              Standard_Real& V1,
+                              Standard_Real& U2,
+                              Standard_Real& V2) const 
 {
   const IntCurveSurface_IntersectionPoint& FirstPoint = 
     myIntCS.Segment(Index).FirstPoint();
index 28762a51484f17d6f4db7e5d456426ec1915975e..a4134d7a6f51eb6a825ad9de1512856008231ee1 100644 (file)
@@ -24,7 +24,6 @@
 #include <IntCurveSurface_HInter.hxx>
 #include <Standard_Boolean.hxx>
 #include <Standard_Integer.hxx>
-#include <Quantity_Parameter.hxx>
 class Geom_Curve;
 class StdFail_NotDone;
 class Standard_OutOfRange;
@@ -79,7 +78,7 @@ public:
   //! StdFail_NotDone if intersection algorithm fails or is not initialized.
   //! Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where
   //! NbPoints is the number of computed intersection points.
-  Standard_EXPORT void Parameters (const Standard_Integer Index, Quantity_Parameter& U, Quantity_Parameter& V, Quantity_Parameter& W) const;
+  Standard_EXPORT void Parameters (const Standard_Integer Index, Standard_Real& U, Standard_Real& V, Standard_Real& W) const;
   
   //! Returns the number of computed
   //! intersection segments in case of tangential intersection.
@@ -103,7 +102,7 @@ public:
   //! StdFail_NotDone if intersection algorithm fails or is not initialized.
   //! Standard_OutOfRange if Index is not in the range [ 1,NbSegments ],
   //! where NbSegments is the number of computed intersection segments.
-  Standard_EXPORT void Parameters (const Standard_Integer Index, Quantity_Parameter& U1, Quantity_Parameter& V1, Quantity_Parameter& U2, Quantity_Parameter& V2) const;
+  Standard_EXPORT void Parameters (const Standard_Integer Index, Standard_Real& U1, Standard_Real& V1, Standard_Real& U2, Standard_Real& V2) const;
 
 
 
index 0fdedec6947ede34c9f294d29624c0a7b394f679..f1939067b2a02a262148af2aab3ffa419d75515f 100644 (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;
 
-
 };
 
 
index 2619f446b8f17a6e4689a09afed7f11cc79e5381..0d1ad5acda08f0cfa6ac58b9563bd67ad6bb8a5a 100644 (file)
@@ -28,8 +28,6 @@
 #include <Extrema_ExtAlgo.hxx>
 #include <Extrema_ExtFlag.hxx>
 #include <Standard_Real.hxx>
-#include <Quantity_Parameter.hxx>
-#include <Quantity_Length.hxx>
 class Standard_OutOfRange;
 class StdFail_NotDone;
 class gp_Pnt;
@@ -62,11 +60,11 @@ public:
   //! [Umin,Usup] [Vmin,Vsup] of the surface.
   Standard_EXPORT GeomAPI_ProjectPointOnSurf(const gp_Pnt& P, const Handle(Geom_Surface)& Surface, const Standard_Real Tolerance, const Extrema_ExtAlgo Algo = Extrema_ExtAlgo_Grad);
   
-  Standard_EXPORT GeomAPI_ProjectPointOnSurf(const gp_Pnt& P, const Handle(Geom_Surface)& Surface, const Quantity_Parameter Umin, const Quantity_Parameter Usup, const Quantity_Parameter Vmin, const Quantity_Parameter Vsup, const Standard_Real Tolerance, const Extrema_ExtAlgo Algo = Extrema_ExtAlgo_Grad);
+  Standard_EXPORT GeomAPI_ProjectPointOnSurf(const gp_Pnt& P, const Handle(Geom_Surface)& Surface, const Standard_Real Umin, const Standard_Real Usup, const Standard_Real Vmin, const Standard_Real Vsup, const Standard_Real Tolerance, const Extrema_ExtAlgo Algo = Extrema_ExtAlgo_Grad);
   
   //! Init the projection  of a point <P> on a surface
   //! <Surface>
-  Standard_EXPORT GeomAPI_ProjectPointOnSurf(const gp_Pnt& P, const Handle(Geom_Surface)& Surface, const Quantity_Parameter Umin, const Quantity_Parameter Usup, const Quantity_Parameter Vmin, const Quantity_Parameter Vsup, const Extrema_ExtAlgo Algo = Extrema_ExtAlgo_Grad);
+  Standard_EXPORT GeomAPI_ProjectPointOnSurf(const gp_Pnt& P, const Handle(Geom_Surface)& Surface, const Standard_Real Umin, const Standard_Real Usup, const Standard_Real Vmin, const Standard_Real Vsup, const Extrema_ExtAlgo Algo = Extrema_ExtAlgo_Grad);
   
   Standard_EXPORT void Init (const gp_Pnt& P, const Handle(Geom_Surface)& Surface, const Standard_Real Tolerance, const Extrema_ExtAlgo Algo = Extrema_ExtAlgo_Grad);
   
@@ -75,16 +73,16 @@ public:
   //! [Umin,Usup] [Vmin,Vsup] of the surface.
   Standard_EXPORT void Init (const gp_Pnt& P, const Handle(Geom_Surface)& Surface, const Extrema_ExtAlgo Algo = Extrema_ExtAlgo_Grad);
   
-  Standard_EXPORT void Init (const gp_Pnt& P, const Handle(Geom_Surface)& Surface, const Quantity_Parameter Umin, const Quantity_Parameter Usup, const Quantity_Parameter Vmin, const Quantity_Parameter Vsup, const Standard_Real Tolerance, const Extrema_ExtAlgo Algo = Extrema_ExtAlgo_Grad);
+  Standard_EXPORT void Init (const gp_Pnt& P, const Handle(Geom_Surface)& Surface, const Standard_Real Umin, const Standard_Real Usup, const Standard_Real Vmin, const Standard_Real Vsup, const Standard_Real Tolerance, const Extrema_ExtAlgo Algo = Extrema_ExtAlgo_Grad);
   
   //! Init the projection for many points on a surface
   //! <Surface>. The solutions will be computed in the domain
   //! [Umin,Usup] [Vmin,Vsup] of the surface.
-  Standard_EXPORT void Init (const gp_Pnt& P, const Handle(Geom_Surface)& Surface, const Quantity_Parameter Umin, const Quantity_Parameter Usup, const Quantity_Parameter Vmin, const Quantity_Parameter Vsup, const Extrema_ExtAlgo Algo = Extrema_ExtAlgo_Grad);
+  Standard_EXPORT void Init (const gp_Pnt& P, const Handle(Geom_Surface)& Surface, const Standard_Real Umin, const Standard_Real Usup, const Standard_Real Vmin, const Standard_Real Vsup, const Extrema_ExtAlgo Algo = Extrema_ExtAlgo_Grad);
   
-  Standard_EXPORT void Init (const Handle(Geom_Surface)& Surface, const Quantity_Parameter Umin, const Quantity_Parameter Usup, const Quantity_Parameter Vmin, const Quantity_Parameter Vsup, const Standard_Real Tolerance, const Extrema_ExtAlgo Algo = Extrema_ExtAlgo_Grad);
+  Standard_EXPORT void Init (const Handle(Geom_Surface)& Surface, const Standard_Real Umin, const Standard_Real Usup, const Standard_Real Vmin, const Standard_Real Vsup, const Standard_Real Tolerance, const Extrema_ExtAlgo Algo = Extrema_ExtAlgo_Grad);
   
-  Standard_EXPORT void Init (const Handle(Geom_Surface)& Surface, const Quantity_Parameter Umin, const Quantity_Parameter Usup, const Quantity_Parameter Vmin, const Quantity_Parameter Vsup, const Extrema_ExtAlgo Algo = Extrema_ExtAlgo_Grad);
+  Standard_EXPORT void Init (const Handle(Geom_Surface)& Surface, const Standard_Real Umin, const Standard_Real Usup, const Standard_Real Vmin, const Standard_Real Vsup, const Extrema_ExtAlgo Algo = Extrema_ExtAlgo_Grad);
 
   //! Sets the Extrema search algorithm - Grad or Tree. <br>
   //! By default the Extrema is initialized with Grad algorithm.
@@ -123,7 +121,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 void Parameters (const Standard_Integer Index, Quantity_Parameter& U, Quantity_Parameter& V) const;
+  Standard_EXPORT void Parameters (const Standard_Integer Index, Standard_Real& U, Standard_Real& V) const;
   
   //! Computes the distance between the
   //! point and its orthogonal projection on the surface. Index is a number
@@ -131,7 +129,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_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 surface.
@@ -144,27 +142,18 @@ Standard_EXPORT operator gp_Pnt() const;
   //! surface of the nearest computed orthogonal projection of the point.
   //! Exceptions
   //! StdFail_NotDone if projection fails.
-  Standard_EXPORT void LowerDistanceParameters (Quantity_Parameter& U, Quantity_Parameter& V) const;
+  Standard_EXPORT void LowerDistanceParameters (Standard_Real& U, Standard_Real& V) const;
   
   //! Computes the distance between the
   //! point and its nearest orthogonal projection on the surface.
   //! Exceptions
   //! StdFail_NotDone if projection 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_ExtPS& Extrema() const;
 
-
-
-
-protected:
-
-
-
-
-
 private:
 
   
index 0f3e8068b69b857bdcc413a4adbf7ad9fe97da4b..c1c98e68996bb03e6f33074828f2c5560147fc78 100755 (executable)
@@ -6,7 +6,6 @@ Quantity_Admittance.hxx
 Quantity_AmountOfSubstance.hxx
 Quantity_AngularVelocity.hxx
 Quantity_Area.hxx
-Quantity_Array1OfCoefficient.hxx
 Quantity_Array1OfColor.hxx
 Quantity_Array2OfColor.hxx
 Quantity_Capacitance.hxx
@@ -25,10 +24,8 @@ Quantity_Consumption.hxx
 Quantity_Content.hxx
 Quantity_Convert.cxx
 Quantity_Convert.hxx
-Quantity_Convert.lxx
 Quantity_Date.cxx
 Quantity_Date.hxx
-Quantity_Date.lxx
 Quantity_DateDefinitionError.hxx
 Quantity_Density.hxx
 Quantity_DoseEquivalent.hxx
@@ -73,7 +70,6 @@ Quantity_Normality.hxx
 Quantity_Parameter.hxx
 Quantity_Period.cxx
 Quantity_Period.hxx
-Quantity_Period.lxx
 Quantity_PeriodDefinitionError.hxx
 Quantity_PhysicalQuantity.hxx
 Quantity_PlaneAngle.hxx
index 66913a162fbb281094b6601bde563e997ac5bc87..718b9e139646959ed34416fc89d82f49dfca524e 100644 (file)
@@ -22,7 +22,7 @@
 //! Defined as the energy absorbed per unit mass in an
 //! irradiated medium.
 //! It is measured in grays.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_AbsorbedDose;
 
 #endif // _Quantity_AbsorbedDose_HeaderFile
index d5ece2ce59ad4168f4104ff501ec7e36b5f76696..3b0e73232928b700935cfa6ba1877c43066f2b79 100644 (file)
@@ -22,6 +22,7 @@
 //! Defined as the change of velocity per unit time.
 //! It is a vector quantity.
 //! It is measured in metres per second per second.
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Acceleration;
 
 #endif // _Quantity_Acceleration_HeaderFile
index 7e8e151f607b0f184a379f0712d73193e4be84fe..1d9de177ceeb3773893876e7659684faa2347a3a 100644 (file)
@@ -23,7 +23,7 @@
 //! levels. The conventional unit, the bel, is the base ten
 //! logarithm of the ratio of the two pressures. In practice
 //! the decibel (one tenth of a bel) is used.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_AcousticIntensity;
 
 #endif // _Quantity_AcousticIntensity_HeaderFile
index aa23119850cf9604c9f99a0c721a73625c1d90d7..e33179e00c7ea49709b98e5825764103c1d7668a 100644 (file)
@@ -22,7 +22,7 @@
 //! Defined as the number of atoms of a radioactive
 //! substance which disintegrate per unit time. It is
 //! measured in becquerels (one disintegration per second).
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Activity;
 
 #endif // _Quantity_Activity_HeaderFile
index 17bf9623ae253f6cbbc8124052682a9b18a282d2..4b82e64f1653f642fa5d505155809ad2a3b82cb8 100644 (file)
@@ -23,7 +23,7 @@
 //! It is measured in Siemens (reciprocal Ohms).
 //! The square of the admittance is equal to the sum of the
 //! squares of the conductance and the susceptance.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Admittance;
 
 #endif // _Quantity_Admittance_HeaderFile
index 219fa049972317acd010da134cf7a1219526ef65..9d1e92952aa8ad9be8fcb6c5b4706103be356d2a 100644 (file)
@@ -24,6 +24,7 @@
 //! Amount of substance is measured in moles.
 //! For all substances the number of molecules in a mole
 //! is given by Avogadro's Constant.
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_AmountOfSubstance;
 
 #endif // _Quantity_AmountOfSubstance_HeaderFile
index 849891b0f1dd63f8a27b11b3b98f7517f03ef921..1bbd5d47e8b6c7c6dd9aae466f82d988b8b3f1e4 100644 (file)
@@ -22,6 +22,7 @@
 //! Defined as the rate at which a body moves around an axis.
 //! It is quantified as change in direction per unit time.
 //! It is measured in radians per second.
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_AngularVelocity;
 
 #endif // _Quantity_AngularVelocity_HeaderFile
index 0122bb132f431b7025de2da3b58d90c686c0b0a0..765fed1f4a582418e7501c3c7f70ed9cd3115980 100644 (file)
@@ -21,6 +21,7 @@
 
 //! Defined as superficial extension.
 //! It is measured in square metres.
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Area;
 
 #endif // _Quantity_Area_HeaderFile
diff --git a/src/Quantity/Quantity_Array1OfCoefficient.hxx b/src/Quantity/Quantity_Array1OfCoefficient.hxx
deleted file mode 100644 (file)
index acd1f66..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-// Created on: 1994-02-08
-// Created by: Gilles DEBARBOUILLE
-// Copyright (c) 1994-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#ifndef Quantity_Array1OfCoefficient_HeaderFile
-#define Quantity_Array1OfCoefficient_HeaderFile
-
-#include <Quantity_Coefficient.hxx>
-#include <NCollection_Array1.hxx>
-
-typedef NCollection_Array1<Quantity_Coefficient> Quantity_Array1OfCoefficient;
-
-
-#endif
index a196cbc95933e88de26e23f5f27220ac117ebcfa..e2da179794a018615649eed356457e74338f9415 100644 (file)
@@ -26,7 +26,7 @@
 //! them.
 //! It is measured in farads (coulomb per volt).
 //! In practice micro-, nano-, and pico-farads are used.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Capacitance;
 
 #endif // _Quantity_Capacitance_HeaderFile
index d2a5281af461b8da0800e287fb68b6788534a776..df7c203481db618a940217b96b2641d4e0010878 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <Standard_Real.hxx>
 
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Coefficient;
 
-
 #endif // _Quantity_Coefficient_HeaderFile
index 5b5f532c549636b5ca9108e47d779238aad52672..6f0f42fab02be774a6be9b7e4e688812eb871409 100644 (file)
@@ -26,7 +26,7 @@
 //! For a gas there are coefficients for constant pressure
 //! and constant volume changes.
 //! It is measured in units of reciprocal degree kelvin.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_CoefficientOfExpansion;
 
 #endif // _Quantity_CoefficientOfExpansion_HeaderFile
index 9c07c29c41dd39263b24eb69aedf27dfff459a5e..3c056ff8ebf889c653cfd42a668d8808c99a2336 100644 (file)
@@ -121,7 +121,7 @@ Quantity_Color::Quantity_Color (const NCollection_Vec3<float>& theRgb)
   }
 }
 
-void Quantity_Color::ChangeContrast (const Quantity_Rate ADelta) {
+void Quantity_Color::ChangeContrast (const Standard_Real ADelta) {
 
 Standard_ShortReal MyHue, MyLight, MySaturation;
 
@@ -136,7 +136,7 @@ Standard_ShortReal MyHue, MyLight, MySaturation;
        }
 }
 
-void Quantity_Color::ChangeIntensity (const Quantity_Rate ADelta) {
+void Quantity_Color::ChangeIntensity (const Standard_Real ADelta) {
 
 Standard_ShortReal MyHue, MyLight, MySaturation;
 
index 544b2ee027019b3c965acf37b9cbc8ce23e68fa8..a31c38da5ddc47a082ef1bb7ce63c9e94a3a89f0 100644 (file)
@@ -23,7 +23,6 @@
 #include <Standard_ShortReal.hxx>
 #include <Quantity_NameOfColor.hxx>
 #include <Quantity_TypeOfColor.hxx>
-#include <Quantity_Rate.hxx>
 #include <Standard_Real.hxx>
 #include <Standard_Boolean.hxx>
 #include <Standard_CString.hxx>
@@ -84,7 +83,7 @@ public:
   //! The variation is expressed as a percentage of the
   //! current value.
   //! It is a variation of the saturation.
-  Standard_EXPORT void ChangeContrast (const Quantity_Rate ADelta);
+  Standard_EXPORT void ChangeContrast (const Standard_Real ADelta);
   
   //! Increases or decreases the intensity by <ADelta>.
   //! <ADelta> is a percentage. Any value greater than zero
@@ -92,7 +91,7 @@ public:
   //! The variation is expressed as a percentage of the
   //! current value.
   //! It is a variation of the lightness.
-  Standard_EXPORT void ChangeIntensity (const Quantity_Rate ADelta);
+  Standard_EXPORT void ChangeIntensity (const Standard_Real ADelta);
   
   //! Updates the colour <me> from the definition of the
   //! colour <AName>.
index 1723b811897ee8e1cdb59293241d48f9c5237760..fb42468cc8517027adda5b18ee8b5f7f8e195402 100644 (file)
@@ -24,7 +24,7 @@
 //! solution. For certain purposes percentage by weight or
 //! volume can be used, and parts per million (ppm) is used
 //! for trace elements.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Concentration;
 
 #endif // _Quantity_Concentration_HeaderFile
index 92d827c56bfd827ee08235c467fc1a21cf9b4fd1..c81f71376c52c9b8a0cd551ac5f60e0b20400c84 100644 (file)
@@ -22,7 +22,7 @@
 //! Defined as the current density divided by the electrical
 //! field strength. It is also the reciprocal of resistivity.
 //! It is measured in Siemens per metre.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Conductivity;
 
 #endif // _Quantity_Conductivity_HeaderFile
index b720d08f26c11debf432ad7e7d8335f973472dd2..ec92e0bbc3632dd02d18629636fdae735f08f5a5 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <Standard_Real.hxx>
 
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Constant;
 
-
 #endif // _Quantity_Constant_HeaderFile
index 00dbc896f7091528e5a5ddfe5d4932766f44126a..bead3e33e659213b988057edb1fc472215230a7d 100644 (file)
@@ -23,7 +23,7 @@
 //! travelled, or distance travelled per unit of fuel.
 //! It is measured in litres per 100 kilometres or in
 //! miles per gallon (UK or US).
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Consumption;
 
 #endif // _Quantity_Consumption_HeaderFile
index 56e1435b9b70ff0efe4459e0b656ffabed77f322..3bda391454f16f4ee5fb24e9a788405603e19211 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <Standard_Real.hxx>
 
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Content;
 
-
 #endif // _Quantity_Content_HeaderFile
index 5ab4ceacd784a03d00f4a1106d5d6b27e6cb8793..ea217e8f0f6a6e13569977da30e1f7c7fe5357dd 100644 (file)
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-
-#include <Quantity_Array1OfCoefficient.hxx>
 #include <Quantity_Convert.hxx>
 #include <TCollection_AsciiString.hxx>
 
-Standard_EXPORT Quantity_Array1OfCoefficient ConvertTable(1,68);
+Standard_EXPORT NCollection_Array1<Standard_Real> ConvertTable(1,68);
 static Standard_CString theEnums[] = {      // En attendant la methode "Elements" de Standard_Type
 "Quantity_MASS", 
 "Quantity_PLANEANGLE", 
@@ -98,7 +96,6 @@ Quantity_Convert::Quantity_Convert () {
    for (Standard_Integer i = 1 ; i <= 68 ; i++) ConvertTable(i) = 1;
 }
 
-
 //----------------------------------------------------------------------------
 //  IsPhysicalQuantity
 //----------------------------------------------------------------------------
@@ -123,5 +120,3 @@ Standard_Boolean Quantity_Convert::IsPhysicalQuantity
    return Find; 
 
 }
-
-
index 2820f2aba1492d6a7a6f9be1831545fa4df96ab3..4e7968648e8e9b4213cb1dc34fc8d9b1717febc3 100644 (file)
 #ifndef _Quantity_Convert_HeaderFile
 #define _Quantity_Convert_HeaderFile
 
+#include <NCollection_Array1.hxx>
 #include <Standard.hxx>
 #include <Standard_DefineAlloc.hxx>
 #include <Standard_Handle.hxx>
-
-#include <Quantity_PhysicalQuantity.hxx>
-#include <Quantity_Coefficient.hxx>
 #include <Standard_Real.hxx>
 #include <Standard_Boolean.hxx>
+#include <Quantity_PhysicalQuantity.hxx>
+
 class TCollection_AsciiString;
 
+#ifndef __Quantity_API
+  #if defined(_WIN32) && !defined(HAVE_NO_DLL)
+    #ifdef __Quantity_DLL
+      #define __Quantity_API __declspec(dllexport)
+    #else
+      #define __Quantity_API __declspec(dllimport)
+    #endif
+  #else
+    #define __Quantity_API
+  #endif
+#endif
+
+extern __Quantity_API NCollection_Array1<Standard_Real> ConvertTable;
 
 //! Services to manage units conversion between Front-ends and Engines.
 //! This conversion is managed by a table of correspondance between the quantities
 //! and their "conversion coefficient".
 //! This table is implemented like an external array (TCollection_Array1) regarding
 //! to the quantities enumeration.
-class Quantity_Convert 
+class Standard_DEPRECATED("This class is deprecated - UnitsAPI should be used instead") Quantity_Convert
 {
 public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Creates an object;
   Standard_EXPORT Quantity_Convert();
   
   //! Updates the conversion table (correspondances between
   //! Quantities and conversion coefficients).
-    static void SetQuantity (const Quantity_PhysicalQuantity aQuantity, const Quantity_Coefficient aCoef);
-  
-  //! Converts, from the conversion table, the value <aVal>
-  //! from the user system to the SI system.
-    static Standard_Real ConvertUserToSI (const Quantity_PhysicalQuantity aQuantity, const Standard_Real aVal);
-  
-  //! Converts, from the conversion table, the value <aVal>
-  //! from the SI system to the user system.
-    static Standard_Real ConvertSIToUser (const Quantity_PhysicalQuantity aQuantity, const Standard_Real aVal);
-  
+  static void SetQuantity (const Quantity_PhysicalQuantity theQuantity,
+                           const Standard_Real theCoef)
+  {
+    if (theQuantity > 0 && theQuantity <= 68)
+    {
+      ConvertTable (theQuantity) = theCoef;
+    }
+  }
+
+  //! Converts, from the conversion table, the value theVal from the user system to the SI system.
+  static Standard_Real ConvertUserToSI (const Quantity_PhysicalQuantity theQuantity,
+                                        const Standard_Real theVal)
+  {
+    return theQuantity > 0 && theQuantity <= 68
+         ? theVal * ConvertTable (theQuantity)
+         : theVal;
+  }
+
+  //! Converts, from the conversion table, the value theVal from the SI system to the user system.
+  static Standard_Real ConvertSIToUser (const Quantity_PhysicalQuantity theQuantity, const Standard_Real theVal)
+  {
+    return theQuantity > 0 && theQuantity <= 68
+         ? (theVal / ConvertTable (theQuantity))
+         : theVal;
+  }
 
   //! if (aType is a physical quantity)
   //! returns True and the name of the associated PhysicalQuantity .
@@ -62,28 +89,6 @@ public:
   //! returns False.
   Standard_EXPORT static Standard_Boolean IsPhysicalQuantity (const TCollection_AsciiString& aTypeName, TCollection_AsciiString& anEnum);
 
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
-
 };
 
-
-#include <Quantity_Convert.lxx>
-
-
-
-
-
 #endif // _Quantity_Convert_HeaderFile
diff --git a/src/Quantity/Quantity_Convert.lxx b/src/Quantity/Quantity_Convert.lxx
deleted file mode 100644 (file)
index b75c5b5..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-// Created by: M. MERCIEN
-// Copyright (c) 1998-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-//-----------------------------------------------------------------------------
-// inline methods for Convert from Quantity
-//-----------------------------------------------------------------------------
-#include <Quantity_Array1OfCoefficient.hxx>
-
-
-#ifndef __Quantity_API
-# if defined(_WIN32) && !defined(HAVE_NO_DLL)
-#  ifdef __Quantity_DLL
-#   define __Quantity_API __declspec( dllexport )
-#  else
-#   define __Quantity_API __declspec( dllimport )
-#  endif  // __Quantity_DLL
-# else
-#   define __Quantity_API
-# endif  // _WIN32
-#endif  // __Quantity_API 
-
-
-extern __Quantity_API Quantity_Array1OfCoefficient ConvertTable;
-
-
-//----------------------------------------------------------------------------
-//  SetQuantity
-//----------------------------------------------------------------------------
-inline void Quantity_Convert::SetQuantity (const Quantity_PhysicalQuantity aQuantity,
-                                const Quantity_Coefficient aCoef) {
-// ...Update du coefficient de conversion
-   if (aQuantity > 0 && aQuantity <= 68) ConvertTable(aQuantity) = aCoef;
-}
-
-//----------------------------------------------------------------------------
-//  ConvertUserToSI
-//----------------------------------------------------------------------------
-inline Quantity_Coefficient Quantity_Convert::ConvertUserToSI 
-        (const Quantity_PhysicalQuantity aQuantity ,
-         const Standard_Real aVal) {
-// ...Conversion de la valeur aVal, du Systeme Utilisateur en Systeme International
-   if (aQuantity > 0 && aQuantity <= 68)   
-      return (aVal*ConvertTable(aQuantity));
-   else
-     return aVal;
-}
-
-//----------------------------------------------------------------------------
-//  ConvertSIToUser
-//----------------------------------------------------------------------------
-inline Quantity_Coefficient Quantity_Convert::ConvertSIToUser 
-        (const Quantity_PhysicalQuantity aQuantity ,
-         const Standard_Real aVal) {
-// ...Conversion de la valeur aVal, du Systeme International au Systeme Utilisateur
-   if (aQuantity > 0 && aQuantity <= 68)   
-      return (aVal/ConvertTable(aQuantity));
-   else
-     return aVal;
-}
index 18605be4d88eb866840d25222556681225fe32c5..97ac924afc1fb43d85983a4a465cd5b6a9a67330 100644 (file)
@@ -27,7 +27,6 @@ class Quantity_DateDefinitionError;
 class Standard_OutOfRange;
 class Quantity_Period;
 
-
 //! This class provides services to manage date information.
 //! A date represents the following time intervals:
 //! year, month, day, hour, minute, second,
@@ -43,7 +42,6 @@ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Constructs a default date
   //! (00:00 GMT, January 1, 1979 (zero hour)); use the function
   //! SetValues to define the required date; or
@@ -176,32 +174,17 @@ Standard_Boolean operator > (const Quantity_Date& anOther) const
   //! Returns true if a year is a leap year.
   //! The leap years are divisable by 4 and not by 100 except
   //! the years divisable by 400.
-    static Standard_Boolean IsLeap (const Standard_Integer yy);
-
-
-
-
-protected:
-
-
-
-
+  static Standard_Boolean IsLeap (const Standard_Integer yy)
+  {
+    return ((yy % 4 == 0) && (yy % 100 != 0))
+         || (yy % 400) == 0;
+  }
 
 private:
 
-
-
   Standard_Integer mySec;
   Standard_Integer myUSec;
 
-
 };
 
-
-#include <Quantity_Date.lxx>
-
-
-
-
-
 #endif // _Quantity_Date_HeaderFile
diff --git a/src/Quantity/Quantity_Date.lxx b/src/Quantity/Quantity_Date.lxx
deleted file mode 100644 (file)
index 1845b67..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright (c) 1998-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-inline Standard_Boolean Quantity_Date::IsLeap (const Standard_Integer yy){
-
-return (((yy % 4 == 0) && (yy % 100 != 0)) || (yy % 400) == 0) 
-         ? Standard_True : Standard_False;
-}
index 238d56bc818d36297270f168916df058a5766bef..657df93493114e8458507cdb9cd0189c73efc660 100644 (file)
@@ -21,6 +21,7 @@
 
 //! Defined as mass per unit volume.
 //! It is measured in kilograms per cubic metre.
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Density;
 
 #endif // _Quantity_Density_HeaderFile
index ccbf7e4db1fc81748cf61f650dc5334eeac7a397..bb9956aa11d10ac6fb91a76287c00b1a6bf5ebf2 100644 (file)
@@ -23,7 +23,7 @@
 //! quality factor related to the effect of a particular
 //! type of radiation on biological tissue.
 //! It is measured in sieverts.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_DoseEquivalent;
 
 #endif // _Quantity_DoseEquivalent_HeaderFile
index 562f95806ba859482bd4e61575c840bcd327631b..2d662df97b34971005c9770ba2e896f870fc3931 100644 (file)
@@ -22,7 +22,7 @@
 //! Defined for a capacitor as the ratio of the charge on
 //! either conductor to the potential between them.
 //! It is measured in farads (coulomb per volt).
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_ElectricCapacitance;
 
 #endif // _Quantity_ElectricCapacitance_HeaderFile
index 2a369aafc9a8e20336fffe8840ca1c4f6e7b1c92..c8d577f605b4e83dca06bcb324d37e3f2fe3ae7b 100644 (file)
@@ -23,7 +23,7 @@
 //! more commonly viewed as the product of electric current
 //! and time.
 //! It is measured in coulombs (ampere-second).
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_ElectricCharge;
 
 #endif // _Quantity_ElectricCharge_HeaderFile
index aa3a0d75237ac9101b912a6b26319dee08aeb80f..087b537349b2b3c8d0a11379e6db20c7ee3a8483 100644 (file)
@@ -21,7 +21,7 @@
 
 //! Defined as the amount of charge flowing per unit time.
 //! It is measured in amperes (coulombs per second).
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_ElectricCurrent;
 
 #endif // _Quantity_ElectricCurrent_HeaderFile
index f7cccbc4870d4e72b5dfb23031b2bf2dd61fe767..0886565ed0efcc93cc91cd0c181ca4120d495cb1 100644 (file)
@@ -22,7 +22,7 @@
 //! Defined as the force exerted on a unit charge at a
 //! given point in space.
 //! It is measured in volts per metre.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_ElectricFieldStrength;
 
 #endif // _Quantity_ElectricFieldStrength_HeaderFile
index 8e9327626e70dcd4915ffc8ce7d14beec88d7925..6458d1f2312a7257f22010434672685428123c35 100644 (file)
@@ -25,7 +25,7 @@
 //! Volts are in practice used to measure differences
 //! in potential e.g. the electromotive force generated when
 //! a conductor cuts a magnetic field.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_ElectricPotential;
 
 #endif // _Quantity_ElectricPotential_HeaderFile
index 56ed36e11ac203a4484ba966558f2a4ba4a04ae0..df0de7ff05657134c7a5a74a1819764e4c8ec1b4 100644 (file)
@@ -37,7 +37,7 @@
 //! the observed mass and the rest mass of a body multiplied
 //! by the square of the speed of light.
 //! It is measured in joules (newton-metres).
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Energy;
 
 #endif // _Quantity_Energy_HeaderFile
index 2943676cec5eacd7ea372618a9ab687bc511966e..9c6dc1207c03dfcff1a0260251ccdba25c2fb058 100644 (file)
@@ -24,7 +24,7 @@
 //! process at constant pressure the change in enthalpy is
 //! equal to the quantity of heat absorbed (or lost).
 //! It is measured in joules.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Enthalpy;
 
 #endif // _Quantity_Enthalpy_HeaderFile
index 91ea21c04a1a0ab7b6ec0bac7b67808dce15dad1..28483897e1dd7fa323d19d43d5a9dd180706ad0f 100644 (file)
@@ -28,7 +28,7 @@
 //! unavailability of its internal energy to do work in a
 //! cyclical process.
 //! A change in entropy is measured in joules per degree kelvin.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Entropy;
 
 #endif // _Quantity_Entropy_HeaderFile
index d347194a8eb5f4eb6fed6d51eb481356df37b3d4..0ec239ed34ce1428b9afc14c39ad6016766a02ac 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <Standard_Real.hxx>
 
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Factor;
 
-
 #endif // _Quantity_Factor_HeaderFile
index 45e9557f3d29de337770bf8a324eae1b34498e40..aaf00109a2fe9548ee967bf4eaea36c0d3a8a4d0 100644 (file)
@@ -23,7 +23,7 @@
 //! and the acceleration that the force produces.
 //! It is a vector quantity.
 //! It is measured in newtons.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Force;
 
 #endif // _Quantity_Force_HeaderFile
index 00b7413f89107c707569a47733fed15ee43f948c..6a9e8278497f2ce9d9bea025d2723f609be5af36 100644 (file)
@@ -21,6 +21,7 @@
 
 //! Defined as the number of oscillations per unit time.
 //! It is measured in cycles per second.
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Frequency;
 
 #endif // _Quantity_Frequency_HeaderFile
index 35b4512f251a08983bbba92e69371c9671ba047c..d4c9644318306589f3dec2455c5c8f1dd3bbccae 100644 (file)
@@ -21,7 +21,7 @@
 
 //! Defined as the incident luminous flux per unit area.
 //! It is measured in lux (lumen per square metre).
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Illuminance;
 
 #endif // _Quantity_Illuminance_HeaderFile
index 494c27e6491b996ebab68b7c3af814a127736eac..c01e99d338af868bb582256ac0f9af184f503bde 100644 (file)
@@ -23,7 +23,7 @@
 //! in a circuit. Includes the contributions of resistance,
 //! inductance, and capacitance.
 //! It is measured in Ohms.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Impedance;
 
 #endif // _Quantity_Impedance_HeaderFile
index 330ee8bec3b051b8ad8f7fc1746c74ff334a360e..98866c2da950913a95a2e5716e39ffc59bd9f80a 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <Standard_Real.hxx>
 
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Index;
 
-
 #endif // _Quantity_Index_HeaderFile
index 62e4db46d55e14a0492b04ddd692607db699e106..4f174afc1ca008b61bc765edfb74092f62290806 100644 (file)
@@ -23,7 +23,7 @@
 //! induced when the current in a circuit changes at
 //! unit rate.
 //! It is measured in henrys (webers per ampere).
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Inductance;
 
 #endif // _Quantity_Inductance_HeaderFile
index eda903915198d6afe48c76c324c73d7656ec11b3..52d1ffff9dd9d806a2c7591e7a59ceec7da07d43 100644 (file)
@@ -24,7 +24,7 @@
 //! perfect fluid to include terms due to a real fluid.
 //! It is quantified as area per unit time.
 //! It is measured in square metres per second.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_KinematicViscosity;
 
 #endif // _Quantity_KinematicViscosity_HeaderFile
index b389cf06df823eb7b6c25bf2cccc007dbdcb644f..e85cf3bb8dfc160ca11fd65666e796507207a712 100644 (file)
@@ -22,7 +22,7 @@
 //! Defined as the product of momentum of a body
 //! and the distance of its centre of gravity from an axis.
 //! It is measured in kilogram-square-metres per second.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_KineticMoment;
 
 #endif // _Quantity_KineticMoment_HeaderFile
index 2a35724595dfc01e99ac804adbfdd1fca9e67380..7711de3f5c3ee9eee294f9306842d4ab0195bd51 100644 (file)
@@ -21,6 +21,7 @@
 
 //! Defined as spatial extension.
 //! It is measured in metres.
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Length;
 
 #endif // _Quantity_Length_HeaderFile
index a740b71b852f75689bccb62dfa7000270caf1a16..6038e08a57ef0326a99c619db67f0cfe0397f46e 100644 (file)
@@ -22,7 +22,7 @@
 //! It is defined the luminous flux per unit area per unit
 //! solid angle.
 //! It is measured in candelas per square metre.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Luminance;
 
 #endif // _Quantity_Luminance_HeaderFile
index fe388991399d39ae19d344a070155f53ce61e858..8f386dcc49f2837bba7a9f1607c54c0d926a7080 100644 (file)
@@ -22,7 +22,7 @@
 //! Defined as the ratio of luminous flux emitted by a
 //! source to the power it consumes.
 //! It is measured in lumens per watt.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_LuminousEfficacity;
 
 #endif // _Quantity_LuminousEfficacity_HeaderFile
index 9615ab9d78f8281a174461de43f5906ede7389ce..09352286d332ffd4ac90b6d3534d870663878c77 100644 (file)
@@ -21,7 +21,7 @@
 
 //! Defined as the quantity of illuminance with time.
 //! It is measured in lux-seconds.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_LuminousExposition;
 
 #endif // _Quantity_LuminousExposition_HeaderFile
index 78df0f0b2d8a66fa357176de8b25d27cc2987469..955c0a45feeeedce3b1e2b542a9cca88e51c8a5b 100644 (file)
@@ -25,7 +25,7 @@
 //! is related to the radiant flux of the source by the
 //! spectral luminous efficiency.
 //! It is measured in lumens.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_LuminousFlux;
 
 #endif // _Quantity_LuminousFlux_HeaderFile
index e1e51448d3bb02c7a5f60c2e642f5a57a014be5e..ca4eef85fa2df2bb2575f91344c72ec55ffc8649 100644 (file)
@@ -22,7 +22,7 @@
 //! Defined as the luminous flux emitted per unit solid
 //! angle in a given direction by a point source.
 //! It is measured in candelas.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_LuminousIntensity;
 
 #endif // _Quantity_LuminousIntensity_HeaderFile
index 56a731231ed1e2708e47bb28b5ed8d01a9872948..d52e3c8218d3aa9ff5526bfed689ac06ac3ecdca 100644 (file)
@@ -24,7 +24,7 @@
 //! Its integral along a closed line is equal to the
 //! magnetomotive force.
 //! It is measured in amperes per metre.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_MagneticFieldStrength;
 
 #endif // _Quantity_MagneticFieldStrength_HeaderFile
index 56d12063df596ebb15768fb60c0c151e157500dd..638ded78c832c8b8ed7db1700c2292c8dae1dd32 100644 (file)
@@ -22,7 +22,7 @@
 //! Defined as the product of a given area and the
 //! average magnetic flux density normal to it.
 //! It is measured in webers (tesla-square-metre).
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_MagneticFlux;
 
 #endif // _Quantity_MagneticFlux_HeaderFile
index 580692fe63f651f50bae56ae8e886c34067455ff..a03014e689614bd6788d02ca35c1a857bc008f66 100644 (file)
@@ -25,7 +25,7 @@
 //! and the magnetic field strength and with a direction at any
 //! given point the same as that of the magnetic field.
 //! It is measured in teslas (webers per square metre).
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_MagneticFluxDensity;
 
 #endif // _Quantity_MagneticFluxDensity_HeaderFile
index 2f9e70db155c49cd4c2306861685688fe3c05d16..7705d87c2755fe1ccb2ff84e4cd59867388ba650 100644 (file)
@@ -22,6 +22,7 @@
 //! Defined as a quantity of matter. Gives rise to the
 //! inertial and gravitational properties of a body.
 //! It is measured in kilograms.
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Mass;
 
 #endif // _Quantity_Mass_HeaderFile
index a0f8cad01c46ffba48ede277db4a08345e3ff4ac..4d0c476fd9cc87ed8d846c986cddc61ec055ac48 100644 (file)
@@ -21,7 +21,7 @@
 
 //! Defined as mass per unit time.
 //! It is measured in kilograms per second.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_MassFlow;
 
 #endif // _Quantity_MassFlow_HeaderFile
index 1f1ff1f77f54c2005b71173651784624b2d1be7c..47ddf7873b51f3b6fe4e2d69f6e77c3e65fa7652 100644 (file)
@@ -21,7 +21,7 @@
 
 //! Defined as the concentration in moles per litre of
 //! solution. It is also called molarity.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_MolarConcentration;
 
 #endif // _Quantity_MolarConcentration_HeaderFile
index 652383d15479cbdf6ab59ac5c92b077b465e303b..e076ef0c1ca32044cd0c5cd811c59b935d3410e8 100644 (file)
@@ -23,7 +23,7 @@
 //! mole. One mole of any substance contains Avogadro's
 //! Constant of molecules.
 //! It is measured in kilograms per mole.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_MolarMass;
 
 #endif // _Quantity_MolarMass_HeaderFile
index 6f6811542cca6d13782ec0e15964307bf789c3a4..d18759639be268cb834e6d252fa7224f64d41263 100644 (file)
@@ -23,7 +23,7 @@
 //! One mole of any substance contains Avogadro's
 //! Constant of molecules.
 //! It is measured in cubic metres per mole.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_MolarVolume;
 
 #endif // _Quantity_MolarVolume_HeaderFile
index c4f69ce84a8663146288a40d5de69912501b2b84..f521739b7b5fb9850427df2f094b340ce1ac6dea 100644 (file)
@@ -21,7 +21,7 @@
 
 //! Defined as the concentration in moles per kilogram of
 //! solvent.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Molarity;
 
 #endif // _Quantity_Molarity_HeaderFile
index 8a3d0abe9c1795bc0e430ff9a5ad1ebd1034d275..608ddd8fa72f1d9c2194471521be65a8f9e086b9 100644 (file)
@@ -22,7 +22,7 @@
 //! Defined as the product of a force and the
 //! perpendicular distance to an axis.
 //! It is measured in newtons x metres.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_MomentOfAForce;
 
 #endif // _Quantity_MomentOfAForce_HeaderFile
index 3697a3b276bfcf0a8a23eb7f26a7c333cd138eaa..edee2d888c2204162b6edfd45c5d8a66e842cebe 100644 (file)
@@ -23,7 +23,7 @@
 //! and the square of the distance of its centre of gravity
 //! from an axis.
 //! It is measured in kilogram-square-metres.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_MomentOfInertia;
 
 #endif // _Quantity_MomentOfInertia_HeaderFile
index 91147e30a1dd6fc62188e623296bc98bd70c4da1..d6be6e6177fe82d2091f396010e90d9137997b26 100644 (file)
@@ -22,7 +22,7 @@
 //! Defined as the product of mass and velocity.
 //! It is a vector quantity.
 //! It is measured in kilogram-metres per second.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Momentum;
 
 #endif // _Quantity_Momentum_HeaderFile
index d098ef7c6c7f62487ec002c7d6a3dc891ba2b0b9..1929834398d0771a164675a81308260663884800 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <Standard_Real.hxx>
 
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Normality;
 
-
 #endif // _Quantity_Normality_HeaderFile
index 74f61a0b9caf3313fa0b1ef8a33e080fcfebea83..1a888f1229e829af0f3965dadd30d152bbdd066c 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <Standard_Real.hxx>
 
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Parameter;
 
-
 #endif // _Quantity_Parameter_HeaderFile
index 2299a5cb841d209f81475a60ba72a5af82253327..81c126b45bf051d6098908ebc83ef377e88be88c 100644 (file)
@@ -25,7 +25,6 @@
 #include <Standard_Boolean.hxx>
 class Quantity_PeriodDefinitionError;
 
-
 //! Manages date intervals. For example, a Period object
 //! gives the interval between two dates.
 //! A period is expressed in seconds and microseconds.
@@ -35,7 +34,6 @@ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
   //! Creates a Period
   //! With:      0 <= dd
   //! 0 <= hh
@@ -139,29 +137,11 @@ Standard_Boolean operator > (const Quantity_Period& anOther) const
   //! 0 <= mics
   Standard_EXPORT static Standard_Boolean IsValid (const Standard_Integer ss, const Standard_Integer mics = 0);
 
-
-
-
-protected:
-
-
-
-
-
 private:
 
-
-
   Standard_Integer mySec;
   Standard_Integer myUSec;
 
-
 };
 
-
-
-
-
-
-
 #endif // _Quantity_Period_HeaderFile
diff --git a/src/Quantity/Quantity_Period.lxx b/src/Quantity/Quantity_Period.lxx
deleted file mode 100644 (file)
index 4324b61..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 1998-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-inline Standard_Real  Quantity_Period::MillisecondPeriod(){
- return (1E+3);
-}
-
-inline Standard_Real  Quantity_Period::SecondPeriod(){
- return (1E+6);
-}
-
-
-inline Standard_Real  Quantity_Period::MinutePeriod(){
- return (60.0E+6);
-}
-
-inline Standard_Real  Quantity_Period::HourPeriod(){
- return (3600.0E+6);
-}
-
-inline Standard_Real  Quantity_Period::DayPeriod(){
- return (86400.0E+6);
-}
-
index d2d15dd8dcf8b0515d9509b9c96d7cb64bd4dd01..f9a91fb1d30efb70748a597d6f19b5bd39418c0b 100644 (file)
@@ -21,6 +21,7 @@
 
 //! Defined as a difference in direction.
 //! It is measured in radians.
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_PlaneAngle;
 
 #endif // _Quantity_PlaneAngle_HeaderFile
index 086fc7b0af04d8407be584851f73fe92041eebfd..2e275cf72282c7cf21872f2914e8c40f7d1f96a7 100644 (file)
@@ -26,7 +26,7 @@
 //! and the current. For AC the root-mean-square values
 //! are multiplied by the cosine of the phase angle.
 //! It is measured in watts (joules per second).
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Power;
 
 #endif // _Quantity_Power_HeaderFile
index 3c8e3556bb09232fab0aa3405d605b6cae76c888..440eb9cecbdb8ccc87c0b5aa58b20aa691e02267 100644 (file)
@@ -23,7 +23,7 @@
 //! unit area. In a fluid it is defined as the product
 //! of the depth, density, and free fall acceleration.
 //! It is measured in pascals (newtons per square metre).
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Pressure;
 
 #endif // _Quantity_Pressure_HeaderFile
index a3dd258063dce5afbf77786f040c2df5466097cd..63e944ad3148360447cbd7412f38adce9557062b 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <Standard_Real.hxx>
 
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Quotient;
 
-
 #endif // _Quantity_Quotient_HeaderFile
index 615f1f21e4915a5b08ab7904f84c902482a0cdbb..ac46520d6753827c2bd5d55a6d0d9ee8d486a3ec 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <Standard_Real.hxx>
 
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Rate;
 
-
 #endif // _Quantity_Rate_HeaderFile
index fda4c8646d00adec9a4ec4622bee0d7f66cc06a2..9d5ffe565d9c4e62a8988b97b67b4357076322b4 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <Standard_Real.hxx>
 
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Ratio;
 
-
 #endif // _Quantity_Ratio_HeaderFile
index 86328602457b3f818e8e5987771657619891c453..525e212ac86c0d628711e34018abfecca4ff2700 100644 (file)
@@ -23,7 +23,7 @@
 //! to a magnetic circuit to the magnetic flux in the circuit.
 //! It is measured in reciprocal henrys.
 //! Its reciprocal is permanence.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Reluctance;
 
 #endif // _Quantity_Reluctance_HeaderFile
index 3dbd542bd968bd90c6fc3145b0f5648e18e963b4..132b8695092931e704c8d76ca23cc9ef0129b81a 100644 (file)
@@ -22,7 +22,7 @@
 //! Defined as the ratio of the potential difference
 //! across a conductor to the current flowing through it.
 //! It is measured in ohms.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Resistance;
 
 #endif // _Quantity_Resistance_HeaderFile
index 87c4fd681f6f277610bb15d64d47c17d92e127b8..6ccf832399e2b8adc5081872f5a5c1937be6600c 100644 (file)
@@ -23,7 +23,7 @@
 //! cross-section per unit length.
 //! It is measured in Ohm-metres.
 //! It is the reciprocal of the conductivity.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Resistivity;
 
 #endif // _Quantity_Resistivity_HeaderFile
index 351520c8aafd6066517f9e7fd3799b7d4f363ac9..dc66a2735e327afc2f05c975db254e5e3008e17e 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <Standard_Real.hxx>
 
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Scalaire;
 
 
index 4c3d1d792dd617835ef26cc19af0836fb72eb5e7..752f9acb730e5c832c1eadd9e104df7a615e9b5e 100644 (file)
@@ -21,6 +21,7 @@
 
 //! Defined as an angle formed by three or more planes.
 //! It is measured in steradians.
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_SolidAngle;
 
 #endif // _Quantity_SolidAngle_HeaderFile
index 031811b1a7f45f2f4ae79907962ff90bfa1d2ee7..dc5fb61783101d95c0873fafd3be54635d6a9cfb 100644 (file)
@@ -24,7 +24,7 @@
 //! square of the root-mean-square sound pressure, divided by
 //! the density of the medium and by the speed of sound.
 //! It is measured in watts per square metre.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_SoundIntensity;
 
 #endif // _Quantity_SoundIntensity_HeaderFile
index 0b51f4de294300ab46f2244e7e7d6ef68c42575a..287f2acdea850e2fae501fb9200844b5dd58ca29 100644 (file)
@@ -29,7 +29,7 @@
 //! degree of temperature.
 //! It is measured in joules per kilogram per degree
 //! kelvin.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_SpecificHeatCapacity;
 
 #endif // _Quantity_SpecificHeatCapacity_HeaderFile
index 8fa641bb35725cc3d877147c3b986b82895ebe60..ef305f3e3f8d3abce6cc5c1107bced26495d91fb 100644 (file)
@@ -21,6 +21,7 @@
 
 //! Defined as distance covered per unit time.
 //! It is measured in metres per second.
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Speed;
 
 #endif // _Quantity_Speed_HeaderFile
index f493bfc539cbf3eecea6e745de3b394fb3bddaae..aa84cea8dfe1bfba1d758e6c43e4292e5adea2b0 100644 (file)
@@ -22,7 +22,7 @@
 //! Defined as the force required to hold unit length
 //! of a plane liquid surface.
 //! It is measured in newtons per metre.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_SurfaceTension;
 
 #endif // _Quantity_SurfaceTension_HeaderFile
index 9c85e1ab79b4c42aa80a21bf136b6932d735ca72..4a88f34afeb6eb47e7b0be94dbea4196c1b4cf86 100644 (file)
@@ -22,6 +22,7 @@
 //! Defined as a measure of the average kinetic energy
 //! of the molecules in a body.
 //! It is measured in degrees kelvin.
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Temperature;
 
 #endif // _Quantity_Temperature_HeaderFile
index b4b9353cc27ac656ee5884636bf5ae007c360456..a11bdf9da5f54d953f1fb8acb017102f04b17150 100644 (file)
@@ -23,7 +23,7 @@
 //! area inside a body. Quantified as work per unit time
 //! per unit length per unit of temperature.
 //! It is measured in watts per metre per degee kelvin.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_ThermalConductivity;
 
 #endif // _Quantity_ThermalConductivity_HeaderFile
index 843b9e44f412055ced93badad34320254052d7af..43a711fab4f1e82551c29accef1980ac34839e82 100644 (file)
@@ -23,7 +23,7 @@
 //! perpendicular distance to an axis or as the
 //! the product of a force couple.
 //! It is measured in newtons x metres.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Torque;
 
 #endif // _Quantity_Torque_HeaderFile
index e0af14241fab1f362a821cc6c4c7b9fbf4270ab7..e6696aa8dd8c624741f7c0479db9dfb9f3fc84d8 100644 (file)
@@ -22,6 +22,7 @@
 //! Defined as distance covered per unit time in a
 //! given direction. It is a vector quantity.
 //! It is measured in metres per second.
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Velocity;
 
 #endif // _Quantity_Velocity_HeaderFile
index 11961afe59ef3558c896da3120aaee1c65775b61..6dfa64216e99abda07199548a6670c84a34fac89 100644 (file)
@@ -24,7 +24,7 @@
 //! and time. For a liquid it generally decreases with
 //! temperature; for a gas it increases.
 //! It is measured in pascal-seconds.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Viscosity;
 
 #endif // _Quantity_Viscosity_HeaderFile
index 027c79143f97f028e5a64b7ae551af8cf85cd6c9..6a88bfd28256ed4634906aac3eaa988241754c2f 100644 (file)
@@ -21,6 +21,7 @@
 
 //! Defined as an extension in three dimensions.
 //! It is measured in cubic metres.
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Volume;
 
 #endif // _Quantity_Volume_HeaderFile
index 790be2e416d33dabd7bd2799fb72c0b67687e9f8..017cd03dc863d7f37f01dddd66484af74c1d277a 100644 (file)
@@ -21,7 +21,7 @@
 
 //! Defined as volume per unit time.
 //! It is measured in cubic metres per second.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_VolumeFlow;
 
 #endif // _Quantity_VolumeFlow_HeaderFile
index 73c8597334b6b760e62ce96fcf571e00d34837f4..537ee6adb35474e0f4041b143c0732b6d511047c 100644 (file)
@@ -24,7 +24,7 @@
 //! It is quantified as the product of the mass of the body
 //! and the local value of the acceleration of free fall.
 //! It is measured in newtons.
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Weight;
 
 #endif // _Quantity_Weight_HeaderFile
index 1dd2167a4e86b22e41115f9b507a6132a25631ab..55c00c292013befc6371e7f000dd37766703b5a8 100644 (file)
@@ -26,7 +26,7 @@
 //! In electrical terms, the product of a charge and the
 //! potential difference it traverses.
 //! It is measured in joules (newton-metres).
-
+Standard_DEPRECATED("This type is deprecated - Standard_Real should be used instead")
 typedef Standard_Real Quantity_Work;
 
 #endif // _Quantity_Work_HeaderFile
index fd0d89939fa28054bd308cc2ab7686db87adf865..77b33b03e3abbec46f26b729a8f89e3ce507c192 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <VrmlAPI_RepresentationOfShape.hxx>
 #include <Standard_Real.hxx>
-#include <Quantity_Length.hxx>
 #include <Quantity_HArray1OfColor.hxx>
 #include <Standard_CString.hxx>
 #include <Standard_Integer.hxx>
@@ -106,12 +105,8 @@ public:
   //! VRML format of the passed version and writes it to the file identified by aFile.
   Standard_EXPORT void Write (const TopoDS_Shape& aShape, const Standard_CString aFile, const Standard_Integer aVersion = 2) const;
 
-
-
-
 protected:
 
-  
   //! Converts the shape aShape to VRML format of version 1.0 and writes it
   //! to the file identified by aFileName using default parameters.
   Standard_EXPORT void write_v1 (const TopoDS_Shape& aShape, const Standard_CString aFileName) const;
@@ -120,13 +115,8 @@ protected:
   //! to the file identified by aFileName using default parameters.
   Standard_EXPORT void write_v2 (const TopoDS_Shape& aShape, const Standard_CString aFileName) const;
 
-
-
-
 private:
 
-
-
   VrmlAPI_RepresentationOfShape myRepresentation;
   Handle(VrmlConverter_Drawer) myDrawer;
   Standard_Real myDeflection;
@@ -142,21 +132,14 @@ private:
   Handle(Vrml_Material) myWireMaterial;
   Handle(Vrml_Material) myFreeBoundsMaterial;
   Handle(Vrml_Material) myUnfreeBoundsMaterial;
-  Quantity_Length DX;
-  Quantity_Length DY;
-  Quantity_Length DZ;
-  Quantity_Length XUp;
-  Quantity_Length YUp;
-  Quantity_Length ZUp;
-  Quantity_Length Focus;
-
+  Standard_Real DX;
+  Standard_Real DY;
+  Standard_Real DZ;
+  Standard_Real XUp;
+  Standard_Real YUp;
+  Standard_Real ZUp;
+  Standard_Real Focus;
 
 };
 
-
-
-
-
-
-
 #endif // _VrmlAPI_Writer_HeaderFile
index 6168660dc57ccee7b8da7901a3576930bf5eb7e3..2b470fa0eac23d28d26866f6035aeab025dd2ea7 100644 (file)
@@ -46,12 +46,12 @@ Aspect_TypeOfDeflection VrmlConverter_Drawer::TypeOfDeflection() const
  return myTypeOfDeflection;
 }
 
-void VrmlConverter_Drawer::SetMaximalChordialDeviation(const Quantity_Length aChordialDeviation)
+void VrmlConverter_Drawer::SetMaximalChordialDeviation(const Standard_Real aChordialDeviation)
 {
  myChordialDeviation = aChordialDeviation;
 }
 
-Quantity_Length VrmlConverter_Drawer::MaximalChordialDeviation() const 
+Standard_Real VrmlConverter_Drawer::MaximalChordialDeviation() const 
 {
  return myChordialDeviation;
 }
index 593f3c609deae8606f19cc5785817928f92cb5f3..86b4d42416eca03313e3ef71969e9f6485a7a878 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <Standard_Integer.hxx>
 #include <Standard_Boolean.hxx>
-#include <Quantity_Length.hxx>
 #include <Aspect_TypeOfDeflection.hxx>
 #include <Standard_Real.hxx>
 #include <MMgt_TShared.hxx>
@@ -60,11 +59,11 @@ public:
   //! VrmlConverter_DeflectionCurve
   //! VrmlConverter_WFDeflectionRestrictedFace
   //! VrmlConverter_WFDeflectionShape
-  Standard_EXPORT void SetMaximalChordialDeviation (const Quantity_Length aChordialDeviation);
+  Standard_EXPORT void SetMaximalChordialDeviation (const Standard_Real aChordialDeviation);
   
   //! returns the maximal chordial deviation.
   //! Default value: 0.1
-  Standard_EXPORT Quantity_Length MaximalChordialDeviation() const;
+  Standard_EXPORT Standard_Real MaximalChordialDeviation() const;
   
   //! default 0.001
   Standard_EXPORT void SetDeviationCoefficient (const Standard_Real aCoefficient);
@@ -213,19 +212,10 @@ public:
   //! sets LineAspect  for  the seen lines.
   Standard_EXPORT void SetSeenLineAspect (const Handle(VrmlConverter_LineAspect)& anAspect);
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(VrmlConverter_Drawer,MMgt_TShared)
 
-protected:
-
-
-
-
 private:
 
-
   Handle(VrmlConverter_IsoAspect) myUIsoAspect;
   Handle(VrmlConverter_IsoAspect) myVIsoAspect;
   Standard_Integer myNbPoints;
@@ -238,7 +228,7 @@ private:
   Standard_Boolean myWireDraw;
   Handle(VrmlConverter_LineAspect) myLineAspect;
   Handle(VrmlConverter_ShadingAspect) myShadingAspect;
-  Quantity_Length myChordialDeviation;
+  Standard_Real myChordialDeviation;
   Aspect_TypeOfDeflection myTypeOfDeflection;
   Standard_Real myMaximalParameterValue;
   Standard_Real myDeviationCoefficient;
@@ -247,13 +237,6 @@ private:
   Handle(VrmlConverter_LineAspect) myHiddenLineAspect;
   Handle(VrmlConverter_LineAspect) mySeenLineAspect;
 
-
 };
 
-
-
-
-
-
-
 #endif // _VrmlConverter_Drawer_HeaderFile
index c38cd4ad8ecccd0fcd6540a4ba199f64484e89db..d8f04a539fca4497e248eebf713a2207f69a6528 100644 (file)
 IMPLEMENT_STANDARD_RTTIEXT(VrmlConverter_Projector,MMgt_TShared)
 
 VrmlConverter_Projector::VrmlConverter_Projector (const TopTools_Array1OfShape& Shapes,
-                                                 const Quantity_Length Focus,
-                                                 const Quantity_Length DX,
-                                                 const Quantity_Length DY,
-                                                 const Quantity_Length DZ,
-                                                 const Quantity_Length XUp,
-                                                 const Quantity_Length YUp,
-                                                 const Quantity_Length ZUp, 
+                                                 const Standard_Real Focus,
+                                                 const Standard_Real DX,
+                                                 const Standard_Real DY,
+                                                 const Standard_Real DZ,
+                                                 const Standard_Real XUp,
+                                                 const Standard_Real YUp,
+                                                 const Standard_Real ZUp, 
                                                  const VrmlConverter_TypeOfCamera Camera,
                                                  const VrmlConverter_TypeOfLight Light)
 
index 01ea264f123187cd5ced8e8cd550c58e1abb0e75..9f6aa530b6997d05b3a50cd66ebbc032bb8d41ef 100644 (file)
@@ -31,7 +31,6 @@
 #include <Vrml_MatrixTransform.hxx>
 #include <MMgt_TShared.hxx>
 #include <TopTools_Array1OfShape.hxx>
-#include <Quantity_Length.hxx>
 #include <Standard_OStream.hxx>
 class HLRAlgo_Projector;
 
@@ -51,7 +50,7 @@ class VrmlConverter_Projector : public MMgt_TShared
 public:
 
   
-  Standard_EXPORT VrmlConverter_Projector(const TopTools_Array1OfShape& Shapes, const Quantity_Length Focus, const Quantity_Length DX, const Quantity_Length DY, const Quantity_Length DZ, const Quantity_Length XUp, const Quantity_Length YUp, const Quantity_Length ZUp, const VrmlConverter_TypeOfCamera Camera = VrmlConverter_NoCamera, const VrmlConverter_TypeOfLight Light = VrmlConverter_NoLight);
+  Standard_EXPORT VrmlConverter_Projector(const TopTools_Array1OfShape& Shapes, const Standard_Real Focus, const Standard_Real DX, const Standard_Real DY, const Standard_Real DZ, const Standard_Real XUp, const Standard_Real YUp, const Standard_Real ZUp, const VrmlConverter_TypeOfCamera Camera = VrmlConverter_NoCamera, const VrmlConverter_TypeOfLight Light = VrmlConverter_NoLight);
   
   Standard_EXPORT void SetCamera (const VrmlConverter_TypeOfCamera aCamera);
   
@@ -73,16 +72,8 @@ public:
   
   Standard_EXPORT HLRAlgo_Projector Projector() const;
 
-
-
-
   DEFINE_STANDARD_RTTIEXT(VrmlConverter_Projector,MMgt_TShared)
 
-protected:
-
-
-
-
 private:
 
 
@@ -99,10 +90,4 @@ private:
 
 };
 
-
-
-
-
-
-
 #endif // _VrmlConverter_Projector_HeaderFile
index b927e1be8ff0dd9d532d49536174dee57bbb0d6e..89c9410fa31bd832f8210b7c4340ded9cb03b21a 100644 (file)
@@ -79,7 +79,7 @@ void VrmlConverter_WFDeflectionRestrictedFace::Add
    const Handle(BRepAdaptor_HSurface)& aFace,
    const Standard_Boolean              DrawUIso,
    const Standard_Boolean              DrawVIso,
-   const Quantity_Length               Deflection,
+   const Standard_Real               Deflection,
    const Standard_Integer              NBUiso,
    const Standard_Integer              NBViso,
    const Handle(VrmlConverter_Drawer)& aDrawer)
@@ -317,7 +317,7 @@ void VrmlConverter_WFDeflectionRestrictedFace::Add
    const Handle(BRepAdaptor_HSurface)&        aFace,
    const Handle (VrmlConverter_Drawer)&       aDrawer){
 
-  Quantity_Length Deflection = GetDeflection(aFace, aDrawer);
+  Standard_Real Deflection = GetDeflection(aFace, aDrawer);
 
   Standard_Integer finu = aDrawer->UIsoAspect()->Number();
   Standard_Integer finv = aDrawer->VIsoAspect()->Number();
@@ -344,7 +344,7 @@ void VrmlConverter_WFDeflectionRestrictedFace::AddUIso
    const Handle(BRepAdaptor_HSurface)& aFace,
    const Handle (VrmlConverter_Drawer)& aDrawer) {
 
-  Quantity_Length Deflection = GetDeflection(aFace, aDrawer);
+  Standard_Real Deflection = GetDeflection(aFace, aDrawer);
 
   Standard_Integer finu = aDrawer->UIsoAspect()->Number();
   Standard_Integer finv = aDrawer->VIsoAspect()->Number();
@@ -369,7 +369,7 @@ void VrmlConverter_WFDeflectionRestrictedFace::AddVIso
    const Handle(BRepAdaptor_HSurface)& aFace,
    const Handle (VrmlConverter_Drawer)& aDrawer) {
 
-  Quantity_Length Deflection = GetDeflection(aFace, aDrawer);
+  Standard_Real Deflection = GetDeflection(aFace, aDrawer);
 
   Standard_Integer finu = aDrawer->UIsoAspect()->Number();
   Standard_Integer finv = aDrawer->VIsoAspect()->Number();
index 8ddb12daeece24a663c2937d9221cdbdba84ac03..7fe121994b8fa21366f74ed8699a8fd764aea496 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <Standard_OStream.hxx>
 #include <Standard_Boolean.hxx>
-#include <Quantity_Length.hxx>
 #include <Standard_Integer.hxx>
 class BRepAdaptor_HSurface;
 class VrmlConverter_Drawer;
@@ -52,29 +51,8 @@ public:
   
   Standard_EXPORT static void AddVIso (Standard_OStream& anOStream, const Handle(BRepAdaptor_HSurface)& aFace, const Handle(VrmlConverter_Drawer)& aDrawer);
   
-  Standard_EXPORT static void Add (Standard_OStream& anOStream, const Handle(BRepAdaptor_HSurface)& aFace, const Standard_Boolean DrawUIso, const Standard_Boolean DrawVIso, const Quantity_Length Deflection, const Standard_Integer NBUiso, const Standard_Integer NBViso, const Handle(VrmlConverter_Drawer)& aDrawer);
-
-
-
-
-protected:
-
-
-
-
-
-private:
-
-
-
-
+  Standard_EXPORT static void Add (Standard_OStream& anOStream, const Handle(BRepAdaptor_HSurface)& aFace, const Standard_Boolean DrawUIso, const Standard_Boolean DrawVIso, const Standard_Real Deflection, const Standard_Integer NBUiso, const Standard_Integer NBViso, const Handle(VrmlConverter_Drawer)& aDrawer);
 
 };
 
-
-
-
-
-
-
 #endif // _VrmlConverter_WFDeflectionRestrictedFace_HeaderFile