mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0028832: MMgt_TShared can be replaced by Standard_Transient
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
#include <TopoDS_Edge.hxx>
|
||||
#include <TopoDS_Vertex.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(ChFiDS_Spine,MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(ChFiDS_Spine,Standard_Transient)
|
||||
|
||||
//=======================================================================
|
||||
//function : ChFiDS_Spine
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <gp_Vec.hxx>
|
||||
#include <ChFiDS_ErrorStatus.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <GeomAbs_CurveType.hxx>
|
||||
class TopoDS_Edge;
|
||||
class ChFiDS_HElSpine;
|
||||
@@ -45,7 +45,7 @@ class TopoDS_Vertex;
|
||||
#endif
|
||||
|
||||
class ChFiDS_Spine;
|
||||
DEFINE_STANDARD_HANDLE(ChFiDS_Spine, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(ChFiDS_Spine, Standard_Transient)
|
||||
|
||||
//! Contains information necessary for construction of
|
||||
//! a 3D fillet or chamfer:
|
||||
@@ -70,7 +70,7 @@ DEFINE_STANDARD_HANDLE(ChFiDS_Spine, MMgt_TShared)
|
||||
//! the approach and double the Spine of line C2 with
|
||||
//! the known consequences for management of
|
||||
//! interactions between KPart Blend in Fil3d.
|
||||
class ChFiDS_Spine : public MMgt_TShared
|
||||
class ChFiDS_Spine : public Standard_Transient
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -230,7 +230,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(ChFiDS_Spine,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(ChFiDS_Spine,Standard_Transient)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -20,7 +20,7 @@
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(ChFiDS_Stripe,MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(ChFiDS_Stripe,Standard_Transient)
|
||||
|
||||
ChFiDS_Stripe::ChFiDS_Stripe ():
|
||||
begfilled(/*Standard_False*/0), // eap, Apr 29 2002, occ293
|
||||
|
@@ -24,17 +24,17 @@
|
||||
#include <ChFiDS_HData.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <TopAbs_Orientation.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class ChFiDS_Spine;
|
||||
class Geom2d_Curve;
|
||||
|
||||
|
||||
class ChFiDS_Stripe;
|
||||
DEFINE_STANDARD_HANDLE(ChFiDS_Stripe, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(ChFiDS_Stripe, Standard_Transient)
|
||||
|
||||
//! Data characterising a band of fillet.
|
||||
class ChFiDS_Stripe : public MMgt_TShared
|
||||
class ChFiDS_Stripe : public Standard_Transient
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -150,7 +150,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(ChFiDS_Stripe,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(ChFiDS_Stripe,Standard_Transient)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -19,10 +19,10 @@
|
||||
#include <ChFiDS_FaceInterference.hxx>
|
||||
#include <ChFiDS_SurfData.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(ChFiDS_SurfData,MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(ChFiDS_SurfData,Standard_Transient)
|
||||
|
||||
ChFiDS_SurfData::ChFiDS_SurfData () :
|
||||
indexOfS1(0),indexOfS2(0),indexOfConge(0),
|
||||
@@ -216,7 +216,7 @@ void ChFiDS_SurfData::LastExtensionValue(const Standard_Real Extend)
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(MMgt_TShared) ChFiDS_SurfData::Simul() const
|
||||
Handle(Standard_Transient) ChFiDS_SurfData::Simul() const
|
||||
{
|
||||
return simul;
|
||||
}
|
||||
@@ -227,7 +227,7 @@ Handle(MMgt_TShared) ChFiDS_SurfData::Simul() const
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void ChFiDS_SurfData::SetSimul(const Handle(MMgt_TShared)& S)
|
||||
void ChFiDS_SurfData::SetSimul(const Handle(Standard_Transient)& S)
|
||||
{
|
||||
simul = S;
|
||||
}
|
||||
|
@@ -27,19 +27,19 @@
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <TopAbs_Orientation.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
class MMgt_TShared;
|
||||
#include <Standard_Transient.hxx>
|
||||
|
||||
class ChFiDS_FaceInterference;
|
||||
class ChFiDS_CommonPoint;
|
||||
class gp_Pnt2d;
|
||||
|
||||
|
||||
class ChFiDS_SurfData;
|
||||
DEFINE_STANDARD_HANDLE(ChFiDS_SurfData, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(ChFiDS_SurfData, Standard_Transient)
|
||||
|
||||
//! data structure for all information related to the
|
||||
//! fillet and to 2 faces vis a vis
|
||||
class ChFiDS_SurfData : public MMgt_TShared
|
||||
class ChFiDS_SurfData : public Standard_Transient
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -135,9 +135,9 @@ public:
|
||||
|
||||
Standard_EXPORT void LastExtensionValue (const Standard_Real Extend);
|
||||
|
||||
Standard_EXPORT Handle(MMgt_TShared) Simul() const;
|
||||
Standard_EXPORT Handle(Standard_Transient) Simul() const;
|
||||
|
||||
Standard_EXPORT void SetSimul (const Handle(MMgt_TShared)& S);
|
||||
Standard_EXPORT void SetSimul (const Handle(Standard_Transient)& S);
|
||||
|
||||
Standard_EXPORT void ResetSimul();
|
||||
|
||||
@@ -158,7 +158,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(ChFiDS_SurfData,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(ChFiDS_SurfData,Standard_Transient)
|
||||
|
||||
protected:
|
||||
|
||||
@@ -182,7 +182,7 @@ private:
|
||||
Standard_Real ulspine;
|
||||
Standard_Real myfirstextend;
|
||||
Standard_Real mylastextend;
|
||||
Handle(MMgt_TShared) simul;
|
||||
Handle(Standard_Transient) simul;
|
||||
Standard_Integer indexOfS1;
|
||||
Standard_Integer indexOfC1;
|
||||
Standard_Integer indexOfS2;
|
||||
|
Reference in New Issue
Block a user