Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDg3dObjectHelper.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.TG {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
17public class OdDg3dObjectHelper : global::System.IDisposable {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 protected bool swigCMemOwn;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public OdDg3dObjectHelper(IntPtr cPtr, bool cMemoryOwn) {
23 swigCMemOwn = cMemoryOwn;
24 swigCPtr = new HandleRef(this, cPtr);
25 }
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(OdDg3dObjectHelper obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
32 Dispose(false);
33 }
34
35 public void Dispose() {
36 Dispose(true);
37 global::System.GC.SuppressFinalize(this);
38 }
39
40 protected virtual void Dispose(bool disposing) {
41 lock(this) {
42 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
43 if (swigCMemOwn) {
44 swigCMemOwn = false;
46 }
47 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
48 }
49 }
50 }
51
53 : this(TG_DbPINVOKE.new_OdDg3dObjectHelper(OdDgGraphicsElement.getCPtr(element)), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
54 {
55 MemoryTransaction curTrans = MemoryManager.GetMemoryManager().GetCurrentTransaction(); // MemoryTransaction #45
56 if (null != curTrans)
57 {
58 curTrans.AddObject(new OdDg3dObjectHelper(swigCPtr.Handle, true));
59 }
61 }
62
64 bool ret = TG_DbPINVOKE.OdDg3dObjectHelper_isAcceptableForBoundary(swigCPtr, (int)type);
66 return ret;
67 }
68
70 bool ret = TG_DbPINVOKE.OdDg3dObjectHelper_isAcceptableForRule(swigCPtr, (int)type);
72 return ret;
73 }
74
75 public class Boundary : global::System.IDisposable {
76 private Object locker = new Object();
77 private HandleRef swigCPtr;
78 protected bool swigCMemOwn;
79 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
80 public Boundary(IntPtr cPtr, bool cMemoryOwn) {
81 swigCMemOwn = cMemoryOwn;
82 swigCPtr = new HandleRef(this, cPtr);
83 }
84 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
85 public static HandleRef getCPtr(Boundary obj) {
86 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
87 }
88
89 ~Boundary() {
90 Dispose(false);
91 }
92
93 public void Dispose() {
94 Dispose(true);
95 global::System.GC.SuppressFinalize(this);
96 }
97
98 protected virtual void Dispose(bool disposing) {
99 lock(this) {
100 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
101 if (swigCMemOwn) {
102 swigCMemOwn = false;
103 TG_DbPINVOKE.delete_OdDg3dObjectHelper_Boundary(swigCPtr); // NESTED_DTOR_CSHARP
104 }
105 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
106 }
107 }
108 }
109
111 set {
114 }
115 get
116 {
117 // csvarout array
119
121 return res;
122 }
123
124 }
125
127 set {
130 }
131 get
132 {
133 // csvarout array
135
137 return res;
138 }
139
140 }
141
142 public Boundary() : this(TG_DbPINVOKE.new_OdDg3dObjectHelper_Boundary(), true) {
144 }
145
146 }
147
148 public void extractInformation(EntireObject dataToFill) {
151 }
152
153 public void addToBoundary(OdDgGraphicsElement element) {
156 }
157
158 public void addToRule(OdDgGraphicsElement element) {
161 }
162
163 public OdDgElementIterator createIterator(bool atBeginning, bool skipDeleted) {// OdDgElementIteratorPtr
164 MemoryManager mMan = MemoryManager.GetMemoryManager();
165 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
166 IntPtr ptr = TG_DbPINVOKE.OdDg3dObjectHelper_createIterator__SWIG_0(swigCPtr, atBeginning, skipDeleted);
167
168 OdDgElementIterator ret = null;
169 if (null != mTrans)
170 {
171 mTrans.AddObject((OdDgElementIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgElementIterator),ptr, true));
172 ret = (OdDgElementIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgElementIterator),ptr, false);
173 }
174 else
175 {
176 ret = (OdDgElementIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgElementIterator),ptr, true);
177 }
178
180 return ret;
181}
182
183 public OdDgElementIterator createIterator(bool atBeginning) {// OdDgElementIteratorPtr
184 MemoryManager mMan = MemoryManager.GetMemoryManager();
185 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
186 IntPtr ptr = TG_DbPINVOKE.OdDg3dObjectHelper_createIterator__SWIG_1(swigCPtr, atBeginning);
187
188 OdDgElementIterator ret = null;
189 if (null != mTrans)
190 {
191 mTrans.AddObject((OdDgElementIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgElementIterator),ptr, true));
192 ret = (OdDgElementIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgElementIterator),ptr, false);
193 }
194 else
195 {
196 ret = (OdDgElementIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgElementIterator),ptr, true);
197 }
198
200 return ret;
201}
202
203 public OdDgElementIterator createIterator() {// OdDgElementIteratorPtr
204 MemoryManager mMan = MemoryManager.GetMemoryManager();
205 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
207
208 OdDgElementIterator ret = null;
209 if (null != mTrans)
210 {
211 mTrans.AddObject((OdDgElementIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgElementIterator),ptr, true));
212 ret = (OdDgElementIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgElementIterator),ptr, false);
213 }
214 else
215 {
216 ret = (OdDgElementIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgElementIterator),ptr, true);
217 }
218
220 return ret;
221}
222
223}
224
225}
static HandleRef getCPtr(EntireObject obj)
Definition: EntireObject.cs:29
OdDgGraphicsElementPtrArray m_boundary
static HandleRef getCPtr(Boundary obj)
Boundary(IntPtr cPtr, bool cMemoryOwn)
virtual void Dispose(bool disposing)
OdDgGraphicsElementPtrArray m_rules
static HandleRef getCPtr(OdDg3dObjectHelper obj)
OdDgElementIterator createIterator(bool atBeginning)
OdDg3dObjectHelper(IntPtr cPtr, bool cMemoryOwn)
OdDgElementIterator createIterator(bool atBeginning, bool skipDeleted)
void addToBoundary(OdDgGraphicsElement element)
void addToRule(OdDgGraphicsElement element)
bool isAcceptableForRule(OdDgElement.ElementTypes type)
OdDgElementIterator createIterator()
bool isAcceptableForBoundary(OdDgElement.ElementTypes type)
OdDg3dObjectHelper(OdDgGraphicsElement element)
void extractInformation(EntireObject dataToFill)
virtual void Dispose(bool disposing)
static HandleRef getCPtr(OdDgGraphicsElement obj)
static HandleRef getCPtr(OdDgGraphicsElementPtrArray obj)
static global::System.Exception Retrieve()
static void OdDg3dObjectHelper_addToBoundary(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void OdDg3dObjectHelper_extractInformation(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdDg3dObjectHelper(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDg3dObjectHelper_addToRule(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void OdDg3dObjectHelper_Boundary_m_rules_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDg3dObjectHelper_createIterator__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdDg3dObjectHelper_createIterator__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool OdDg3dObjectHelper_isAcceptableForBoundary(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void OdDg3dObjectHelper_Boundary_m_boundary_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdDg3dObjectHelper_Boundary_m_rules_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDg3dObjectHelper_isAcceptableForRule(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static IntPtr OdDg3dObjectHelper_createIterator__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2, bool jarg3)
static global::System.IntPtr OdDg3dObjectHelper_Boundary_m_boundary_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdDg3dObjectHelper_Boundary(global::System.Runtime.InteropServices.HandleRef jarg1)