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:
@@ -21,7 +21,7 @@
|
||||
#include <DrawTrSurf_BSplineCurve.hxx>
|
||||
#include <DrawTrSurf_BSplineSurface.hxx>
|
||||
#include <Geom_BSplineSurface.hxx>
|
||||
#include <GeomAdaptor_HSurface.hxx>
|
||||
#include <GeomAdaptor_Surface.hxx>
|
||||
#include <GeomAdaptor_Surface.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
@@ -124,8 +124,8 @@ void DrawTrSurf_BSplineSurface::DrawOn (Draw_Display& dis) const {
|
||||
|
||||
if (knotsIsos) {
|
||||
Standard_Integer first, last;
|
||||
Handle(GeomAdaptor_HSurface) HS = new GeomAdaptor_HSurface();
|
||||
HS->ChangeSurface().Load(surf);
|
||||
Handle(GeomAdaptor_Surface) HS = new GeomAdaptor_Surface();
|
||||
HS->Load(surf);
|
||||
|
||||
Adaptor3d_IsoCurve C(HS);
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
#include <Draw_Drawable3D.hxx>
|
||||
#include <DrawTrSurf_Surface.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <GeomAdaptor_HSurface.hxx>
|
||||
#include <GeomAdaptor_Surface.hxx>
|
||||
#include <GeomTools_SurfaceSet.hxx>
|
||||
#include <Precision.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
@@ -170,8 +170,8 @@ void DrawTrSurf_Surface::DrawOn (Draw_Display& dis,
|
||||
}
|
||||
|
||||
|
||||
Handle(GeomAdaptor_HSurface) HS = new GeomAdaptor_HSurface();
|
||||
HS->ChangeSurface().Load(surf,UFirst,ULast,VFirst,VLast);
|
||||
Handle(GeomAdaptor_Surface) HS = new GeomAdaptor_Surface();
|
||||
HS->Load(surf,UFirst,ULast,VFirst,VLast);
|
||||
|
||||
Adaptor3d_IsoCurve C(HS);
|
||||
|
||||
|
Reference in New Issue
Block a user