1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +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

@@ -19,7 +19,7 @@
#include <SelectMgr_Filter.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(SelectMgr_Filter,MMgt_TShared)
IMPLEMENT_STANDARD_RTTIEXT(SelectMgr_Filter,Standard_Transient)
Standard_Boolean SelectMgr_Filter::ActsOn(const TopAbs_ShapeEnum /*aStandardMode*/) const
{return Standard_False;}

View File

@@ -20,14 +20,14 @@
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Boolean.hxx>
#include <TopAbs_ShapeEnum.hxx>
class SelectMgr_EntityOwner;
class SelectMgr_Filter;
DEFINE_STANDARD_HANDLE(SelectMgr_Filter, MMgt_TShared)
DEFINE_STANDARD_HANDLE(SelectMgr_Filter, Standard_Transient)
//! The root class to define filter objects for selection.
//! Advance handling of objects requires the services of
@@ -38,7 +38,7 @@ DEFINE_STANDARD_HANDLE(SelectMgr_Filter, MMgt_TShared)
//! You can create your own filters by defining new filter
//! classes inheriting this framework. You use these
//! filters by loading them into an AIS interactive context.
class SelectMgr_Filter : public MMgt_TShared
class SelectMgr_Filter : public Standard_Transient
{
public:
@@ -69,7 +69,7 @@ public:
DEFINE_STANDARD_RTTIEXT(SelectMgr_Filter,MMgt_TShared)
DEFINE_STANDARD_RTTIEXT(SelectMgr_Filter,Standard_Transient)
protected:

View File

@@ -19,7 +19,7 @@
#include <SelectBasics_EntityOwner.hxx>
#include <SelectMgr_Selection.hxx>
IMPLEMENT_STANDARD_RTTIEXT(SelectMgr_Selection,MMgt_TShared)
IMPLEMENT_STANDARD_RTTIEXT(SelectMgr_Selection,Standard_Transient)
//==================================================
// Function: SelectMgr_Selection

View File

@@ -24,7 +24,7 @@
#include <Standard_Type.hxx>
#include <SelectMgr_TypeOfUpdate.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Transient.hxx>
#include <SelectMgr_SensitiveEntity.hxx>
#include <SelectMgr_StateOfSelection.hxx>
#include <SelectMgr_TypeOfBVHUpdate.hxx>
@@ -67,7 +67,7 @@ class SelectBasics_SensitiveEntity;
//! - mode 4 : selection of the faces
//! - mode 5 : selection of the shells
//! - mode 6 : selection of the constituent solids.
class SelectMgr_Selection : public MMgt_TShared
class SelectMgr_Selection : public Standard_Transient
{
public:
@@ -137,7 +137,7 @@ public:
//! proper updates use SelectMgr_SelectionManager::SetSelectionSensitivity method.
Standard_EXPORT void SetSensitivity (const Standard_Integer theNewSens);
DEFINE_STANDARD_RTTIEXT(SelectMgr_Selection,MMgt_TShared)
DEFINE_STANDARD_RTTIEXT(SelectMgr_Selection,Standard_Transient)
protected:
@@ -156,7 +156,7 @@ private:
Standard_Boolean myIsCustomSens;
};
DEFINE_STANDARD_HANDLE(SelectMgr_Selection, MMgt_TShared)
DEFINE_STANDARD_HANDLE(SelectMgr_Selection, Standard_Transient)
#include <SelectMgr_Selection.lxx>

View File

@@ -28,7 +28,7 @@
#include <TColStd_ListOfInteger.hxx>
#include <TColStd_MapIteratorOfMapOfTransient.hxx>
IMPLEMENT_STANDARD_RTTIEXT(SelectMgr_SelectionManager,MMgt_TShared)
IMPLEMENT_STANDARD_RTTIEXT(SelectMgr_SelectionManager,Standard_Transient)
static Standard_Integer FindIndex (const SelectMgr_SequenceOfSelector& theSelectorsSeq,
const Handle(SelectMgr_ViewerSelector)& theSelector)

View File

@@ -22,7 +22,7 @@
#include <TColStd_MapOfTransient.hxx>
#include <SelectMgr_DataMapOfObjectSelectors.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Transient.hxx>
#include <SelectMgr_ViewerSelector.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
@@ -31,14 +31,14 @@ class SelectMgr_SelectableObject;
class SelectMgr_SelectionManager;
DEFINE_STANDARD_HANDLE(SelectMgr_SelectionManager, MMgt_TShared)
DEFINE_STANDARD_HANDLE(SelectMgr_SelectionManager, Standard_Transient)
//! A framework to manage selection from the point of
//! view of viewer selectors. These can be added and
//! removed, and selection modes can be activated and
//! deactivated. In addition, objects may be known to all
//! selectors or only to some.
class SelectMgr_SelectionManager : public MMgt_TShared
class SelectMgr_SelectionManager : public Standard_Transient
{
public:
@@ -128,7 +128,7 @@ public:
//! Re-adds selectable object in BVHs in all viewer selectors.
Standard_EXPORT void UpdateSelection (const Handle(SelectMgr_SelectableObject)& theObj);
DEFINE_STANDARD_RTTIEXT(SelectMgr_SelectionManager,MMgt_TShared)
DEFINE_STANDARD_RTTIEXT(SelectMgr_SelectionManager,Standard_Transient)
protected:

View File

@@ -76,9 +76,9 @@ typedef NCollection_DataMap<Standard_Integer, SelectMgr_SelectingVolumeManager>
//! BVH traverse;
//! 2. if tolerance of sensitive entity is less than mytolerance, the frustum for
//! intersection detection will be resized according to its sensitivity.
class SelectMgr_ViewerSelector : public MMgt_TShared
class SelectMgr_ViewerSelector : public Standard_Transient
{
DEFINE_STANDARD_RTTIEXT(SelectMgr_ViewerSelector, MMgt_TShared)
DEFINE_STANDARD_RTTIEXT(SelectMgr_ViewerSelector, Standard_Transient)
friend class SelectMgr_SelectionManager;
public: