mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -14,7 +14,7 @@
|
||||
|
||||
#include <Geom2dEvaluator_OffsetCurve.hxx>
|
||||
#include <Geom2dEvaluator.hxx>
|
||||
#include <Geom2dAdaptor_HCurve.hxx>
|
||||
#include <Geom2dAdaptor_Curve.hxx>
|
||||
#include <Standard_NullValue.hxx>
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ Geom2dEvaluator_OffsetCurve::Geom2dEvaluator_OffsetCurve(
|
||||
}
|
||||
|
||||
Geom2dEvaluator_OffsetCurve::Geom2dEvaluator_OffsetCurve(
|
||||
const Handle(Geom2dAdaptor_HCurve)& theBase,
|
||||
const Handle(Geom2dAdaptor_Curve)& theBase,
|
||||
const Standard_Real theOffset)
|
||||
: Geom2dEvaluator_Curve(),
|
||||
myBaseAdaptor(theBase),
|
||||
|
@@ -16,10 +16,9 @@
|
||||
#define _Geom2dEvaluator_OffsetCurve_HeaderFile
|
||||
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom2dAdaptor_Curve.hxx>
|
||||
#include <Geom2dEvaluator_Curve.hxx>
|
||||
|
||||
class Geom2dAdaptor_HCurve;
|
||||
|
||||
//! Allows to calculate values and derivatives for offset curves in 2D
|
||||
class Geom2dEvaluator_OffsetCurve : public Geom2dEvaluator_Curve
|
||||
{
|
||||
@@ -30,7 +29,7 @@ public:
|
||||
const Standard_Real theOffset);
|
||||
//! Initialize evaluator by curve adaptor
|
||||
Standard_EXPORT Geom2dEvaluator_OffsetCurve(
|
||||
const Handle(Geom2dAdaptor_HCurve)& theBase,
|
||||
const Handle(Geom2dAdaptor_Curve)& theBase,
|
||||
const Standard_Real theOffset);
|
||||
|
||||
//! Change the offset value
|
||||
@@ -85,7 +84,7 @@ private:
|
||||
|
||||
private:
|
||||
Handle(Geom2d_Curve) myBaseCurve;
|
||||
Handle(Geom2dAdaptor_HCurve) myBaseAdaptor;
|
||||
Handle(Geom2dAdaptor_Curve) myBaseAdaptor;
|
||||
|
||||
Standard_Real myOffset; ///< offset value
|
||||
};
|
||||
|
Reference in New Issue
Block a user