1
0
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:
kgv
2017-07-06 10:38:18 +03:00
committed by bugmaster
parent e958a649c6
commit 25e59720d6
980 changed files with 2451 additions and 2539 deletions

View File

@@ -20,7 +20,7 @@
#include <HLRBRep_Algo.hxx>
#include <HLRBRep_ShapeBounds.hxx>
#include <HLRTopoBRep_OutLiner.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Type.hxx>
#include <TopoDS_Shape.hxx>
@@ -48,7 +48,7 @@ HLRBRep_InternalAlgo(A)
//=======================================================================
void HLRBRep_Algo::Add (const TopoDS_Shape& S,
const Handle(MMgt_TShared)& SData,
const Handle(Standard_Transient)& SData,
const Standard_Integer nbIso)
{
Load(new HLRTopoBRep_OutLiner(S),SData,nbIso);

View File

@@ -23,7 +23,7 @@
#include <HLRBRep_InternalAlgo.hxx>
#include <Standard_Integer.hxx>
class TopoDS_Shape;
class MMgt_TShared;
class Standard_Transient;
class HLRBRep_Algo;
@@ -79,7 +79,7 @@ public:
Standard_EXPORT HLRBRep_Algo(const Handle(HLRBRep_Algo)& A);
//! add the Shape <S>.
Standard_EXPORT void Add (const TopoDS_Shape& S, const Handle(MMgt_TShared)& SData, const Standard_Integer nbIso = 0);
Standard_EXPORT void Add (const TopoDS_Shape& S, const Handle(Standard_Transient)& SData, const Standard_Integer nbIso = 0);
//! Adds the shape S to this framework, and
//! specifies the number of isoparameters nbiso desired in visualizing S.

View File

@@ -19,7 +19,7 @@
#include <HLRBRep_AreaLimit.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(HLRBRep_AreaLimit,MMgt_TShared)
IMPLEMENT_STANDARD_RTTIEXT(HLRBRep_AreaLimit,Standard_Transient)
//=======================================================================
//function : HLRBRep_AreaLimit

View File

@@ -23,17 +23,17 @@
#include <HLRAlgo_Intersection.hxx>
#include <Standard_Boolean.hxx>
#include <TopAbs_State.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Transient.hxx>
class HLRAlgo_Intersection;
class HLRBRep_AreaLimit;
DEFINE_STANDARD_HANDLE(HLRBRep_AreaLimit, MMgt_TShared)
DEFINE_STANDARD_HANDLE(HLRBRep_AreaLimit, Standard_Transient)
//! The private nested class AreaLimit represents a --
//! vertex on the Edge with the state on the left and --
//! the right.
class HLRBRep_AreaLimit : public MMgt_TShared
class HLRBRep_AreaLimit : public Standard_Transient
{
public:
@@ -77,7 +77,7 @@ public:
DEFINE_STANDARD_RTTIEXT(HLRBRep_AreaLimit,MMgt_TShared)
DEFINE_STANDARD_RTTIEXT(HLRBRep_AreaLimit,Standard_Transient)
protected:

View File

@@ -42,7 +42,7 @@
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <stdio.h>
IMPLEMENT_STANDARD_RTTIEXT(HLRBRep_Data,MMgt_TShared)
IMPLEMENT_STANDARD_RTTIEXT(HLRBRep_Data,Standard_Transient)
Standard_Integer nbOkIntersection;
Standard_Integer nbPtIntersection;

View File

@@ -38,7 +38,7 @@
#include <TopAbs_Orientation.hxx>
#include <HLRBRep_Intersector.hxx>
#include <HLRAlgo_Interference.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Transient.hxx>
#include <BRepTopAdaptor_MapOfShapeTool.hxx>
#include <TopAbs_State.hxx>
#include <HLRAlgo_InterferenceList.hxx>
@@ -54,10 +54,10 @@ class TableauRejection;
class HLRBRep_Data;
DEFINE_STANDARD_HANDLE(HLRBRep_Data, MMgt_TShared)
DEFINE_STANDARD_HANDLE(HLRBRep_Data, Standard_Transient)
class HLRBRep_Data : public MMgt_TShared
class HLRBRep_Data : public Standard_Transient
{
public:
@@ -186,7 +186,7 @@ public:
DEFINE_STANDARD_RTTIEXT(HLRBRep_Data,MMgt_TShared)
DEFINE_STANDARD_RTTIEXT(HLRBRep_Data,Standard_Transient)
protected:

View File

@@ -23,7 +23,7 @@
#include <HLRBRep_ShapeBounds.hxx>
#include <HLRBRep_ShapeToHLR.hxx>
#include <HLRTopoBRep_OutLiner.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Transient.hxx>
#include <Standard_ErrorHandler.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Stream.hxx>
@@ -31,7 +31,7 @@
#include <TColStd_Array1OfReal.hxx>
#include <stdio.h>
IMPLEMENT_STANDARD_RTTIEXT(HLRBRep_InternalAlgo,MMgt_TShared)
IMPLEMENT_STANDARD_RTTIEXT(HLRBRep_InternalAlgo,Standard_Transient)
extern Standard_Integer nbPtIntersection; // total P.I.
extern Standard_Integer nbSegIntersection; // total S.I
@@ -192,7 +192,7 @@ void HLRBRep_InternalAlgo::Update ()
//=======================================================================
void HLRBRep_InternalAlgo::Load (const Handle(HLRTopoBRep_OutLiner)& S,
const Handle(MMgt_TShared)& SData,
const Handle(Standard_Transient)& SData,
const Standard_Integer nbIso)
{
myShapes.Append(HLRBRep_ShapeBounds(S,SData,nbIso,0,0,0,0,0,0));
@@ -249,7 +249,7 @@ void HLRBRep_InternalAlgo::Remove (const Standard_Integer I)
//=======================================================================
void HLRBRep_InternalAlgo::ShapeData (const Standard_Integer I,
const Handle(MMgt_TShared)& SData)
const Handle(Standard_Transient)& SData)
{
Standard_OutOfRange_Raise_if
(I == 0 || I > myShapes.Length(),

View File

@@ -24,21 +24,20 @@
#include <HLRBRep_SeqOfShapeBounds.hxx>
#include <BRepTopAdaptor_MapOfShapeTool.hxx>
#include <Standard_Boolean.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Integer.hxx>
class HLRBRep_Data;
class Standard_OutOfRange;
class HLRAlgo_Projector;
class HLRTopoBRep_OutLiner;
class MMgt_TShared;
class HLRBRep_ShapeBounds;
class HLRBRep_InternalAlgo;
DEFINE_STANDARD_HANDLE(HLRBRep_InternalAlgo, MMgt_TShared)
DEFINE_STANDARD_HANDLE(HLRBRep_InternalAlgo, Standard_Transient)
class HLRBRep_InternalAlgo : public MMgt_TShared
class HLRBRep_InternalAlgo : public Standard_Transient
{
public:
@@ -58,7 +57,7 @@ public:
Standard_EXPORT void Update();
//! add the shape <S>.
Standard_EXPORT void Load (const Handle(HLRTopoBRep_OutLiner)& S, const Handle(MMgt_TShared)& SData, const Standard_Integer nbIso = 0);
Standard_EXPORT void Load (const Handle(HLRTopoBRep_OutLiner)& S, const Handle(Standard_Transient)& SData, const Standard_Integer nbIso = 0);
//! add the shape <S>.
Standard_EXPORT void Load (const Handle(HLRTopoBRep_OutLiner)& S, const Standard_Integer nbIso = 0);
@@ -71,7 +70,7 @@ public:
Standard_EXPORT void Remove (const Standard_Integer I);
//! Change the Shape Data of the Shape of index <I>.
Standard_EXPORT void ShapeData (const Standard_Integer I, const Handle(MMgt_TShared)& SData);
Standard_EXPORT void ShapeData (const Standard_Integer I, const Handle(Standard_Transient)& SData);
Standard_EXPORT HLRBRep_SeqOfShapeBounds& SeqOfShapeBounds();
@@ -129,7 +128,7 @@ public:
DEFINE_STANDARD_RTTIEXT(HLRBRep_InternalAlgo,MMgt_TShared)
DEFINE_STANDARD_RTTIEXT(HLRBRep_InternalAlgo,Standard_Transient)
protected:

View File

@@ -55,7 +55,7 @@
#include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
#include <TopTools_ListIteratorOfListOfShape.hxx>
IMPLEMENT_STANDARD_RTTIEXT(HLRBRep_PolyAlgo,MMgt_TShared)
IMPLEMENT_STANDARD_RTTIEXT(HLRBRep_PolyAlgo,Standard_Transient)
enum
{

View File

@@ -33,7 +33,7 @@
#include <BRepAdaptor_Surface.hxx>
#include <BRepAdaptor_Curve.hxx>
#include <BRepAdaptor_Curve2d.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Integer.hxx>
#include <TColStd_Array1OfTransient.hxx>
#include <TColStd_Array1OfInteger.hxx>
@@ -54,7 +54,7 @@ struct HLRAlgo_TriangleData;
class HLRBRep_PolyAlgo;
DEFINE_STANDARD_HANDLE(HLRBRep_PolyAlgo, MMgt_TShared)
DEFINE_STANDARD_HANDLE(HLRBRep_PolyAlgo, Standard_Transient)
//! to remove Hidden lines on Shapes with Triangulations.
//! A framework to compute the shape as seen in
@@ -102,7 +102,7 @@ DEFINE_STANDARD_HANDLE(HLRBRep_PolyAlgo, MMgt_TShared)
//! the visible and hidden parts of each face in a
//! shape to be visualized by comparing each
//! face in the shape with every other face in the same shape.
class HLRBRep_PolyAlgo : public MMgt_TShared
class HLRBRep_PolyAlgo : public Standard_Transient
{
public:
@@ -196,7 +196,7 @@ public:
DEFINE_STANDARD_RTTIEXT(HLRBRep_PolyAlgo,MMgt_TShared)
DEFINE_STANDARD_RTTIEXT(HLRBRep_PolyAlgo,Standard_Transient)
protected:

View File

@@ -17,7 +17,7 @@
#include <HLRBRep_ShapeBounds.hxx>
#include <HLRTopoBRep_OutLiner.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Transient.hxx>
//=======================================================================
//function : HLRBRep_ShapeBounds
@@ -25,7 +25,7 @@
//=======================================================================
HLRBRep_ShapeBounds::
HLRBRep_ShapeBounds (const Handle(HLRTopoBRep_OutLiner)& S,
const Handle(MMgt_TShared)& SData,
const Handle(Standard_Transient)& SData,
const Standard_Integer nbIso,
const Standard_Integer V1,
const Standard_Integer V2,

View File

@@ -25,7 +25,7 @@
#include <Standard_Integer.hxx>
class HLRTopoBRep_OutLiner;
class MMgt_TShared;
class Standard_Transient;
//! Contains a Shape and the bounds of its vertices,
@@ -39,7 +39,7 @@ public:
HLRBRep_ShapeBounds();
Standard_EXPORT HLRBRep_ShapeBounds(const Handle(HLRTopoBRep_OutLiner)& S, const Handle(MMgt_TShared)& SData, const Standard_Integer nbIso, const Standard_Integer V1, const Standard_Integer V2, const Standard_Integer E1, const Standard_Integer E2, const Standard_Integer F1, const Standard_Integer F2);
Standard_EXPORT HLRBRep_ShapeBounds(const Handle(HLRTopoBRep_OutLiner)& S, const Handle(Standard_Transient)& SData, const Standard_Integer nbIso, const Standard_Integer V1, const Standard_Integer V2, const Standard_Integer E1, const Standard_Integer E2, const Standard_Integer F1, const Standard_Integer F2);
Standard_EXPORT HLRBRep_ShapeBounds(const Handle(HLRTopoBRep_OutLiner)& S, const Standard_Integer nbIso, const Standard_Integer V1, const Standard_Integer V2, const Standard_Integer E1, const Standard_Integer E2, const Standard_Integer F1, const Standard_Integer F2);
@@ -49,9 +49,9 @@ public:
const Handle(HLRTopoBRep_OutLiner)& Shape() const;
void ShapeData (const Handle(MMgt_TShared)& SD);
void ShapeData (const Handle(Standard_Transient)& SD);
const Handle(MMgt_TShared)& ShapeData() const;
const Handle(Standard_Transient)& ShapeData() const;
void NbOfIso (const Standard_Integer nbIso);
@@ -85,7 +85,7 @@ private:
Handle(HLRTopoBRep_OutLiner) myShape;
Handle(MMgt_TShared) myShapeData;
Handle(Standard_Transient) myShapeData;
Standard_Integer myNbIso;
Standard_Integer myVertStart;
Standard_Integer myVertEnd;

View File

@@ -46,7 +46,7 @@ HLRBRep_ShapeBounds::Shape () const
//=======================================================================
inline void HLRBRep_ShapeBounds::
ShapeData (const Handle(MMgt_TShared)& SD)
ShapeData (const Handle(Standard_Transient)& SD)
{ myShapeData = SD; }
//=======================================================================
@@ -54,7 +54,7 @@ ShapeData (const Handle(MMgt_TShared)& SD)
//purpose :
//=======================================================================
inline const Handle(MMgt_TShared) & HLRBRep_ShapeBounds::ShapeData () const
inline const Handle(Standard_Transient) & HLRBRep_ShapeBounds::ShapeData () const
{ return myShapeData; }
//=======================================================================