mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-07 21:28:11 +08:00
Coding - Refactor HArray and HSequence Definitions (#962)
- Replaced custom DEFINE_HARRAY1 and DEFINE_HSEQUENCE macros with typedefs to NCollection_HArray1 and NCollection_HSequence for various data types across multiple files. - Updated header files in the following modules: - HLRAlgo - TKShHealing - TKBRep - TKG2d - TKG3d - TKGeomBase - TKMeshVS - TKV3d - This change improves consistency and reduces the complexity of the codebase by utilizing the standard NCollection templates.
This commit is contained in:
@@ -17,8 +17,6 @@
|
||||
#define MeshVS_HArray1OfSequenceOfInteger_HeaderFile
|
||||
|
||||
#include <MeshVS_Array1OfSequenceOfInteger.hxx>
|
||||
#include <NCollection_DefineHArray1.hxx>
|
||||
|
||||
DEFINE_HARRAY1(MeshVS_HArray1OfSequenceOfInteger, MeshVS_Array1OfSequenceOfInteger)
|
||||
|
||||
#include <NCollection_HArray1.hxx>
|
||||
typedef NCollection_HArray1<TColStd_SequenceOfInteger> MeshVS_HArray1OfSequenceOfInteger;
|
||||
#endif
|
||||
|
||||
@@ -42,8 +42,6 @@
|
||||
IMPLEMENT_STANDARD_HANDLE(AIS_Manipulator, AIS_InteractiveObject)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(AIS_Manipulator, AIS_InteractiveObject)
|
||||
|
||||
IMPLEMENT_HSEQUENCE(AIS_ManipulatorObjectSequence)
|
||||
|
||||
namespace
|
||||
{
|
||||
//! Return Ax1 for specified direction of Ax2.
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <V3d_View.hxx>
|
||||
#include <Standard_DefineHandle.hxx>
|
||||
|
||||
NCOLLECTION_HSEQUENCE(AIS_ManipulatorObjectSequence, Handle(AIS_InteractiveObject))
|
||||
typedef NCollection_HSequence<Handle(AIS_InteractiveObject)> AIS_ManipulatorObjectSequence;
|
||||
|
||||
DEFINE_STANDARD_HANDLE(AIS_Manipulator, AIS_InteractiveObject)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user