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

@@ -14,7 +14,7 @@
#include <IntSurf.hxx>
#include <Adaptor3d_HSurface.hxx>
#include <Adaptor3d_Surface.hxx>
#include <IntSurf_Transition.hxx>
#include <Precision.hxx>
#include <gp_Vec.hxx>
@@ -101,8 +101,8 @@ void IntSurf::MakeTransition (const gp_Vec& TgFirst,
//function : SetPeriod
//purpose :
//=======================================================================
void IntSurf::SetPeriod(const Handle(Adaptor3d_HSurface)& theFirstSurf,
const Handle(Adaptor3d_HSurface)& theSecondSurf,
void IntSurf::SetPeriod(const Handle(Adaptor3d_Surface)& theFirstSurf,
const Handle(Adaptor3d_Surface)& theSecondSurf,
Standard_Real theArrOfPeriod[4])
{
theArrOfPeriod[0] = theFirstSurf->IsUPeriodic()? theFirstSurf->UPeriod() : 0.0;

View File

@@ -17,10 +17,8 @@
#ifndef _IntSurf_HeaderFile
#define _IntSurf_HeaderFile
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Adaptor3d_Surface.hxx>
class Adaptor3d_HSurface;
class IntSurf_Transition;
class gp_Dir;
class gp_Vec;
@@ -53,8 +51,8 @@ public:
//!
//! If surface is not periodic in correspond direction then
//! its period is considered to be equal to 0.
Standard_EXPORT static void SetPeriod(const Handle(Adaptor3d_HSurface)& theFirstSurf,
const Handle(Adaptor3d_HSurface)& theSecondSurf,
Standard_EXPORT static void SetPeriod(const Handle(Adaptor3d_Surface)& theFirstSurf,
const Handle(Adaptor3d_Surface)& theSecondSurf,
Standard_Real theArrOfPeriod[4]);