Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGsUpdateManager.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 OdGsUpdateManager(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGsUpdateManager_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGsUpdateManager 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 OdGsUpdateManager cast(OdRxObject pObj) {// OdSmartPtr<OdGsUpdateManager>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdGsUpdateManager ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdGsUpdateManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsUpdateManager),ptr, true));
51 ret = (OdGsUpdateManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsUpdateManager),ptr, false);
52 }
53 else
54 {
55 ret = (OdGsUpdateManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsUpdateManager),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.OdGsUpdateManager_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.OdGsUpdateManager_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.OdGsUpdateManager_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdGsUpdateManager createObject() {// OdSmartPtr<OdGsUpdateManager>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
88 OdGsUpdateManager ret = null;
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdGsUpdateManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsUpdateManager),ptr, true));
92 ret = (OdGsUpdateManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsUpdateManager),ptr, false);
93 }
94 else
95 {
96 ret = (OdGsUpdateManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsUpdateManager),ptr, true);
97 }
98
100 return ret;
101}
102
103 public class OdGsUpdateManagerElement : global::System.IDisposable {
104 private Object locker = new Object();
105 private HandleRef swigCPtr;
106 protected bool swigCMemOwn;
107 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
108 public OdGsUpdateManagerElement(IntPtr cPtr, bool cMemoryOwn) {
109 swigCMemOwn = cMemoryOwn;
110 swigCPtr = new HandleRef(this, cPtr);
111 }
112 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
113 public static HandleRef getCPtr(OdGsUpdateManagerElement obj) {
114 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
115 }
116
118 Dispose(false);
119 }
120
121 public void Dispose() {
122 Dispose(true);
123 global::System.GC.SuppressFinalize(this);
124 }
125
126 protected virtual void Dispose(bool disposing) {
127 lock(this) {
128 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
129 if (swigCMemOwn) {
130 swigCMemOwn = false;
132 }
133 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
134 }
135 }
136 }
137
138 public OdGsUpdateManagerElement() : this(GlobalsPINVOKE.new_OdGsUpdateManager_OdGsUpdateManagerElement(), true) {
140 }
141
142 public byte state(UInt32 /*SIMPLETYPE*/ vpId) {
143 // test csout
144 /*SIMPLETYPE*/
145 byte ret = GlobalsPINVOKE.OdGsUpdateManager_OdGsUpdateManagerElement_state(swigCPtr, vpId /*SIMPLETYPE*/);
147 return ret;
148 }
149
150 public void setState(byte /*SIMPLETYPE*/ state, UInt32 /*SIMPLETYPE*/ vpId) {
151 GlobalsPINVOKE.OdGsUpdateManager_OdGsUpdateManagerElement_setState(swigCPtr, state /*SIMPLETYPE*/, vpId /*SIMPLETYPE*/);
153 }
154
159 public Byte vb_state(uint vpId) { return this.state(vpId); }
160
161 }
162
163 public class UpdateManagerSettings : global::System.IDisposable {
164 private Object locker = new Object();
165 private HandleRef swigCPtr;
166 protected bool swigCMemOwn;
167 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
168 public UpdateManagerSettings(IntPtr cPtr, bool cMemoryOwn) {
169 swigCMemOwn = cMemoryOwn;
170 swigCPtr = new HandleRef(this, cPtr);
171 }
172 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
173 public static HandleRef getCPtr(UpdateManagerSettings obj) {
174 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
175 }
176
178 Dispose(false);
179 }
180
181 public void Dispose() {
182 Dispose(true);
183 global::System.GC.SuppressFinalize(this);
184 }
185
186 protected virtual void Dispose(bool disposing) {
187 lock(this) {
188 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
189 if (swigCMemOwn) {
190 swigCMemOwn = false;
192 }
193 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
194 }
195 }
196 }
197
199 set {
202 }
203 get {
206 return ret;
207 }
208 }
209
210 public UInt64 nMemoryLimit {
211 set {
212 /*SIMPLETYPE*/
215 }
216 get {
217 /*SIMPLETYPE*/
220 return ret;
221 }
222 }
223
224 public UInt64 nMinMemoryLimit {
225 set {
226 /*SIMPLETYPE*/
229 }
230 get {
231 /*SIMPLETYPE*/
234 return ret;
235 }
236 }
237
239 set {
240 /*SIMPLETYPE*/
243 }
244 get {
245 /*SIMPLETYPE*/
248 return ret;
249 }
250 }
251
252 public UpdateManagerSettings() : this(GlobalsPINVOKE.new_OdGsUpdateManager_UpdateManagerSettings(), true) {
254 }
255
256 }
257
261 return ret;
262 }
263
267 }
268
269 public virtual void addElement(UInt32 /*SIMPLETYPE*/ viewportId, OdGsEntityNode pNode, OdGsUpdateManager.OdGsUpdateManagerElement pElement) {
272 }
273
274 public virtual void addElement(UInt32 /*SIMPLETYPE*/ viewportId, OdGsEntityNode pNode, OdGsUpdateManager.OdGsUpdateManagerElement pElement, UInt64 /*SIMPLETYPE*/ nLength, OdGsViewImpl pView, OdGeExtents3d extents, bool bSetZeroWeight) {
275 GlobalsPINVOKE.OdGsUpdateManager_addElement__SWIG_1(swigCPtr, viewportId /*SIMPLETYPE*/, OdGsEntityNode.getCPtr(pNode), OdGsUpdateManager.OdGsUpdateManagerElement.getCPtr(pElement), nLength /*SIMPLETYPE*/, OdGsViewImpl.getCPtr(pView), OdGeExtents3d.getCPtr(extents), bSetZeroWeight);
277 }
278
279 public virtual void addElement(UInt32 /*SIMPLETYPE*/ viewportId, OdGsEntityNode pNode, OdGsUpdateManager.OdGsUpdateManagerElement pElement, UInt64 /*SIMPLETYPE*/ nLength, OdGsViewImpl pView, OdGeExtents3d extents) {
280 GlobalsPINVOKE.OdGsUpdateManager_addElement__SWIG_2(swigCPtr, viewportId /*SIMPLETYPE*/, OdGsEntityNode.getCPtr(pNode), OdGsUpdateManager.OdGsUpdateManagerElement.getCPtr(pElement), nLength /*SIMPLETYPE*/, OdGsViewImpl.getCPtr(pView), OdGeExtents3d.getCPtr(extents));
282 }
283
284 public virtual void addPriorityElement(UInt32 /*SIMPLETYPE*/ viewportId, OdGsEntityNode pNode, OdGsUpdateManager.OdGsUpdateManagerElement pElement, UInt64 /*SIMPLETYPE*/ nLength) {
285 GlobalsPINVOKE.OdGsUpdateManager_addPriorityElement(swigCPtr, viewportId /*SIMPLETYPE*/, OdGsEntityNode.getCPtr(pNode), OdGsUpdateManager.OdGsUpdateManagerElement.getCPtr(pElement), nLength /*SIMPLETYPE*/);
287 }
288
289 public virtual void setProcessCallback(Globals.UpdateManagerProcessCallbackDelegate /*CS_DELEGATE_CONNECT_TYPEMAP_PART_BASE cstype*/ arg0) {
290/*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN pre csin start*/
291 Globals.UpdateManagerProcessCallbackDelegateNative arg0_inDelegate = null;
292 if (arg0 != null)
293 {
294 arg0_inDelegate = (OdGsUpdateManager.Action action,UInt32 viewportId,IntPtr drawableId,IntPtr pNode,IntPtr pElement) =>
295 {
296 ;
297 try
298 {
299 arg0(action,viewportId,OdMarshalHelper.PtrToObject<OdDbStub>(drawableId),OdMarshalHelper.PtrToObject<OdGsEntityNode>(pNode),OdMarshalHelper.PtrToObject<OdGsUpdateManager.OdGsUpdateManagerElement>(pElement));
300 }
301 finally
302 {
303 ;
304 }
305 };
306 }
307 IntPtr arg0_ptr = (arg0 == null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(arg0_inDelegate);
308 Teigha.Core.DelegateHolder.Add(arg0_inDelegate);
309 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN pre csin end*/
310 try {
311 GlobalsPINVOKE.OdGsUpdateManager_setProcessCallback(swigCPtr, arg0_ptr /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN csin*/ );
313 } finally {
314//Empty post /*CS_DELEGATE_CONNECT_TYPEMAP_PART_VOID_RETURN post csin*/
315 }
316 }
317
318 public virtual void process() {
321 }
322
323 public virtual void reset() {
326 }
327
328 public virtual void removeElement(UInt32 /*SIMPLETYPE*/ viewportId, OdGsEntityNode pNode, OdGsUpdateManager.OdGsUpdateManagerElement pElement) {
331 }
332
333 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
334 string ret = GlobalsPINVOKE.OdGsUpdateManager_getRealClassName(ptr /*SIMPLETYPE*/);
336 return ret;
337 }
338
339 public enum FiltrationType {
340 kKeepDrawOrder = 0,
341 kFilterByLimit = (1 << 0)
342 }
343
344 public enum Action {
345 kAdd,
346 kRemove,
348 }
349
350}
351
352}
delegate void UpdateManagerProcessCallbackDelegate(OdGsUpdateManager.Action action, UInt32 viewportId, OdDbStub drawableId, OdGsEntityNode pNode, OdGsUpdateManager.OdGsUpdateManagerElement pElement)
static global::System.Exception Retrieve()
static void OdGsUpdateManager_UpdateManagerSettings_type_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void delete_OdGsUpdateManager(HandleRef jarg1)
static UInt64 OdGsUpdateManager_UpdateManagerSettings_nMinMemoryLimit_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGsUpdateManager_addElement__SWIG_1(HandleRef jarg1, UInt32 jarg2, HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, UInt64 jarg5, HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, bool jarg8)
static void OdGsUpdateManager_reset(HandleRef jarg1)
static void OdGsUpdateManager_UpdateManagerSettings_nClientCurrentHeapUsage_set(global::System.Runtime.InteropServices.HandleRef jarg1, UInt64 jarg2)
static UInt64 OdGsUpdateManager_UpdateManagerSettings_nClientCurrentHeapUsage_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGsUpdateManager_addPriorityElement(HandleRef jarg1, UInt32 jarg2, HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, UInt64 jarg5)
static byte OdGsUpdateManager_OdGsUpdateManagerElement_state(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static IntPtr OdGsUpdateManager_cast(HandleRef jarg1)
static void delete_OdGsUpdateManager_UpdateManagerSettings(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGsUpdateManager_OdGsUpdateManagerElement_setState(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, UInt32 jarg3)
static void OdGsUpdateManager_addElement__SWIG_0(HandleRef jarg1, UInt32 jarg2, HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static UInt64 OdGsUpdateManager_UpdateManagerSettings_nMemoryLimit_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGsUpdateManager_addElement__SWIG_2(HandleRef jarg1, UInt32 jarg2, HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, UInt64 jarg5, HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7)
static void OdGsUpdateManager_setProcessCallback(HandleRef jarg1, IntPtr jarg2)
static string OdGsUpdateManager_getRealClassName(IntPtr jarg1)
static IntPtr OdGsUpdateManager_desc()
static void OdGsUpdateManager_process(HandleRef jarg1)
static void OdGsUpdateManager_UpdateManagerSettings_nMinMemoryLimit_set(global::System.Runtime.InteropServices.HandleRef jarg1, UInt64 jarg2)
static void delete_OdGsUpdateManager_OdGsUpdateManagerElement(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGsUpdateManager_UpdateManagerSettings_type_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGsUpdateManager_UpdateManagerSettings_nMemoryLimit_set(global::System.Runtime.InteropServices.HandleRef jarg1, UInt64 jarg2)
static void OdGsUpdateManager_setSettings(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdGsUpdateManager_queryX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGsUpdateManager_isA(HandleRef jarg1)
static void OdGsUpdateManager_removeElement(HandleRef jarg1, UInt32 jarg2, HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static global::System.IntPtr OdGsUpdateManager_settings(HandleRef jarg1)
static IntPtr OdGsUpdateManager_createObject()
static HandleRef getCPtr(OdGeExtents3d obj)
static HandleRef getCPtr(OdGsEntityNode obj)
static HandleRef getCPtr(OdGsUpdateManagerElement obj)
static HandleRef getCPtr(UpdateManagerSettings obj)
static new OdRxClass desc()
static string getRealClassName(IntPtr ptr)
OdGsUpdateManager(IntPtr cPtr, bool cMemoryOwn)
virtual void addPriorityElement(UInt32 viewportId, OdGsEntityNode pNode, OdGsUpdateManager.OdGsUpdateManagerElement pElement, UInt64 nLength)
virtual void addElement(UInt32 viewportId, OdGsEntityNode pNode, OdGsUpdateManager.OdGsUpdateManagerElement pElement)
override OdRxObject queryX(OdRxClass protocolClass)
static OdGsUpdateManager cast(OdRxObject pObj)
virtual void removeElement(UInt32 viewportId, OdGsEntityNode pNode, OdGsUpdateManager.OdGsUpdateManagerElement pElement)
virtual OdGsUpdateManager.UpdateManagerSettings settings()
virtual void addElement(UInt32 viewportId, OdGsEntityNode pNode, OdGsUpdateManager.OdGsUpdateManagerElement pElement, UInt64 nLength, OdGsViewImpl pView, OdGeExtents3d extents)
virtual void addElement(UInt32 viewportId, OdGsEntityNode pNode, OdGsUpdateManager.OdGsUpdateManagerElement pElement, UInt64 nLength, OdGsViewImpl pView, OdGeExtents3d extents, bool bSetZeroWeight)
override void Dispose(bool disposing)
virtual void setSettings(OdGsUpdateManager.UpdateManagerSettings arg0)
static HandleRef getCPtr(OdGsUpdateManager obj)
virtual void setProcessCallback(Globals.UpdateManagerProcessCallbackDelegate arg0)
static OdGsUpdateManager createObject()
static HandleRef getCPtr(OdGsViewImpl obj)
Definition: OdGsViewImpl.cs:26
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26