mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03: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:
@@ -137,7 +137,6 @@ typedef NCollection_DoubleMap<TopoDS_Shape, TCollection_AsciiString> DoubleMapOf
|
||||
typedef NCollection_DoubleMap<vtkSmartPointer<vtkActor>, TCollection_AsciiString> DoubleMapOfActorsAndNames;
|
||||
|
||||
typedef IVtkDraw_HighlightAndSelectionPipeline PipelinePtr;
|
||||
typedef Handle(IVtkDraw_HighlightAndSelectionPipeline) Handle(PipelinePtr);
|
||||
|
||||
//================================================================
|
||||
// GLOBAL VARIABLES
|
||||
|
@@ -16,17 +16,8 @@
|
||||
#ifndef _IVtkDraw_HighlightAndSelectionPipeline_HeaderFile
|
||||
#define _IVtkDraw_HighlightAndSelectionPipeline_HeaderFile
|
||||
|
||||
#ifndef _Standard_HeaderFile
|
||||
#include <Standard.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Macro_HeaderFile
|
||||
#include <Standard_Macro.hxx>
|
||||
#endif
|
||||
#ifndef _Handle_MMgt_TShared_HeaderFile
|
||||
#endif
|
||||
|
||||
#include <NCollection_DataMap.hxx>
|
||||
#include <NCollection_Handle.hxx>
|
||||
#include <NCollection_Shared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
|
||||
@@ -43,6 +34,7 @@
|
||||
typedef NCollection_DataMap <IVtk_IdType, vtkSmartPointer<IVtkTools_DisplayModeFilter> > DisplayModeFiltersMap;
|
||||
typedef NCollection_DataMap <IVtk_IdType, vtkSmartPointer<IVtkTools_SubPolyDataFilter> > SubShapesFiltersMap;
|
||||
|
||||
class IVtkDraw_HighlightAndSelectionPipeline;
|
||||
DEFINE_STANDARD_HANDLE(IVtkDraw_HighlightAndSelectionPipeline, Standard_Transient)
|
||||
|
||||
class IVtkDraw_HighlightAndSelectionPipeline : public Standard_Transient
|
||||
@@ -121,6 +113,6 @@ private:
|
||||
|
||||
//! Mapping between OCCT topological shape IDs and their correspondent
|
||||
//! visualization pipelines.
|
||||
typedef NCollection_DataMap<IVtk_IdType, Handle(IVtkDraw_HighlightAndSelectionPipeline)> ShapePipelineMap;
|
||||
typedef NCollection_Shared< NCollection_DataMap<IVtk_IdType, Handle(IVtkDraw_HighlightAndSelectionPipeline)> > ShapePipelineMap;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user