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

0028966: Coding Rules - remove Adaptor2d_HCurve2d, Adaptor3d_HCurve and Adaptor3d_HSurface classes

Adaptor2d_Curve2d, Adaptor3d_Curve and Adaptor3d_Surface now inherit Standard_Transient.
Interfaces Adaptor2d_HCurve2d, Adaptor3d_HCurve, Adaptor3d_HSurface and their subclasses
are now aliases to Adaptor2d_Curve2d, Adaptor3d_Curve and Adaptor3d_Surface.
Removed numerous unsafe reinterpret casts.

Generic classes Adaptor3d_GenHCurve, Adaptor3d_GenHSurface, Adaptor2d_GenHCurve2d have been removed.
Several redundant .lxx files have been merged into .hxx.

Removed obsolete adaptor classes with H suffix.
This commit is contained in:
kgv
2020-12-03 17:36:19 +03:00
committed by bugmaster
parent 266877a7c3
commit c22b52d60e
710 changed files with 6144 additions and 14175 deletions

View File

@@ -34,8 +34,8 @@
#include <TopLoc_Location.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Shape.hxx>
#include <Adaptor3d_HCurve.hxx>
#include <Adaptor3d_HSurface.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <BRepTools.hxx>
#include <Geom_BSplineSurface.hxx>
#include <Geom_BezierSurface.hxx>
@@ -402,7 +402,7 @@ Standard_Boolean CanUseEdges(const Adaptor3d_Surface& BS)
}
else if(aST == GeomAbs_SurfaceOfRevolution)
{
const Handle(Adaptor3d_HCurve)& aBC = BS.BasisCurve();
const Handle(Adaptor3d_Curve)& aBC = BS.BasisCurve();
if(aBC->GetType() == GeomAbs_Line)
{
return Standard_True;
@@ -414,8 +414,8 @@ Standard_Boolean CanUseEdges(const Adaptor3d_Surface& BS)
}
else if(aST == GeomAbs_OffsetSurface)
{
const Handle(Adaptor3d_HSurface)& aS = BS.BasisSurface();
return CanUseEdges(aS->Surface());
const Handle(Adaptor3d_Surface)& aS = BS.BasisSurface();
return CanUseEdges (*aS);
}
else if(aST == GeomAbs_BSplineSurface)
{

View File

@@ -11,9 +11,9 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <Adaptor3d_HCurve.hxx>
#include <Adaptor3d_HSurface.hxx>
#include <GeomAdaptor_HCurve.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <GeomAdaptor_Curve.hxx>
#include <BRepBndLib.hxx>
#include <GProp_GProps.hxx>
#include <TopoDS_Shape.hxx>
@@ -33,7 +33,7 @@
#include <Geom_Line.hxx>
#include <TColStd_Array1OfInteger.hxx>
#include <BRepAdaptor_Curve.hxx>
#include <BRepAdaptor_HSurface.hxx>
#include <BRepAdaptor_Surface.hxx>
#include <Geom_OffsetCurve.hxx>
#include <Geom_BSplineCurve.hxx>
@@ -80,12 +80,12 @@ static Standard_Boolean IsPlanar(const Adaptor3d_Surface& theS)
const GeomAbs_SurfaceType aST = theS.GetType();
if(aST == GeomAbs_OffsetSurface)
{
return IsPlanar(theS.BasisSurface()->Surface());
return IsPlanar (*theS.BasisSurface());
}
if(aST == GeomAbs_SurfaceOfExtrusion)
{
return IsLinear(theS.BasisCurve()->Curve());
return IsLinear (*theS.BasisCurve());
}
if((aST == GeomAbs_BSplineSurface) || (aST == GeomAbs_BezierSurface))