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:
@@ -16,20 +16,20 @@
|
||||
|
||||
#define OPTIMISATION 1
|
||||
|
||||
#include <Adaptor3d_HCurve.hxx>
|
||||
#include <IntCurvesFace_Intersector.hxx>
|
||||
|
||||
#include <Adaptor3d_Curve.hxx>
|
||||
#include <Adaptor3d_HSurfaceTool.hxx>
|
||||
#include <Bnd_BoundSortBox.hxx>
|
||||
#include <Bnd_Box.hxx>
|
||||
#include <BRepAdaptor_HSurface.hxx>
|
||||
#include <BRepAdaptor_Surface.hxx>
|
||||
#include <BRepClass_FaceClassifier.hxx>
|
||||
#include <BRepTopAdaptor_TopolTool.hxx>
|
||||
#include <Geom_Line.hxx>
|
||||
#include <GeomAdaptor_Curve.hxx>
|
||||
#include <GeomAdaptor_HCurve.hxx>
|
||||
#include <gp_Lin.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <IntCurvesFace_Intersector.hxx>
|
||||
#include <IntCurveSurface_HInter.hxx>
|
||||
#include <IntCurveSurface_IntersectionPoint.hxx>
|
||||
#include <IntCurveSurface_SequenceOfPnt.hxx>
|
||||
@@ -44,7 +44,7 @@
|
||||
#include <TopoDS.hxx>
|
||||
#include <GeomAPI_ProjectPointOnCurve.hxx>
|
||||
//
|
||||
static void ComputeSamplePars(const Handle(Adaptor3d_HSurface)& Hsurface,
|
||||
static void ComputeSamplePars(const Handle(Adaptor3d_Surface)& Hsurface,
|
||||
const Standard_Integer nbsu,
|
||||
const Standard_Integer nbsv,
|
||||
Handle(TColStd_HArray1OfReal)& UPars,
|
||||
@@ -142,7 +142,7 @@ IntCurvesFace_Intersector::IntCurvesFace_Intersector(const TopoDS_Face& Face,
|
||||
BRepAdaptor_Surface surface;
|
||||
face = Face;
|
||||
surface.Initialize(Face, aRestr);
|
||||
Hsurface = new BRepAdaptor_HSurface(surface);
|
||||
Hsurface = new BRepAdaptor_Surface(surface);
|
||||
myTopolTool = new BRepTopAdaptor_TopolTool(Hsurface);
|
||||
|
||||
GeomAbs_SurfaceType SurfaceType = Adaptor3d_HSurfaceTool::GetType(Hsurface);
|
||||
@@ -356,7 +356,7 @@ void IntCurvesFace_Intersector::Perform(const gp_Lin& L,
|
||||
IntCurveSurface_HInter HICS;
|
||||
Handle(Geom_Line) geomline = new Geom_Line(L);
|
||||
GeomAdaptor_Curve LL(geomline);
|
||||
Handle(GeomAdaptor_HCurve) HLL = new GeomAdaptor_HCurve(LL);
|
||||
Handle(GeomAdaptor_Curve) HLL = new GeomAdaptor_Curve(LL);
|
||||
Standard_Real parinf=ParMin;
|
||||
Standard_Real parsup=ParMax;
|
||||
//
|
||||
@@ -422,7 +422,7 @@ void IntCurvesFace_Intersector::Perform(const gp_Lin& L,
|
||||
//function : Perform
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void IntCurvesFace_Intersector::Perform(const Handle(Adaptor3d_HCurve)& HCu,
|
||||
void IntCurvesFace_Intersector::Perform(const Handle(Adaptor3d_Curve)& HCu,
|
||||
const Standard_Real ParMin,
|
||||
const Standard_Real ParMax)
|
||||
{
|
||||
|
@@ -17,32 +17,23 @@
|
||||
#ifndef _IntCurvesFace_Intersector_HeaderFile
|
||||
#define _IntCurvesFace_Intersector_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Real.hxx>
|
||||
#include <Adaptor3d_Curve.hxx>
|
||||
#include <BRepAdaptor_Surface.hxx>
|
||||
#include <IntCurveSurface_SequenceOfPnt.hxx>
|
||||
#include <TColStd_SequenceOfInteger.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <TopoDS_Face.hxx>
|
||||
#include <Standard_Address.hxx>
|
||||
#include <GeomAbs_SurfaceType.hxx>
|
||||
#include <IntCurveSurface_TransitionOnCurve.hxx>
|
||||
#include <TopAbs_State.hxx>
|
||||
|
||||
class BRepTopAdaptor_TopolTool;
|
||||
class BRepAdaptor_HSurface;
|
||||
class TopoDS_Face;
|
||||
class gp_Lin;
|
||||
class Adaptor3d_HCurve;
|
||||
class gp_Pnt;
|
||||
class IntCurveSurface_HInter;
|
||||
class gp_Pnt2d;
|
||||
class Bnd_Box;
|
||||
|
||||
|
||||
|
||||
class IntCurvesFace_Intersector
|
||||
{
|
||||
public:
|
||||
@@ -78,7 +69,7 @@ public:
|
||||
|
||||
//! same method for a HCurve from Adaptor3d.
|
||||
//! PInf an PSup can also be - and + INF.
|
||||
Standard_EXPORT void Perform (const Handle(Adaptor3d_HCurve)& HCu, const Standard_Real PInf, const Standard_Real PSup);
|
||||
Standard_EXPORT void Perform (const Handle(Adaptor3d_Curve)& HCu, const Standard_Real PInf, const Standard_Real PSup);
|
||||
|
||||
//! Return the surface type
|
||||
Standard_EXPORT GeomAbs_SurfaceType SurfaceType() const;
|
||||
@@ -155,7 +146,7 @@ private:
|
||||
|
||||
|
||||
Handle(BRepTopAdaptor_TopolTool) myTopolTool;
|
||||
Handle(BRepAdaptor_HSurface) Hsurface;
|
||||
Handle(BRepAdaptor_Surface) Hsurface;
|
||||
Standard_Real Tol;
|
||||
IntCurveSurface_SequenceOfPnt SeqPnt;
|
||||
TColStd_SequenceOfInteger mySeqState;
|
||||
|
@@ -14,15 +14,15 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IntCurvesFace_ShapeIntersector.hxx>
|
||||
|
||||
#include <Adaptor3d_HCurve.hxx>
|
||||
#include <Adaptor3d_Curve.hxx>
|
||||
#include <Bnd_BoundSortBox.hxx>
|
||||
#include <Bnd_HArray1OfBox.hxx>
|
||||
#include <ElCLib.hxx>
|
||||
#include <gp_Lin.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <IntCurvesFace_Intersector.hxx>
|
||||
#include <IntCurvesFace_ShapeIntersector.hxx>
|
||||
#include <TColStd_ListIteratorOfListOfInteger.hxx>
|
||||
#include <TColStd_ListOfInteger.hxx>
|
||||
#include <TopExp_Explorer.hxx>
|
||||
@@ -159,7 +159,7 @@ void IntCurvesFace_ShapeIntersector::PerformNearest(const gp_Lin& L,
|
||||
SortResult();
|
||||
}
|
||||
//-- ================================================================================
|
||||
void IntCurvesFace_ShapeIntersector::Perform(const Handle(Adaptor3d_HCurve)& HCu,
|
||||
void IntCurvesFace_ShapeIntersector::Perform(const Handle(Adaptor3d_Curve)& HCu,
|
||||
const Standard_Real ParMin,
|
||||
const Standard_Real ParMax) {
|
||||
done = Standard_False;
|
||||
|
@@ -30,14 +30,13 @@
|
||||
#include <Standard_Real.hxx>
|
||||
#include <IntCurveSurface_TransitionOnCurve.hxx>
|
||||
#include <TopAbs_State.hxx>
|
||||
|
||||
class Adaptor3d_Curve;
|
||||
class TopoDS_Shape;
|
||||
class gp_Lin;
|
||||
class Adaptor3d_HCurve;
|
||||
class gp_Pnt;
|
||||
class TopoDS_Face;
|
||||
|
||||
|
||||
|
||||
class IntCurvesFace_ShapeIntersector
|
||||
{
|
||||
public:
|
||||
@@ -71,7 +70,7 @@ public:
|
||||
|
||||
//! same method for a HCurve from Adaptor3d.
|
||||
//! PInf an PSup can also be - and + INF.
|
||||
Standard_EXPORT void Perform (const Handle(Adaptor3d_HCurve)& HCu, const Standard_Real PInf, const Standard_Real PSup);
|
||||
Standard_EXPORT void Perform (const Handle(Adaptor3d_Curve)& HCu, const Standard_Real PInf, const Standard_Real PSup);
|
||||
|
||||
//! True is returned when the intersection have been computed.
|
||||
Standard_Boolean IsDone() const;
|
||||
|
Reference in New Issue
Block a user