Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdSiSpatialIndex.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdSiSpatialIndex(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdSiSpatialIndex_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdSiSpatialIndex obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public static OdSiSpatialIndex cast(OdRxObject pObj) {// OdSmartPtr<OdSiSpatialIndex>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdSiSpatialIndex ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, true));
51 ret = (OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, false);
52 }
53 else
54 {
55 ret = (OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, true);
56 }
57
59 return ret;
60}
61
62 public new static OdRxClass desc() {
63 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdSiSpatialIndex_desc(),false); /*createInt 3_2*/
64
66 return ret;
67}
68
69 public override OdRxClass isA() {
70 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdSiSpatialIndex_isA(swigCPtr),false); /*createInt 3_2*/
71
73 return ret;
74}
75
76 public override OdRxObject queryX(OdRxClass protocolClass) {
77 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdSiSpatialIndex_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdSiSpatialIndex createObject() {// OdSmartPtr<OdSiSpatialIndex>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
88 OdSiSpatialIndex ret = null;
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, true));
92 ret = (OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, false);
93 }
94 else
95 {
96 ret = (OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, true);
97 }
98
100 return ret;
101}
102
103 public static OdSiSpatialIndex createObject(UInt32 /*SIMPLETYPE*/ flags, uint initialNumEntity, uint maxDepth, uint maxCount, double eps) {// OdSiSpatialIndexPtr
104 MemoryManager mMan = MemoryManager.GetMemoryManager();
105 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
106 IntPtr ptr = GlobalsPINVOKE.OdSiSpatialIndex_createObject__SWIG_1(flags /*SIMPLETYPE*/, initialNumEntity, maxDepth, maxCount, eps);
107
108 OdSiSpatialIndex ret = null;
109 if (null != mTrans)
110 {
111 mTrans.AddObject((OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, true));
112 ret = (OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, false);
113 }
114 else
115 {
116 ret = (OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, true);
117 }
118
120 return ret;
121}
122
123 public static OdSiSpatialIndex createObject(UInt32 /*SIMPLETYPE*/ flags, uint initialNumEntity, uint maxDepth, uint maxCount) {// OdSiSpatialIndexPtr
124 MemoryManager mMan = MemoryManager.GetMemoryManager();
125 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
126 IntPtr ptr = GlobalsPINVOKE.OdSiSpatialIndex_createObject__SWIG_2(flags /*SIMPLETYPE*/, initialNumEntity, maxDepth, maxCount);
127
128 OdSiSpatialIndex ret = null;
129 if (null != mTrans)
130 {
131 mTrans.AddObject((OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, true));
132 ret = (OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, false);
133 }
134 else
135 {
136 ret = (OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, true);
137 }
138
140 return ret;
141}
142
143 public static OdSiSpatialIndex createObject(UInt32 /*SIMPLETYPE*/ flags, uint initialNumEntity, uint maxDepth) {// OdSiSpatialIndexPtr
144 MemoryManager mMan = MemoryManager.GetMemoryManager();
145 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
146 IntPtr ptr = GlobalsPINVOKE.OdSiSpatialIndex_createObject__SWIG_3(flags /*SIMPLETYPE*/, initialNumEntity, maxDepth);
147
148 OdSiSpatialIndex ret = null;
149 if (null != mTrans)
150 {
151 mTrans.AddObject((OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, true));
152 ret = (OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, false);
153 }
154 else
155 {
156 ret = (OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, true);
157 }
158
160 return ret;
161}
162
163 public static OdSiSpatialIndex createObject(UInt32 /*SIMPLETYPE*/ flags, uint initialNumEntity) {// OdSiSpatialIndexPtr
164 MemoryManager mMan = MemoryManager.GetMemoryManager();
165 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
166 IntPtr ptr = GlobalsPINVOKE.OdSiSpatialIndex_createObject__SWIG_4(flags /*SIMPLETYPE*/, initialNumEntity);
167
168 OdSiSpatialIndex ret = null;
169 if (null != mTrans)
170 {
171 mTrans.AddObject((OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, true));
172 ret = (OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, false);
173 }
174 else
175 {
176 ret = (OdSiSpatialIndex)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdSiSpatialIndex),ptr, true);
177 }
178
180 return ret;
181}
182
183 public virtual void insert(OdSiEntity entity) {
186 }
187
188 public virtual bool remove(OdSiEntity entity) {
189 bool ret = GlobalsPINVOKE.OdSiSpatialIndex_remove(swigCPtr, entity.GetInterfaceCPtr());
191 return ret;
192 }
193
194 public virtual void query(OdSiShape shape, OdSiVisitor visitor) {
197 }
198
199 public virtual void clear() {
202 }
203
204 public virtual void setMaxTreeDepth(byte maxDepth) {
207 }
208
209 public virtual void setMaxNodeSize(byte maxCount) {
212 }
213
214 public virtual bool extents(OdGeExtents3d extents) {
217 return ret;
218 }
219
220 public virtual uint maxTreeDepth() {
223 return ret;
224 }
225
226 public virtual uint maxNodeSize() {
227 uint ret = GlobalsPINVOKE.OdSiSpatialIndex_maxNodeSize(swigCPtr);
229 return ret;
230 }
231
232 public virtual OdGeTol tolerance() {
233 OdGeTol ret = new OdGeTol(GlobalsPINVOKE.OdSiSpatialIndex_tolerance(swigCPtr), false);
235 return ret;
236 }
237
238 public virtual void setTolerance(OdGeTol tol) {
241 }
242
243 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
244 string ret = GlobalsPINVOKE.OdSiSpatialIndex_getRealClassName(ptr /*SIMPLETYPE*/);
246 return ret;
247 }
248
249 public enum CreationFlags {
250 kSiNoFlags = 0,
251 kSiPlanar = (1 << 0),
252 kSiModifyMtAware = (1 << 1),
253 kSiAccessMtAware = (1 << 2),
255 }
256
257}
258
259}
static global::System.Exception Retrieve()
static IntPtr OdSiSpatialIndex_queryX(HandleRef jarg1, HandleRef jarg2)
static void OdSiSpatialIndex_insert(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static uint OdSiSpatialIndex_maxNodeSize(HandleRef jarg1)
static IntPtr OdSiSpatialIndex_createObject__SWIG_2(UInt32 jarg1, uint jarg2, uint jarg3, uint jarg4)
static IntPtr OdSiSpatialIndex_cast(HandleRef jarg1)
static IntPtr OdSiSpatialIndex_createObject__SWIG_3(UInt32 jarg1, uint jarg2, uint jarg3)
static IntPtr OdSiSpatialIndex_createObject__SWIG_4(UInt32 jarg1, uint jarg2)
static IntPtr OdSiSpatialIndex_createObject__SWIG_0()
static IntPtr OdSiSpatialIndex_createObject__SWIG_1(UInt32 jarg1, uint jarg2, uint jarg3, uint jarg4, double jarg5)
static IntPtr OdSiSpatialIndex_desc()
static void delete_OdSiSpatialIndex(HandleRef jarg1)
static void OdSiSpatialIndex_setTolerance(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdSiSpatialIndex_isA(HandleRef jarg1)
static void OdSiSpatialIndex_query(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdSiSpatialIndex_setMaxTreeDepth(HandleRef jarg1, byte jarg2)
static uint OdSiSpatialIndex_maxTreeDepth(HandleRef jarg1)
static void OdSiSpatialIndex_clear(HandleRef jarg1)
static bool OdSiSpatialIndex_remove(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdSiSpatialIndex_extents(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdSiSpatialIndex_tolerance(HandleRef jarg1)
static string OdSiSpatialIndex_getRealClassName(IntPtr jarg1)
static void OdSiSpatialIndex_setMaxNodeSize(HandleRef jarg1, byte jarg2)
static HandleRef getCPtr(OdGeExtents3d obj)
static HandleRef getCPtr(OdGeTol obj)
Definition: OdGeTol.cs:26
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
virtual void setMaxTreeDepth(byte maxDepth)
override OdRxObject queryX(OdRxClass protocolClass)
static OdSiSpatialIndex createObject(UInt32 flags, uint initialNumEntity, uint maxDepth)
override OdRxClass isA()
static OdSiSpatialIndex createObject(UInt32 flags, uint initialNumEntity)
static new OdRxClass desc()
static HandleRef getCPtr(OdSiSpatialIndex obj)
OdSiSpatialIndex(IntPtr cPtr, bool cMemoryOwn)
static string getRealClassName(IntPtr ptr)
virtual void query(OdSiShape shape, OdSiVisitor visitor)
virtual void setMaxNodeSize(byte maxCount)
virtual void setTolerance(OdGeTol tol)
static OdSiSpatialIndex cast(OdRxObject pObj)
virtual void insert(OdSiEntity entity)
virtual bool extents(OdGeExtents3d extents)
static OdSiSpatialIndex createObject(UInt32 flags, uint initialNumEntity, uint maxDepth, uint maxCount)
static OdSiSpatialIndex createObject(UInt32 flags, uint initialNumEntity, uint maxDepth, uint maxCount, double eps)
override void Dispose(bool disposing)
static OdSiSpatialIndex createObject()
static HandleRef getCPtr(OdSiVisitor obj)
Definition: OdSiVisitor.cs:26
global::System.Runtime.InteropServices.HandleRef GetInterfaceCPtr()
global::System.Runtime.InteropServices.HandleRef GetInterfaceCPtr()