]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
RNV: Remove deprecated code.
authormnt <mnt@opencascade.com>
Thu, 6 Jul 2017 13:28:26 +0000 (16:28 +0300)
committermnt <mnt@opencascade.com>
Thu, 6 Jul 2017 13:28:26 +0000 (16:28 +0300)
src/CurveCreator/CurveCreator_Utils.cxx
src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx
src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx
src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx

index 5f53caea4b9b76b1c622ec05d4b18bc85669d24f..53f68259f6f769f42b172749abdb8148dd5fdc63 100644 (file)
@@ -146,7 +146,7 @@ gp_Pnt CurveCreator_Utils::ConvertClickToPoint( int x, int y, Handle(V3d_View) a
   // we need the projection to the XOY plane
   // 1. find a point in the plane of the eye and the normal to the plane
   Standard_Real X, Y, Z;
-  Quantity_Parameter Vx, Vy, Vz;
+  Standard_Real Vx, Vy, Vz;
   aView->ConvertWithProj( x, y, X, Y, Z, Vx, Vy, Vz );
 
   // 2. build a ray from the point by the normal to the XOY plane and intersect it
index dd3318aac518bad0c98814d385db7af2e05ca565..170878a03b859a45e7ad26f6fda4175799bca89d 100644 (file)
@@ -2029,7 +2029,7 @@ GEOMImpl_IMeasureOperations::AreCoordsInside(Handle(GEOM_Object)        theShape
                    project.NbPoints() > 0 &&
                    project.LowerDistance() <= tolerance )
               {
-                Quantity_Parameter u, v;
+                Standard_Real u, v;
                 project.LowerDistanceParameters(u, v);
                 gp_Pnt2d uv( u, v );
                 BRepClass_FaceClassifier FC ( face, uv, tolerance );
index 57d8422425912ad1194b4a15c270a8fcf92bee0f..c9cde5f0f6441b0d0b34323412c2744d5975a17e 100644 (file)
@@ -160,7 +160,7 @@ Standard_Integer GEOMImpl_ProjectionDriver::Execute(LOGBOOK& log) const
         Standard_ConstructionError::Raise("No solution found");
       }
 
-      Quantity_Parameter U, V;
+      Standard_Real U, V;
       proj.LowerDistanceParameters(U, V);
       gp_Pnt2d aProjPnt (U, V);
 
@@ -170,7 +170,7 @@ Standard_Integer GEOMImpl_ProjectionDriver::Execute(LOGBOOK& log) const
         bool isSol = false;
         double minDist = RealLast();
         for (int i = 1; i <= nbPoints; i++) {
-          Quantity_Parameter Ui, Vi;
+          Standard_Real Ui, Vi;
           proj.Parameters(i, Ui, Vi);
           aProjPnt = gp_Pnt2d(Ui, Vi);
           aClsf.Perform(aFace, aProjPnt, tol);
index a3587cf0de753bd7626f5e3d7a8acd69d93156b5..06d3cba253623381b7e5b64c4be557bb59d761af 100644 (file)
 #include <TColgp_SequenceOfDir.hxx>
 #include <V3d_View.hxx>
 
-#if OCC_VERSION_LARGE >= 0x07010000
-#include <Quantity_Parameter.hxx>
-#endif
-
-
 // plane associated with custom data
 struct PlaneAndSegment
 {
@@ -1151,8 +1146,8 @@ template <typename TPlane>
 TPlane MeasureGUI_DimensionCreateTool::SelectPlaneForProjection( const NCollection_Sequence<TPlane>& thePlanes,
                                                                  const Handle(V3d_View)& theView ) const
 {
-  Quantity_Parameter U[3];
-  Quantity_Parameter N[3];
+  Standard_Real U[3];
+  Standard_Real N[3];
   theView->Up( U[0], U[1], U[2] );
   theView->Proj( N[0], N[1], N[2] );