Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGiWorldDraw.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 OdGiWorldDraw(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiWorldDraw_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGiWorldDraw 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
43 : this(GlobalsPINVOKE.new_OdGiWorldDraw(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
44 {
45 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction(); // MemoryTransaction #1
46 if (null != mTr)
47 {
48 mTr.AddObject(new OdGiWorldDraw(swigCPtr.Handle, true));
49 }
51 SwigDirectorConnect();
52 DelegateHolder.OnHoldSwigDirectorDelegates(this);
53 }
54
55 public static OdGiWorldDraw cast(OdRxObject pObj) {// OdSmartPtr<OdGiWorldDraw>
56 MemoryManager mMan = MemoryManager.GetMemoryManager();
57 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
59
60 OdGiWorldDraw ret = null;
61 if (null != mTrans)
62 {
63 mTrans.AddObject((OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),ptr, true));
64 ret = (OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),ptr, false);
65 }
66 else
67 {
68 ret = (OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),ptr, true);
69 }
70
72 return ret;
73}
74
75 public new static OdRxClass desc() {
76 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiWorldDraw_desc(),false); /*createInt 3_2*/
77
79 return ret;
80}
81
82 public override OdRxClass isA() {
83 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),(SwigDerivedClassHasMethod("isA", swigMethodTypes1) ? GlobalsPINVOKE.OdGiWorldDraw_isASwigExplicitOdGiWorldDraw(swigCPtr) : GlobalsPINVOKE.OdGiWorldDraw_isA(swigCPtr)),false); /*createInt 3_2*/
84
86 return ret;
87}
88
89 public override OdRxObject queryX(OdRxClass protocolClass) {
90 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),(SwigDerivedClassHasMethod("queryX", swigMethodTypes0) ? GlobalsPINVOKE.OdGiWorldDraw_queryXSwigExplicitOdGiWorldDraw(swigCPtr, OdRxClass.getCPtr(protocolClass)) : GlobalsPINVOKE.OdGiWorldDraw_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass))),false); /*createInt 3_2*/
91
93 return ret;
94}
95
96 public new static OdGiWorldDraw createObject() {// OdSmartPtr<OdGiWorldDraw>
97 MemoryManager mMan = MemoryManager.GetMemoryManager();
98 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
100
101 OdGiWorldDraw ret = null;
102 if (null != mTrans)
103 {
104 mTrans.AddObject((OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),ptr, true));
105 ret = (OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),ptr, false);
106 }
107 else
108 {
109 ret = (OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),ptr, true);
110 }
111
113 return ret;
114}
115
116 public virtual OdGiWorldGeometry geometry() {
117 OdGiWorldGeometry ret = (OdGiWorldGeometry)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldGeometry),GlobalsPINVOKE.OdGiWorldDraw_geometry(swigCPtr),false); /*createInt 3_1*/
118
120 return ret;
121}
122
123 protected static string getRealClassName(IntPtr ptr) {
124 string ret = GlobalsPINVOKE.OdGiWorldDraw_getRealClassName(ptr /*SIMPLETYPE*/);
126 return ret;
127 }
128
133 public virtual Teigha.Core.OdGiWorldGeometry vb_geometry() { return this.geometry(); }
134
139 public virtual double vb_deviation(Teigha.Core.OdGiDeviationType deviationType, Teigha.Core.OdGePoint3d pointOnCurve) { return this.deviation(deviationType, pointOnCurve); }
140
145 public virtual Teigha.Core.OdGiContext vb_context() { return this.context(); }
146
147 private void SwigDirectorConnect() {
148 if (SwigDerivedClassHasMethod("queryX", swigMethodTypes0))
149 swigDelegate0 = new SwigDelegateOdGiWorldDraw_0(SwigDirectorMethodqueryX);
150 if (SwigDerivedClassHasMethod("isA", swigMethodTypes1))
151 swigDelegate1 = new SwigDelegateOdGiWorldDraw_1(SwigDirectorMethodisA);
152 if (SwigDerivedClassHasMethod("copyFrom", swigMethodTypes2))
153 swigDelegate2 = new SwigDelegateOdGiWorldDraw_2(SwigDirectorMethodcopyFrom);
154 if (SwigDerivedClassHasMethod("regenType", swigMethodTypes3))
155 swigDelegate3 = new SwigDelegateOdGiWorldDraw_3(SwigDirectorMethodregenType);
156 if (SwigDerivedClassHasMethod("regenAbort", swigMethodTypes4))
157 swigDelegate4 = new SwigDelegateOdGiWorldDraw_4(SwigDirectorMethodregenAbort);
158 if (SwigDerivedClassHasMethod("subEntityTraits", swigMethodTypes5))
159 swigDelegate5 = new SwigDelegateOdGiWorldDraw_5(SwigDirectorMethodsubEntityTraits);
160 if (SwigDerivedClassHasMethod("rawGeometry", swigMethodTypes6))
161 swigDelegate6 = new SwigDelegateOdGiWorldDraw_6(SwigDirectorMethodrawGeometry);
162 if (SwigDerivedClassHasMethod("isDragging", swigMethodTypes7))
163 swigDelegate7 = new SwigDelegateOdGiWorldDraw_7(SwigDirectorMethodisDragging);
164 if (SwigDerivedClassHasMethod("deviation", swigMethodTypes8))
165 swigDelegate8 = new SwigDelegateOdGiWorldDraw_8(SwigDirectorMethoddeviation);
166 if (SwigDerivedClassHasMethod("numberOfIsolines", swigMethodTypes9))
167 swigDelegate9 = new SwigDelegateOdGiWorldDraw_9(SwigDirectorMethodnumberOfIsolines);
168 if (SwigDerivedClassHasMethod("context", swigMethodTypes10))
169 swigDelegate10 = new SwigDelegateOdGiWorldDraw_10(SwigDirectorMethodcontext);
170 if (SwigDerivedClassHasMethod("currentGiPath", swigMethodTypes11))
171 swigDelegate11 = new SwigDelegateOdGiWorldDraw_11(SwigDirectorMethodcurrentGiPath);
172 if (SwigDerivedClassHasMethod("displayModelerSilhouettes", swigMethodTypes12))
173 swigDelegate12 = new SwigDelegateOdGiWorldDraw_12(SwigDirectorMethoddisplayModelerSilhouettes);
174 if (SwigDerivedClassHasMethod("geometry", swigMethodTypes13))
175 swigDelegate13 = new SwigDelegateOdGiWorldDraw_13(SwigDirectorMethodgeometry);
176 GlobalsPINVOKE.OdGiWorldDraw_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13);
177 }
178
179 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
180 global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance, null, methodTypes, null);
181 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdGiWorldDraw));
182 return hasDerivedMethod;
183 }
184
185 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
186 return
187 // csdirectorout for OdRxObject*, OdRxObject&
188 OdRxObject.getCPtr(queryX(
189 (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,false) /*createInt 6_2*/ // csdirectorin for smart pointer
190)).Handle
191;
192 }
193
194 private IntPtr SwigDirectorMethodisA() {
195 return
196 // csdirectorout for OdRxClass*, OdRxClass&
197 OdRxClass.getCPtr(isA()).Handle
198;
199 }
200
201 private void SwigDirectorMethodcopyFrom(IntPtr pSource) {
202 copyFrom(
203 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),pSource,false) /*createInt 6_2*/ // csdirectorin for smart pointer
204);
205 }
206
207 private int SwigDirectorMethodregenType() {
208 return (int)regenType();
209 }
210
211 private bool SwigDirectorMethodregenAbort() {
212 return regenAbort();
213 }
214
215 private IntPtr SwigDirectorMethodsubEntityTraits() {
216 return
217 // csdirectorout for OdGiSubEntityTraits*, OdGiSubEntityTraits&
218 OdGiSubEntityTraits.getCPtr(subEntityTraits()).Handle
219;
220 }
221
222 private IntPtr SwigDirectorMethodrawGeometry() {
223 return
224 // csdirectorout for OdGiGeometry*, OdGiGeometry&
225 OdGiGeometry.getCPtr(rawGeometry()).Handle
226;
227 }
228
229 private bool SwigDirectorMethodisDragging() {
230 return isDragging();
231 }
232
233 private double SwigDirectorMethoddeviation(int deviationType, global::System.IntPtr pointOnCurve) {
234 return deviation((OdGiDeviationType)deviationType, new OdGePoint3d(pointOnCurve, false));
235 }
236
237 private UInt32 /*SIMPLETYPE*/ SwigDirectorMethodnumberOfIsolines() {
238 return numberOfIsolines() /*SIMPLETYPE*/;
239 }
240
241 private IntPtr SwigDirectorMethodcontext() {
242 return
243 // csdirectorout for OdGiContext*, OdGiContext&
244 OdGiContext.getCPtr(context()).Handle
245;
246 }
247
248 private global::System.IntPtr SwigDirectorMethodcurrentGiPath() {
249 return OdGiPathNode.getCPtr(currentGiPath()).Handle;
250 }
251
252 private bool SwigDirectorMethoddisplayModelerSilhouettes() {
254 }
255
256 private IntPtr SwigDirectorMethodgeometry() {
257 return
258 // csdirectorout for OdGiWorldGeometry*, OdGiWorldGeometry&
259 OdGiWorldGeometry.getCPtr(geometry()).Handle
260;
261 }
262
263 public delegate IntPtr SwigDelegateOdGiWorldDraw_0(IntPtr protocolClass);
264 public delegate IntPtr SwigDelegateOdGiWorldDraw_1();
265 public delegate void SwigDelegateOdGiWorldDraw_2(IntPtr pSource);
266 public delegate int SwigDelegateOdGiWorldDraw_3();
267 public delegate bool SwigDelegateOdGiWorldDraw_4();
268 public delegate IntPtr SwigDelegateOdGiWorldDraw_5();
269 public delegate IntPtr SwigDelegateOdGiWorldDraw_6();
270 public delegate bool SwigDelegateOdGiWorldDraw_7();
271 public delegate double SwigDelegateOdGiWorldDraw_8(int deviationType, global::System.IntPtr pointOnCurve);
272 public delegate UInt32 /*SIMPLETYPE*/ SwigDelegateOdGiWorldDraw_9();
273 public delegate IntPtr SwigDelegateOdGiWorldDraw_10();
274 public delegate global::System.IntPtr SwigDelegateOdGiWorldDraw_11();
275 public delegate bool SwigDelegateOdGiWorldDraw_12();
276 public delegate IntPtr SwigDelegateOdGiWorldDraw_13();
277
278 private SwigDelegateOdGiWorldDraw_0 swigDelegate0;
279 private SwigDelegateOdGiWorldDraw_1 swigDelegate1;
280 private SwigDelegateOdGiWorldDraw_2 swigDelegate2;
281 private SwigDelegateOdGiWorldDraw_3 swigDelegate3;
282 private SwigDelegateOdGiWorldDraw_4 swigDelegate4;
283 private SwigDelegateOdGiWorldDraw_5 swigDelegate5;
284 private SwigDelegateOdGiWorldDraw_6 swigDelegate6;
285 private SwigDelegateOdGiWorldDraw_7 swigDelegate7;
286 private SwigDelegateOdGiWorldDraw_8 swigDelegate8;
287 private SwigDelegateOdGiWorldDraw_9 swigDelegate9;
288 private SwigDelegateOdGiWorldDraw_10 swigDelegate10;
289 private SwigDelegateOdGiWorldDraw_11 swigDelegate11;
290 private SwigDelegateOdGiWorldDraw_12 swigDelegate12;
291 private SwigDelegateOdGiWorldDraw_13 swigDelegate13;
292
293 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdRxClass) };
294 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
295 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(OdRxObject) };
296 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { };
297 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
298 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { };
299 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { };
300 private static global::System.Type[] swigMethodTypes7 = new global::System.Type[] { };
301 private static global::System.Type[] swigMethodTypes8 = new global::System.Type[] { typeof(OdGiDeviationType), typeof(OdGePoint3d) };
302 private static global::System.Type[] swigMethodTypes9 = new global::System.Type[] { };
303 private static global::System.Type[] swigMethodTypes10 = new global::System.Type[] { };
304 private static global::System.Type[] swigMethodTypes11 = new global::System.Type[] { };
305 private static global::System.Type[] swigMethodTypes12 = new global::System.Type[] { };
306 private static global::System.Type[] swigMethodTypes13 = new global::System.Type[] { };
307}
308
309}
static global::System.Exception Retrieve()
static IntPtr OdGiWorldDraw_cast(HandleRef jarg1)
static string OdGiWorldDraw_getRealClassName(IntPtr jarg1)
static void delete_OdGiWorldDraw(HandleRef jarg1)
static IntPtr OdGiWorldDraw_isA(HandleRef jarg1)
static void OdGiWorldDraw_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, OdGiWorldDraw.SwigDelegateOdGiWorldDraw_0 delegate0, OdGiWorldDraw.SwigDelegateOdGiWorldDraw_1 delegate1, OdGiWorldDraw.SwigDelegateOdGiWorldDraw_2 delegate2, OdGiWorldDraw.SwigDelegateOdGiWorldDraw_3 delegate3, OdGiWorldDraw.SwigDelegateOdGiWorldDraw_4 delegate4, OdGiWorldDraw.SwigDelegateOdGiWorldDraw_5 delegate5, OdGiWorldDraw.SwigDelegateOdGiWorldDraw_6 delegate6, OdGiWorldDraw.SwigDelegateOdGiWorldDraw_7 delegate7, OdGiWorldDraw.SwigDelegateOdGiWorldDraw_8 delegate8, OdGiWorldDraw.SwigDelegateOdGiWorldDraw_9 delegate9, OdGiWorldDraw.SwigDelegateOdGiWorldDraw_10 delegate10, OdGiWorldDraw.SwigDelegateOdGiWorldDraw_11 delegate11, OdGiWorldDraw.SwigDelegateOdGiWorldDraw_12 delegate12, OdGiWorldDraw.SwigDelegateOdGiWorldDraw_13 delegate13)
static IntPtr OdGiWorldDraw_queryXSwigExplicitOdGiWorldDraw(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGiWorldDraw_geometry(HandleRef jarg1)
static IntPtr OdGiWorldDraw_isASwigExplicitOdGiWorldDraw(HandleRef jarg1)
static IntPtr OdGiWorldDraw_queryX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGiWorldDraw_createObject()
static IntPtr OdGiWorldDraw_desc()
virtual OdGiContext context()
virtual OdGiPathNode currentGiPath()
virtual OdGiRegenType regenType()
virtual OdGiSubEntityTraits subEntityTraits()
virtual UInt32 numberOfIsolines()
virtual double deviation(OdGiDeviationType deviationType, OdGePoint3d pointOnCurve)
virtual OdGiGeometry rawGeometry()
virtual bool displayModelerSilhouettes()
override OdRxClass isA()
virtual Teigha.Core.OdGiWorldGeometry vb_geometry()
static new OdGiWorldDraw createObject()
delegate void SwigDelegateOdGiWorldDraw_2(IntPtr pSource)
delegate int SwigDelegateOdGiWorldDraw_3()
delegate bool SwigDelegateOdGiWorldDraw_12()
delegate double SwigDelegateOdGiWorldDraw_8(int deviationType, global::System.IntPtr pointOnCurve)
static new OdRxClass desc()
delegate bool SwigDelegateOdGiWorldDraw_4()
static HandleRef getCPtr(OdGiWorldDraw obj)
delegate IntPtr SwigDelegateOdGiWorldDraw_0(IntPtr protocolClass)
delegate IntPtr SwigDelegateOdGiWorldDraw_10()
static string getRealClassName(IntPtr ptr)
delegate IntPtr SwigDelegateOdGiWorldDraw_5()
delegate global::System.IntPtr SwigDelegateOdGiWorldDraw_11()
virtual double vb_deviation(Teigha.Core.OdGiDeviationType deviationType, Teigha.Core.OdGePoint3d pointOnCurve)
static OdGiWorldDraw cast(OdRxObject pObj)
virtual Teigha.Core.OdGiContext vb_context()
override OdRxObject queryX(OdRxClass protocolClass)
delegate IntPtr SwigDelegateOdGiWorldDraw_13()
override void Dispose(bool disposing)
delegate bool SwigDelegateOdGiWorldDraw_7()
OdGiWorldDraw(IntPtr cPtr, bool cMemoryOwn)
delegate IntPtr SwigDelegateOdGiWorldDraw_1()
delegate IntPtr SwigDelegateOdGiWorldDraw_6()
virtual OdGiWorldGeometry geometry()
delegate UInt32 SwigDelegateOdGiWorldDraw_9()
static HandleRef getCPtr(OdRxClass obj)
Definition OdRxClass.cs:25
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition OdRxObject.cs:21
virtual void copyFrom(OdRxObject pSource)
static HandleRef getCPtr(OdRxObject obj)
Definition OdRxObject.cs:26