1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

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

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

View File

@@ -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

View 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