mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-22 12:48:37 +08:00
0024023: Revamp the OCCT Handle -- general
Missing headers added; includes of headers "Handle_...hxx" removed. Misuses of macro Handle() and its use in typedefs corrected. Alias classes Profile and Option are removed from IFSelect; ones defined in MoniTool are used directly. Removed header files defining only Handle classes (except Image_PixMap_Handle.hxx) Classes SelectMgr_BaseFrustum and now inherit Standard_Transient and can be manipulated by Handle (not NCollection_Handle) Fixed reference-type local variable pointing to temporary object Use of handle in conditional expressions and comparisons to NULL are replaced by call to method IsNull()
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
|
||||
#include <StepShape_Vertex.hxx>
|
||||
#include <StepShape_EdgeCurve.hxx>
|
||||
#include <StepGeom_Curve.hxx>
|
||||
#include <StepGeom_Line.hxx>
|
||||
#include <StepGeom_HArray1OfPcurveOrSurface.hxx>
|
||||
#include <StepGeom_SeamCurve.hxx>
|
||||
#include <StepGeom_SurfaceCurve.hxx>
|
||||
@@ -236,7 +236,7 @@ void TopoDSToStep_MakeStepEdge::Init(const TopoDS_Edge& aEdge,
|
||||
//Points.SetValue(Nbpt, BRep_Tool::Pnt(Vlast));
|
||||
Mult.SetValue(1,2);
|
||||
Mult.SetValue(Nbpt,2);
|
||||
Handle(Geom_BSplineCurve) Bs =
|
||||
Handle(Geom_Curve) Bs =
|
||||
new Geom_BSplineCurve(Points, Knots, Mult, 1);
|
||||
GeomToStep_MakeCurve MkCurve(Bs);
|
||||
Gpms = MkCurve.Value();
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
#include <Geom_Circle.hxx>
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <Geom_SurfaceOfRevolution.hxx>
|
||||
#include <Geom_BSplineCurve.hxx>
|
||||
|
||||
#include <Precision.hxx>
|
||||
#include <Geom2dAdaptor_Curve.hxx>
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
#include <Standard_NullObject.hxx>
|
||||
|
||||
#include <StepGeom_CartesianPoint.hxx>
|
||||
#include <StepGeom_Curve.hxx>
|
||||
#include <StepGeom_Line.hxx>
|
||||
#include <StepGeom_SurfaceCurve.hxx>
|
||||
#include <StepGeom_SeamCurve.hxx>
|
||||
#include <StepGeom_TrimmedCurve.hxx>
|
||||
@@ -298,7 +298,7 @@ Standard_Boolean TopoDSToStep_WireframeBuilder::
|
||||
Points.SetValue(Nbpt, BRep_Tool::Pnt(Vlast));
|
||||
Mult.SetValue(1,2);
|
||||
Mult.SetValue(Nbpt,2);
|
||||
Handle(Geom_BSplineCurve) Bs =
|
||||
Handle(Geom_Curve) Bs =
|
||||
new Geom_BSplineCurve(Points, Knots, Mult, 1);
|
||||
GeomToStep_MakeCurve gtpC(Bs);
|
||||
Gpms = gtpC.Value();
|
||||
|
||||
Reference in New Issue
Block a user