mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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,8 +15,8 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Adaptor3d_HSurface.hxx>
|
||||
#include <BRepAdaptor_HSurface.hxx>
|
||||
#include <Adaptor3d_Surface.hxx>
|
||||
#include <BRepAdaptor_Surface.hxx>
|
||||
#include <ChFiDS_ChamfSpine.hxx>
|
||||
#include <ChFiDS_FilSpine.hxx>
|
||||
#include <ChFiDS_Spine.hxx>
|
||||
@@ -84,7 +84,7 @@
|
||||
#include <TopOpeBRepDS_Surface.hxx>
|
||||
|
||||
//#include <BRepAdaptor_Curve2d.hxx>
|
||||
//#include <BRepAdaptor_HCurve2d.hxx>
|
||||
//#include <BRepAdaptor_Curve2d.hxx>
|
||||
//=======================================================================
|
||||
//function : Compute
|
||||
//purpose :
|
||||
@@ -92,8 +92,8 @@
|
||||
Standard_Boolean ChFiKPart_ComputeData::Compute
|
||||
(TopOpeBRepDS_DataStructure& DStr,
|
||||
Handle(ChFiDS_SurfData)& Data,
|
||||
const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HSurface)& S2,
|
||||
const Handle(Adaptor3d_Surface)& S1,
|
||||
const Handle(Adaptor3d_Surface)& S2,
|
||||
const TopAbs_Orientation Or1,
|
||||
const TopAbs_Orientation Or2,
|
||||
const Handle(ChFiDS_Spine)& Sp,
|
||||
@@ -115,10 +115,10 @@
|
||||
|
||||
// Return orientations.
|
||||
TopAbs_Orientation OrFace1 = TopAbs_FORWARD, OrFace2 = TopAbs_FORWARD;
|
||||
Handle(BRepAdaptor_HSurface) HS = Handle(BRepAdaptor_HSurface)::DownCast(S1);
|
||||
if (!HS.IsNull()) OrFace1 = HS->ChangeSurface().Face().Orientation();
|
||||
HS = Handle(BRepAdaptor_HSurface)::DownCast(S2);
|
||||
if (!HS.IsNull()) OrFace2 = HS->ChangeSurface().Face().Orientation();
|
||||
Handle(BRepAdaptor_Surface) HS = Handle(BRepAdaptor_Surface)::DownCast(S1);
|
||||
if (!HS.IsNull()) OrFace1 = HS->Face().Orientation();
|
||||
HS = Handle(BRepAdaptor_Surface)::DownCast(S2);
|
||||
if (!HS.IsNull()) OrFace2 = HS->Face().Orientation();
|
||||
|
||||
if(!Spine.IsNull()){
|
||||
Standard_Real Radius = Spine->Radius(Iedge);
|
||||
@@ -343,8 +343,8 @@
|
||||
Standard_Boolean ChFiKPart_ComputeData::ComputeCorner
|
||||
(TopOpeBRepDS_DataStructure& DStr,
|
||||
const Handle(ChFiDS_SurfData)& Data,
|
||||
const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HSurface)& S2,
|
||||
const Handle(Adaptor3d_Surface)& S1,
|
||||
const Handle(Adaptor3d_Surface)& S2,
|
||||
const TopAbs_Orientation OrFace1,
|
||||
const TopAbs_Orientation,
|
||||
const TopAbs_Orientation Or1,
|
||||
@@ -408,8 +408,8 @@ Standard_Boolean ChFiKPart_ComputeData::ComputeCorner
|
||||
Standard_Boolean ChFiKPart_ComputeData::ComputeCorner
|
||||
(TopOpeBRepDS_DataStructure& DStr,
|
||||
const Handle(ChFiDS_SurfData)& Data,
|
||||
const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HSurface)& S2,
|
||||
const Handle(Adaptor3d_Surface)& S1,
|
||||
const Handle(Adaptor3d_Surface)& S2,
|
||||
const TopAbs_Orientation OrFace1,
|
||||
const TopAbs_Orientation OrFace2,
|
||||
const TopAbs_Orientation Or1,
|
||||
@@ -430,9 +430,9 @@ Standard_Boolean ChFiKPart_ComputeData::ComputeCorner
|
||||
Standard_Boolean ChFiKPart_ComputeData::ComputeCorner
|
||||
(TopOpeBRepDS_DataStructure& DStr,
|
||||
const Handle(ChFiDS_SurfData)& Data,
|
||||
const Handle(Adaptor3d_HSurface)& S,
|
||||
const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HSurface)& S2,
|
||||
const Handle(Adaptor3d_Surface)& S,
|
||||
const Handle(Adaptor3d_Surface)& S1,
|
||||
const Handle(Adaptor3d_Surface)& S2,
|
||||
const TopAbs_Orientation OfS,
|
||||
const TopAbs_Orientation OS,
|
||||
const TopAbs_Orientation OS1,
|
||||
|
@@ -17,17 +17,11 @@
|
||||
#ifndef _ChFiKPart_ComputeData_HeaderFile
|
||||
#define _ChFiKPart_ComputeData_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Adaptor3d_Surface.hxx>
|
||||
#include <TopAbs_Orientation.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
|
||||
class TopOpeBRepDS_DataStructure;
|
||||
class ChFiDS_SurfData;
|
||||
class Adaptor3d_HSurface;
|
||||
class ChFiDS_Spine;
|
||||
class gp_Pnt2d;
|
||||
|
||||
@@ -49,16 +43,16 @@ public:
|
||||
|
||||
//! Computes a simple fillet in several particular
|
||||
//! cases.
|
||||
Standard_EXPORT static Standard_Boolean Compute (TopOpeBRepDS_DataStructure& DStr, Handle(ChFiDS_SurfData)& Data, const Handle(Adaptor3d_HSurface)& S1, const Handle(Adaptor3d_HSurface)& S2, const TopAbs_Orientation Or1, const TopAbs_Orientation Or2, const Handle(ChFiDS_Spine)& Sp, const Standard_Integer Iedge);
|
||||
Standard_EXPORT static Standard_Boolean Compute (TopOpeBRepDS_DataStructure& DStr, Handle(ChFiDS_SurfData)& Data, const Handle(Adaptor3d_Surface)& S1, const Handle(Adaptor3d_Surface)& S2, const TopAbs_Orientation Or1, const TopAbs_Orientation Or2, const Handle(ChFiDS_Spine)& Sp, const Standard_Integer Iedge);
|
||||
|
||||
//! Computes a toric or spheric corner fillet.
|
||||
Standard_EXPORT static Standard_Boolean ComputeCorner (TopOpeBRepDS_DataStructure& DStr, const Handle(ChFiDS_SurfData)& Data, const Handle(Adaptor3d_HSurface)& S1, const Handle(Adaptor3d_HSurface)& S2, const TopAbs_Orientation OrFace1, const TopAbs_Orientation OrFace2, const TopAbs_Orientation Or1, const TopAbs_Orientation Or2, const Standard_Real minRad, const Standard_Real majRad, const gp_Pnt2d& P1S1, const gp_Pnt2d& P2S1, const gp_Pnt2d& P1S2, const gp_Pnt2d& P2S2);
|
||||
Standard_EXPORT static Standard_Boolean ComputeCorner (TopOpeBRepDS_DataStructure& DStr, const Handle(ChFiDS_SurfData)& Data, const Handle(Adaptor3d_Surface)& S1, const Handle(Adaptor3d_Surface)& S2, const TopAbs_Orientation OrFace1, const TopAbs_Orientation OrFace2, const TopAbs_Orientation Or1, const TopAbs_Orientation Or2, const Standard_Real minRad, const Standard_Real majRad, const gp_Pnt2d& P1S1, const gp_Pnt2d& P2S1, const gp_Pnt2d& P1S2, const gp_Pnt2d& P2S2);
|
||||
|
||||
//! Computes spheric corner fillet with non iso pcurve on S2.
|
||||
Standard_EXPORT static Standard_Boolean ComputeCorner (TopOpeBRepDS_DataStructure& DStr, const Handle(ChFiDS_SurfData)& Data, const Handle(Adaptor3d_HSurface)& S1, const Handle(Adaptor3d_HSurface)& S2, const TopAbs_Orientation OrFace1, const TopAbs_Orientation OrFace2, const TopAbs_Orientation Or1, const TopAbs_Orientation Or2, const Standard_Real Rad, const gp_Pnt2d& PS1, const gp_Pnt2d& P1S2, const gp_Pnt2d& P2S2);
|
||||
Standard_EXPORT static Standard_Boolean ComputeCorner (TopOpeBRepDS_DataStructure& DStr, const Handle(ChFiDS_SurfData)& Data, const Handle(Adaptor3d_Surface)& S1, const Handle(Adaptor3d_Surface)& S2, const TopAbs_Orientation OrFace1, const TopAbs_Orientation OrFace2, const TopAbs_Orientation Or1, const TopAbs_Orientation Or2, const Standard_Real Rad, const gp_Pnt2d& PS1, const gp_Pnt2d& P1S2, const gp_Pnt2d& P2S2);
|
||||
|
||||
//! Computes a toric corner rotule.
|
||||
Standard_EXPORT static Standard_Boolean ComputeCorner (TopOpeBRepDS_DataStructure& DStr, const Handle(ChFiDS_SurfData)& Data, const Handle(Adaptor3d_HSurface)& S, const Handle(Adaptor3d_HSurface)& S1, const Handle(Adaptor3d_HSurface)& S2, const TopAbs_Orientation OfS, const TopAbs_Orientation OS, const TopAbs_Orientation OS1, const TopAbs_Orientation OS2, const Standard_Real Radius);
|
||||
Standard_EXPORT static Standard_Boolean ComputeCorner (TopOpeBRepDS_DataStructure& DStr, const Handle(ChFiDS_SurfData)& Data, const Handle(Adaptor3d_Surface)& S, const Handle(Adaptor3d_Surface)& S1, const Handle(Adaptor3d_Surface)& S2, const TopAbs_Orientation OfS, const TopAbs_Orientation OS, const TopAbs_Orientation OS1, const TopAbs_Orientation OS2, const Standard_Real Radius);
|
||||
|
||||
|
||||
|
||||
|
@@ -22,8 +22,8 @@
|
||||
#include <ElCLib.hxx>
|
||||
|
||||
|
||||
void ChFiKPart_CornerSpine(const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HSurface)& S2,
|
||||
void ChFiKPart_CornerSpine(const Handle(Adaptor3d_Surface)& S1,
|
||||
const Handle(Adaptor3d_Surface)& S2,
|
||||
const gp_Pnt2d& P1S1,
|
||||
const gp_Pnt2d& /*P2S1*/,
|
||||
const gp_Pnt2d& P1S2,
|
||||
|
@@ -14,7 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <Adaptor3d_HSurface.hxx>
|
||||
#include <Adaptor3d_Surface.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <gp_Cylinder.hxx>
|
||||
#include <gp_Circ.hxx>
|
||||
@@ -23,8 +23,8 @@
|
||||
#define ChFiKPart_ComputeData_CS_HeaderFile
|
||||
|
||||
|
||||
void ChFiKPart_CornerSpine(const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HSurface)& S2,
|
||||
void ChFiKPart_CornerSpine(const Handle(Adaptor3d_Surface)& S1,
|
||||
const Handle(Adaptor3d_Surface)& S2,
|
||||
const gp_Pnt2d& P1S1,
|
||||
const gp_Pnt2d& P2S1,
|
||||
const gp_Pnt2d& P1S2,
|
||||
|
@@ -15,7 +15,7 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Adaptor3d_HSurface.hxx>
|
||||
#include <Adaptor3d_Surface.hxx>
|
||||
#include <ChFiDS_Spine.hxx>
|
||||
#include <ChFiDS_SurfData.hxx>
|
||||
#include <ChFiKPart_ComputeData.hxx>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Adaptor3d_HSurface.hxx>
|
||||
#include <Adaptor3d_Surface.hxx>
|
||||
#include <ChFiDS_Spine.hxx>
|
||||
#include <ChFiDS_SurfData.hxx>
|
||||
#include <ChFiKPart_ComputeData.hxx>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Adaptor3d_HSurface.hxx>
|
||||
#include <Adaptor3d_Surface.hxx>
|
||||
#include <ChFiDS_Spine.hxx>
|
||||
#include <ChFiDS_SurfData.hxx>
|
||||
#include <ChFiKPart_ComputeData.hxx>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Adaptor3d_HSurface.hxx>
|
||||
#include <Adaptor3d_Surface.hxx>
|
||||
#include <ChFiDS_Spine.hxx>
|
||||
#include <ChFiDS_SurfData.hxx>
|
||||
#include <ChFiKPart_ComputeData.hxx>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Adaptor3d_HSurface.hxx>
|
||||
#include <Adaptor3d_Surface.hxx>
|
||||
#include <ChFiDS_Spine.hxx>
|
||||
#include <ChFiDS_SurfData.hxx>
|
||||
#include <ChFiKPart_ComputeData.hxx>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Adaptor3d_HSurface.hxx>
|
||||
#include <Adaptor3d_Surface.hxx>
|
||||
#include <ChFiDS_Spine.hxx>
|
||||
#include <ChFiDS_SurfData.hxx>
|
||||
#include <ChFiKPart_ComputeData.hxx>
|
||||
|
@@ -29,8 +29,8 @@
|
||||
|
||||
#include <Standard_NotImplemented.hxx>
|
||||
|
||||
#include <GeomAdaptor_HCurve.hxx>
|
||||
#include <GeomAdaptor_HSurface.hxx>
|
||||
#include <GeomAdaptor_Curve.hxx>
|
||||
#include <GeomAdaptor_Surface.hxx>
|
||||
|
||||
|
||||
|
||||
@@ -88,8 +88,8 @@ void ChFiKPart_ProjPC(const GeomAdaptor_Curve& Cg,
|
||||
Handle(Geom2d_Curve)& Pcurv)
|
||||
{
|
||||
if (Sg.GetType() < GeomAbs_BezierSurface) {
|
||||
Handle(GeomAdaptor_HCurve) HCg = new GeomAdaptor_HCurve(Cg);
|
||||
Handle(GeomAdaptor_HSurface) HSg = new GeomAdaptor_HSurface(Sg);
|
||||
Handle(GeomAdaptor_Curve) HCg = new GeomAdaptor_Curve(Cg);
|
||||
Handle(GeomAdaptor_Surface) HSg = new GeomAdaptor_Surface(Sg);
|
||||
ProjLib_ProjectedCurve Projc (HSg,HCg);
|
||||
switch (Projc.GetType()) {
|
||||
case GeomAbs_Line :
|
||||
|
@@ -15,7 +15,7 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Adaptor3d_HSurface.hxx>
|
||||
#include <Adaptor3d_Surface.hxx>
|
||||
#include <ChFiDS_Spine.hxx>
|
||||
#include <ChFiDS_SurfData.hxx>
|
||||
#include <ChFiKPart_ComputeData.hxx>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Adaptor3d_HSurface.hxx>
|
||||
#include <Adaptor3d_Surface.hxx>
|
||||
#include <ChFiDS_Spine.hxx>
|
||||
#include <ChFiDS_SurfData.hxx>
|
||||
#include <ChFiKPart_ComputeData.hxx>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Adaptor3d_HSurface.hxx>
|
||||
#include <Adaptor3d_Surface.hxx>
|
||||
#include <ChFiDS_Spine.hxx>
|
||||
#include <ChFiDS_SurfData.hxx>
|
||||
#include <ChFiKPart_ComputeData.hxx>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Adaptor3d_HSurface.hxx>
|
||||
#include <Adaptor3d_Surface.hxx>
|
||||
#include <ChFiDS_Spine.hxx>
|
||||
#include <ChFiDS_SurfData.hxx>
|
||||
#include <ChFiKPart_ComputeData.hxx>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <Adaptor3d_HSurface.hxx>
|
||||
#include <Adaptor3d_Surface.hxx>
|
||||
#include <ChFiDS_Spine.hxx>
|
||||
#include <ChFiDS_SurfData.hxx>
|
||||
#include <ChFiKPart_ComputeData.hxx>
|
||||
@@ -47,8 +47,8 @@
|
||||
//=======================================================================
|
||||
Standard_Boolean ChFiKPart_Sphere(TopOpeBRepDS_DataStructure& DStr,
|
||||
const Handle(ChFiDS_SurfData)& Data,
|
||||
const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HSurface)& S2,
|
||||
const Handle(Adaptor3d_Surface)& S1,
|
||||
const Handle(Adaptor3d_Surface)& S2,
|
||||
const TopAbs_Orientation OrFace1,
|
||||
const TopAbs_Orientation /*OrFace2*/,
|
||||
const TopAbs_Orientation Or1,
|
||||
|
@@ -20,8 +20,8 @@
|
||||
Standard_Boolean ChFiKPart_Sphere
|
||||
(TopOpeBRepDS_DataStructure& DStr,
|
||||
const Handle(ChFiDS_SurfData)& Data,
|
||||
const Handle(Adaptor3d_HSurface)& S1,
|
||||
const Handle(Adaptor3d_HSurface)& S2,
|
||||
const Handle(Adaptor3d_Surface)& S1,
|
||||
const Handle(Adaptor3d_Surface)& S2,
|
||||
const TopAbs_Orientation OrFace1,
|
||||
const TopAbs_Orientation OrFace2,
|
||||
const TopAbs_Orientation Or1,
|
||||
|
@@ -18,12 +18,12 @@
|
||||
#define ChFiKPart_RstMap_HeaderFile
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Adaptor2d_HCurve2d.hxx>
|
||||
#include <Adaptor2d_Curve2d.hxx>
|
||||
#include <TColStd_MapIntegerHasher.hxx>
|
||||
#include <NCollection_DataMap.hxx>
|
||||
|
||||
typedef NCollection_DataMap<Standard_Integer,Handle(Adaptor2d_HCurve2d),TColStd_MapIntegerHasher> ChFiKPart_RstMap;
|
||||
typedef NCollection_DataMap<Standard_Integer,Handle(Adaptor2d_HCurve2d),TColStd_MapIntegerHasher>::Iterator ChFiKPart_DataMapIteratorOfRstMap;
|
||||
typedef NCollection_DataMap<Standard_Integer,Handle(Adaptor2d_Curve2d),TColStd_MapIntegerHasher> ChFiKPart_RstMap;
|
||||
typedef NCollection_DataMap<Standard_Integer,Handle(Adaptor2d_Curve2d),TColStd_MapIntegerHasher>::Iterator ChFiKPart_DataMapIteratorOfRstMap;
|
||||
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user