Extended .NET SDK Documentation 2024 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 }
53
54 public static OdGiWorldDraw cast(OdRxObject pObj) {// OdSmartPtr<OdGiWorldDraw>
55 MemoryManager mMan = MemoryManager.GetMemoryManager();
56 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
58
59 OdGiWorldDraw ret = null;
60 if (null != mTrans)
61 {
62 mTrans.AddObject((OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),ptr, true));
63 ret = (OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),ptr, false);
64 }
65 else
66 {
67 ret = (OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),ptr, true);
68 }
69
71 return ret;
72}
73
74 public new static OdRxClass desc() {
75 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiWorldDraw_desc(),false); /*createInt 3_2*/
76
78 return ret;
79}
80
81 public override OdRxClass isA() {
82 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),(SwigDerivedClassHasMethod("isA", swigMethodTypes1) ? GlobalsPINVOKE.OdGiWorldDraw_isASwigExplicitOdGiWorldDraw(swigCPtr) : GlobalsPINVOKE.OdGiWorldDraw_isA(swigCPtr)),false); /*createInt 3_2*/
83
85 return ret;
86}
87
88 public override OdRxObject queryX(OdRxClass protocolClass) {
89 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*/
90
92 return ret;
93}
94
95 public new static OdGiWorldDraw createObject() {// OdSmartPtr<OdGiWorldDraw>
96 MemoryManager mMan = MemoryManager.GetMemoryManager();
97 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
99
100 OdGiWorldDraw ret = null;
101 if (null != mTrans)
102 {
103 mTrans.AddObject((OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),ptr, true));
104 ret = (OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),ptr, false);
105 }
106 else
107 {
108 ret = (OdGiWorldDraw)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldDraw),ptr, true);
109 }
110
112 return ret;
113}
114
115 public virtual OdGiWorldGeometry geometry() {
116 OdGiWorldGeometry ret = (OdGiWorldGeometry)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiWorldGeometry),GlobalsPINVOKE.OdGiWorldDraw_geometry(swigCPtr),false); /*createInt 3_1*/
117
119 return ret;
120}
121
122 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
123 string ret = GlobalsPINVOKE.OdGiWorldDraw_getRealClassName(ptr /*SIMPLETYPE*/);
125 return ret;
126 }
127
132 public virtual Teigha.Core.OdGiWorldGeometry vb_geometry() { return this.geometry(); }
133
138 public virtual double vb_deviation(Teigha.Core.OdGiDeviationType deviationType, Teigha.Core.OdGePoint3d pointOnCurve) { return this.deviation(deviationType, pointOnCurve); }
139
144 public virtual Teigha.Core.OdGiContext vb_context() { return this.context(); }
145
146 private void SwigDirectorConnect() {
147 if (SwigDerivedClassHasMethod("queryX", swigMethodTypes0))
148 swigDelegate0 = new SwigDelegateOdGiWorldDraw_0(SwigDirectorMethodqueryX);
149 if (SwigDerivedClassHasMethod("isA", swigMethodTypes1))
150 swigDelegate1 = new SwigDelegateOdGiWorldDraw_1(SwigDirectorMethodisA);
151 if (SwigDerivedClassHasMethod("regenType", swigMethodTypes2))
152 swigDelegate2 = new SwigDelegateOdGiWorldDraw_2(SwigDirectorMethodregenType);
153 if (SwigDerivedClassHasMethod("regenAbort", swigMethodTypes3))
154 swigDelegate3 = new SwigDelegateOdGiWorldDraw_3(SwigDirectorMethodregenAbort);
155 if (SwigDerivedClassHasMethod("subEntityTraits", swigMethodTypes4))
156 swigDelegate4 = new SwigDelegateOdGiWorldDraw_4(SwigDirectorMethodsubEntityTraits);
157 if (SwigDerivedClassHasMethod("rawGeometry", swigMethodTypes5))
158 swigDelegate5 = new SwigDelegateOdGiWorldDraw_5(SwigDirectorMethodrawGeometry);
159 if (SwigDerivedClassHasMethod("isDragging", swigMethodTypes6))
160 swigDelegate6 = new SwigDelegateOdGiWorldDraw_6(SwigDirectorMethodisDragging);
161 if (SwigDerivedClassHasMethod("deviation", swigMethodTypes7))
162 swigDelegate7 = new SwigDelegateOdGiWorldDraw_7(SwigDirectorMethoddeviation);
163 if (SwigDerivedClassHasMethod("numberOfIsolines", swigMethodTypes8))
164 swigDelegate8 = new SwigDelegateOdGiWorldDraw_8(SwigDirectorMethodnumberOfIsolines);
165 if (SwigDerivedClassHasMethod("context", swigMethodTypes9))
166 swigDelegate9 = new SwigDelegateOdGiWorldDraw_9(SwigDirectorMethodcontext);
167 if (SwigDerivedClassHasMethod("currentGiPath", swigMethodTypes10))
168 swigDelegate10 = new SwigDelegateOdGiWorldDraw_10(SwigDirectorMethodcurrentGiPath);
169 if (SwigDerivedClassHasMethod("displayModelerSilhouettes", swigMethodTypes11))
170 swigDelegate11 = new SwigDelegateOdGiWorldDraw_11(SwigDirectorMethoddisplayModelerSilhouettes);
171 if (SwigDerivedClassHasMethod("geometry", swigMethodTypes12))
172 swigDelegate12 = new SwigDelegateOdGiWorldDraw_12(SwigDirectorMethodgeometry);
173 GlobalsPINVOKE.OdGiWorldDraw_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12);
174 }
175
176 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
177 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);
178 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdGiWorldDraw));
179 return hasDerivedMethod;
180 }
181
182 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
183 return
184 // csdirectorout for OdRxObject*, OdRxObject&
185 OdRxObject.getCPtr(queryX(
186 (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,false) /*createInt 6_2*/ // csdirectorin for smart pointer
187)).Handle
188;
189 }
190
191 private IntPtr SwigDirectorMethodisA() {
192 return
193 // csdirectorout for OdRxClass*, OdRxClass&
194 OdRxClass.getCPtr(isA()).Handle
195;
196 }
197
198 private int SwigDirectorMethodregenType() {
199 return (int)regenType();
200 }
201
202 private bool SwigDirectorMethodregenAbort() {
203 return regenAbort();
204 }
205
206 private IntPtr SwigDirectorMethodsubEntityTraits() {
207 return
208 // csdirectorout for OdGiSubEntityTraits*, OdGiSubEntityTraits&
209 OdGiSubEntityTraits.getCPtr(subEntityTraits()).Handle
210;
211 }
212
213 private IntPtr SwigDirectorMethodrawGeometry() {
214 return
215 // csdirectorout for OdGiGeometry*, OdGiGeometry&
216 OdGiGeometry.getCPtr(rawGeometry()).Handle
217;
218 }
219
220 private bool SwigDirectorMethodisDragging() {
221 return isDragging();
222 }
223
224 private double SwigDirectorMethoddeviation(int deviationType, global::System.IntPtr pointOnCurve) {
225 return deviation((OdGiDeviationType)deviationType, new OdGePoint3d(pointOnCurve, false));
226 }
227
228 private UInt32 /*SIMPLETYPE*/ SwigDirectorMethodnumberOfIsolines() {
229 return numberOfIsolines() /*SIMPLETYPE*/;
230 }
231
232 private IntPtr SwigDirectorMethodcontext() {
233 return
234 // csdirectorout for OdGiContext*, OdGiContext&
235 OdGiContext.getCPtr(context()).Handle
236;
237 }
238
239 private global::System.IntPtr SwigDirectorMethodcurrentGiPath() {
240 return OdGiPathNode.getCPtr(currentGiPath()).Handle;
241 }
242
243 private bool SwigDirectorMethoddisplayModelerSilhouettes() {
245 }
246
247 private IntPtr SwigDirectorMethodgeometry() {
248 return
249 // csdirectorout for OdGiWorldGeometry*, OdGiWorldGeometry&
250 OdGiWorldGeometry.getCPtr(geometry()).Handle
251;
252 }
253
254 public delegate IntPtr SwigDelegateOdGiWorldDraw_0(IntPtr protocolClass);
255 public delegate IntPtr SwigDelegateOdGiWorldDraw_1();
256 public delegate int SwigDelegateOdGiWorldDraw_2();
257 public delegate bool SwigDelegateOdGiWorldDraw_3();
258 public delegate IntPtr SwigDelegateOdGiWorldDraw_4();
259 public delegate IntPtr SwigDelegateOdGiWorldDraw_5();
260 public delegate bool SwigDelegateOdGiWorldDraw_6();
261 public delegate double SwigDelegateOdGiWorldDraw_7(int deviationType, global::System.IntPtr pointOnCurve);
262 public delegate UInt32 /*SIMPLETYPE*/ SwigDelegateOdGiWorldDraw_8();
263 public delegate IntPtr SwigDelegateOdGiWorldDraw_9();
264 public delegate global::System.IntPtr SwigDelegateOdGiWorldDraw_10();
265 public delegate bool SwigDelegateOdGiWorldDraw_11();
266 public delegate IntPtr SwigDelegateOdGiWorldDraw_12();
267
268 private SwigDelegateOdGiWorldDraw_0 swigDelegate0;
269 private SwigDelegateOdGiWorldDraw_1 swigDelegate1;
270 private SwigDelegateOdGiWorldDraw_2 swigDelegate2;
271 private SwigDelegateOdGiWorldDraw_3 swigDelegate3;
272 private SwigDelegateOdGiWorldDraw_4 swigDelegate4;
273 private SwigDelegateOdGiWorldDraw_5 swigDelegate5;
274 private SwigDelegateOdGiWorldDraw_6 swigDelegate6;
275 private SwigDelegateOdGiWorldDraw_7 swigDelegate7;
276 private SwigDelegateOdGiWorldDraw_8 swigDelegate8;
277 private SwigDelegateOdGiWorldDraw_9 swigDelegate9;
278 private SwigDelegateOdGiWorldDraw_10 swigDelegate10;
279 private SwigDelegateOdGiWorldDraw_11 swigDelegate11;
280 private SwigDelegateOdGiWorldDraw_12 swigDelegate12;
281
282 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdRxClass) };
283 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
284 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { };
285 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { };
286 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
287 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { };
288 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { };
289 private static global::System.Type[] swigMethodTypes7 = new global::System.Type[] { typeof(OdGiDeviationType), typeof(OdGePoint3d) };
290 private static global::System.Type[] swigMethodTypes8 = new global::System.Type[] { };
291 private static global::System.Type[] swigMethodTypes9 = new global::System.Type[] { };
292 private static global::System.Type[] swigMethodTypes10 = new global::System.Type[] { };
293 private static global::System.Type[] swigMethodTypes11 = new global::System.Type[] { };
294 private static global::System.Type[] swigMethodTypes12 = new global::System.Type[] { };
295}
296
297}
static global::System.Exception Retrieve()
static IntPtr OdGiWorldDraw_cast(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)
static string OdGiWorldDraw_getRealClassName(IntPtr jarg1)
static void delete_OdGiWorldDraw(HandleRef jarg1)
static IntPtr OdGiWorldDraw_isA(HandleRef jarg1)
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()
delegate bool SwigDelegateOdGiWorldDraw_11()
override OdRxClass isA()
delegate IntPtr SwigDelegateOdGiWorldDraw_12()
virtual Teigha.Core.OdGiWorldGeometry vb_geometry()
delegate double SwigDelegateOdGiWorldDraw_7(int deviationType, global::System.IntPtr pointOnCurve)
static new OdGiWorldDraw createObject()
delegate IntPtr SwigDelegateOdGiWorldDraw_9()
static new OdRxClass desc()
delegate global::System.IntPtr SwigDelegateOdGiWorldDraw_10()
static HandleRef getCPtr(OdGiWorldDraw obj)
delegate IntPtr SwigDelegateOdGiWorldDraw_0(IntPtr protocolClass)
delegate UInt32 SwigDelegateOdGiWorldDraw_8()
delegate bool SwigDelegateOdGiWorldDraw_6()
static string getRealClassName(IntPtr ptr)
delegate IntPtr SwigDelegateOdGiWorldDraw_5()
virtual double vb_deviation(Teigha.Core.OdGiDeviationType deviationType, Teigha.Core.OdGePoint3d pointOnCurve)
delegate IntPtr SwigDelegateOdGiWorldDraw_4()
static OdGiWorldDraw cast(OdRxObject pObj)
virtual Teigha.Core.OdGiContext vb_context()
override OdRxObject queryX(OdRxClass protocolClass)
override void Dispose(bool disposing)
delegate int SwigDelegateOdGiWorldDraw_2()
OdGiWorldDraw(IntPtr cPtr, bool cMemoryOwn)
delegate IntPtr SwigDelegateOdGiWorldDraw_1()
virtual OdGiWorldGeometry geometry()
delegate bool SwigDelegateOdGiWorldDraw_3()
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26