mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0028832: MMgt_TShared can be replaced by Standard_Transient
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_ArrayOfPrimitives,MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_ArrayOfPrimitives,Standard_Transient)
|
||||
|
||||
Graphic3d_ArrayOfPrimitives::Graphic3d_ArrayOfPrimitives (const Graphic3d_TypeOfPrimitiveArray theType,
|
||||
const Standard_Integer theMaxVertexs,
|
||||
|
@@ -24,7 +24,7 @@
|
||||
#include <Graphic3d_TypeOfPrimitiveArray.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Byte.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
#include <Standard_ShortReal.hxx>
|
||||
@@ -38,7 +38,7 @@ class gp_Pnt2d;
|
||||
|
||||
|
||||
class Graphic3d_ArrayOfPrimitives;
|
||||
DEFINE_STANDARD_HANDLE(Graphic3d_ArrayOfPrimitives, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(Graphic3d_ArrayOfPrimitives, Standard_Transient)
|
||||
|
||||
//! This class furnish services to defined and fill an
|
||||
//! array of primitives compatible with the use of
|
||||
@@ -57,7 +57,7 @@ DEFINE_STANDARD_HANDLE(Graphic3d_ArrayOfPrimitives, MMgt_TShared)
|
||||
//! 3) Enable to change dynamically the components of the primitive
|
||||
//! (vertice,normal,color,texture coordinates).
|
||||
//! 4) Add true triangle and quadrangle strips or fans capabilities.
|
||||
class Graphic3d_ArrayOfPrimitives : public MMgt_TShared
|
||||
class Graphic3d_ArrayOfPrimitives : public Standard_Transient
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -343,7 +343,7 @@ Standard_Integer AddVertex (const Graphic3d_Vec3& theVertex);
|
||||
friend class Graphic3d_Group;
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(Graphic3d_ArrayOfPrimitives,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(Graphic3d_ArrayOfPrimitives,Standard_Transient)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -22,7 +22,7 @@
|
||||
#include <Graphic3d_ShaderProgram.hxx>
|
||||
#include <Font_FontAspect.hxx>
|
||||
#include <Font_NameOfFont.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
|
@@ -25,7 +25,7 @@
|
||||
#include <Graphic3d_DataStructureManager.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_DataStructureManager,MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_DataStructureManager,Standard_Transient)
|
||||
|
||||
//-Aliases
|
||||
//-Global data definitions
|
||||
|
@@ -19,22 +19,22 @@
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
|
||||
|
||||
class Graphic3d_DataStructureManager;
|
||||
DEFINE_STANDARD_HANDLE(Graphic3d_DataStructureManager, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(Graphic3d_DataStructureManager, Standard_Transient)
|
||||
|
||||
//! This class allows the definition of a manager to
|
||||
//! which the graphic objects are associated.
|
||||
//! It allows them to be globally manipulated.
|
||||
//! It defines the global attributes.
|
||||
class Graphic3d_DataStructureManager : public MMgt_TShared
|
||||
class Graphic3d_DataStructureManager : public Standard_Transient
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(Graphic3d_DataStructureManager,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(Graphic3d_DataStructureManager,Standard_Transient)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
|
||||
#include <Graphic3d_GraphicDriver.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_GraphicDriver,MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_GraphicDriver,Standard_Transient)
|
||||
|
||||
// =======================================================================
|
||||
// function : Graphic3d_GraphicDriver
|
||||
|
@@ -22,7 +22,7 @@
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Graphic3d_CView.hxx>
|
||||
#include <Graphic3d_CStructure.hxx>
|
||||
#include <Aspect_GradientFillMethod.hxx>
|
||||
@@ -59,11 +59,11 @@ class Graphic3d_ViewManager;
|
||||
class Quantity_Color;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
DEFINE_STANDARD_HANDLE(Graphic3d_GraphicDriver, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(Graphic3d_GraphicDriver, Standard_Transient)
|
||||
|
||||
//! This class allows the definition of a graphic driver
|
||||
//! for 3d interface (currently only OpenGl driver is used).
|
||||
class Graphic3d_GraphicDriver : public MMgt_TShared
|
||||
class Graphic3d_GraphicDriver : public Standard_Transient
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -149,7 +149,7 @@ public:
|
||||
//! Frees the identifier of a structure.
|
||||
Standard_EXPORT void RemoveIdentification(const Standard_Integer theId);
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(Graphic3d_GraphicDriver,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(Graphic3d_GraphicDriver,Standard_Transient)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -39,7 +39,7 @@
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TCollection_ExtendedString.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_Group,MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_Group,Standard_Transient)
|
||||
|
||||
// =======================================================================
|
||||
// function : Graphic3d_Group
|
||||
|
@@ -26,7 +26,7 @@
|
||||
#include <Graphic3d_AspectFillArea3d.hxx>
|
||||
#include <Graphic3d_AspectText3d.hxx>
|
||||
#include <Graphic3d_AspectMarker3d.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
#include <Graphic3d_Vertex.hxx>
|
||||
@@ -75,10 +75,10 @@ class Graphic3d_ArrayOfPrimitives;
|
||||
//! with aspects and primitives and choose the group usage model beforehand out of application needs.
|
||||
//! Note that some Graphic3d_Group class virtual methods contain only base implementation
|
||||
//! that is extended by the descendant class in OpenGl package.
|
||||
class Graphic3d_Group : public MMgt_TShared
|
||||
class Graphic3d_Group : public Standard_Transient
|
||||
{
|
||||
friend class Graphic3d_Structure;
|
||||
DEFINE_STANDARD_RTTIEXT(Graphic3d_Group,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(Graphic3d_Group,Standard_Transient)
|
||||
|
||||
public:
|
||||
|
||||
@@ -312,6 +312,6 @@ protected:
|
||||
|
||||
};
|
||||
|
||||
DEFINE_STANDARD_HANDLE(Graphic3d_Group, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(Graphic3d_Group, Standard_Transient)
|
||||
|
||||
#endif // _Graphic3d_Group_HeaderFile
|
||||
|
@@ -34,7 +34,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_Structure,MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_Structure,Standard_Transient)
|
||||
|
||||
//=============================================================================
|
||||
//function : Graphic3d_Structure
|
||||
|
@@ -24,7 +24,7 @@
|
||||
#include <Graphic3d_IndexedMapOfAddress.hxx>
|
||||
#include <Standard_Address.hxx>
|
||||
#include <Graphic3d_TypeOfStructure.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Graphic3d_ZLayerId.hxx>
|
||||
@@ -51,7 +51,7 @@ class Graphic3d_Vector;
|
||||
|
||||
|
||||
class Graphic3d_Structure;
|
||||
DEFINE_STANDARD_HANDLE(Graphic3d_Structure, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(Graphic3d_Structure, Standard_Transient)
|
||||
|
||||
//! This class allows the definition a graphic object.
|
||||
//! This graphic structure can be displayed,
|
||||
@@ -61,7 +61,7 @@ DEFINE_STANDARD_HANDLE(Graphic3d_Structure, MMgt_TShared)
|
||||
//! Keywords: Structure, StructureManager, Display, Erase, Highlight,
|
||||
//! UnHighlight, Visible, Priority, Selectable, Visible,
|
||||
//! Visual, Connection, Ancestors, Descendants, Transformation
|
||||
class Graphic3d_Structure : public MMgt_TShared
|
||||
class Graphic3d_Structure : public Standard_Transient
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -388,7 +388,7 @@ public:
|
||||
friend class Graphic3d_Group;
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(Graphic3d_Structure,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(Graphic3d_Structure,Standard_Transient)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
#include <Graphic3d_GraphicDriver.hxx>
|
||||
#include <Graphic3d_Structure.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_StructureManager,MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_StructureManager,Standard_Transient)
|
||||
|
||||
#include <Graphic3d_MapIteratorOfMapOfStructure.hxx>
|
||||
#include <Graphic3d_CView.hxx>
|
||||
|
@@ -25,7 +25,7 @@
|
||||
#include <Graphic3d_ViewAffinity.hxx>
|
||||
#include <Graphic3d_ZLayerId.hxx>
|
||||
#include <Graphic3d_ZLayerSettings.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <NCollection_IndexedMap.hxx>
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
@@ -41,7 +41,7 @@ class Graphic3d_DataStructureManager;
|
||||
class Standard_Transient;
|
||||
|
||||
class Graphic3d_StructureManager;
|
||||
DEFINE_STANDARD_HANDLE(Graphic3d_StructureManager, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(Graphic3d_StructureManager, Standard_Transient)
|
||||
|
||||
//! This class allows the definition of a manager to
|
||||
//! which the graphic objects are associated.
|
||||
@@ -49,7 +49,7 @@ DEFINE_STANDARD_HANDLE(Graphic3d_StructureManager, MMgt_TShared)
|
||||
//! It defines the global attributes.
|
||||
//! Keywords: Structure, Structure Manager, Update Mode,
|
||||
//! Destroy, Highlight, Visible
|
||||
class Graphic3d_StructureManager : public MMgt_TShared
|
||||
class Graphic3d_StructureManager : public Standard_Transient
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -157,7 +157,7 @@ public:
|
||||
|
||||
friend class Graphic3d_Structure;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(Graphic3d_StructureManager,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(Graphic3d_StructureManager,Standard_Transient)
|
||||
|
||||
protected:
|
||||
|
||||
|
Reference in New Issue
Block a user