mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +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:
@@ -15,7 +15,7 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Adaptor3d_HCurve.hxx>
|
||||
#include <Adaptor3d_Curve.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <BRepAdaptor_Curve.hxx>
|
||||
#include <BRepAdaptor_Surface.hxx>
|
||||
@@ -35,7 +35,7 @@
|
||||
#include <Draw_Drawable3D.hxx>
|
||||
#include <Geom_BSplineCurve.hxx>
|
||||
#include <Geom_BSplineSurface.hxx>
|
||||
#include <GeomAdaptor_HSurface.hxx>
|
||||
#include <GeomAdaptor_Surface.hxx>
|
||||
#include <GeomAdaptor_Surface.hxx>
|
||||
#include <gp_Lin2d.hxx>
|
||||
#include <gp_Trsf.hxx>
|
||||
@@ -666,7 +666,7 @@ void DBRep_DrawableShape::DrawOn(Draw_Display& dis) const
|
||||
l = f + mySize;
|
||||
}
|
||||
|
||||
Handle(Adaptor3d_HCurve) HC = C.Trim(f, l, Precision::Confusion());
|
||||
Handle(Adaptor3d_Curve) HC = C.Trim(f, l, Precision::Confusion());
|
||||
GeomAbs_CurveType CurvType = HC->GetType();
|
||||
|
||||
Standard_Integer intrv, nbintv = HC->NbIntervals(GeomAbs_CN);
|
||||
@@ -706,7 +706,7 @@ void DBRep_DrawableShape::DrawOn(Draw_Display& dis) const
|
||||
for (j = 1; j <= myDiscret/2; j++) {
|
||||
Handle(DBRep_Edge) aLocaLEdge(E);
|
||||
PlotCount = 0;
|
||||
PlotEdge (dis, aLocaLEdge , HC->Curve(), t, step*2., halt);
|
||||
PlotEdge (dis, aLocaLEdge, *HC, t, step*2., halt);
|
||||
t += step*2.;
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user