Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDgMeshFaceLoops.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
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDgMeshFaceLoops(IntPtr cPtr, bool cMemoryOwn) : base(TG_DbPINVOKE.OdDgMeshFaceLoops_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDgMeshFaceLoops obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 protected override void Dispose(bool disposing) {
31 lock(this) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 if (swigCMemOwn) {
34 swigCMemOwn = false;
36 }
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 }
39 base.Dispose(disposing);
40 }
41 }
42
46 return ret;
47 }
48
49 public override byte getElementSubType() {
50// test csout
51 /*SIMPLETYPE*/
54 return ret;
55 }
56
57 public static OdDgMeshFaceLoops cast(OdRxObject pObj) {// OdSmartPtr<OdDgMeshFaceLoops>
58 MemoryManager mMan = MemoryManager.GetMemoryManager();
59 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
61
62 OdDgMeshFaceLoops ret = null;
63 if (null != mTrans)
64 {
65 mTrans.AddObject((OdDgMeshFaceLoops)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgMeshFaceLoops),ptr, true));
66 ret = (OdDgMeshFaceLoops)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgMeshFaceLoops),ptr, false);
67 }
68 else
69 {
70 ret = (OdDgMeshFaceLoops)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgMeshFaceLoops),ptr, true);
71 }
72
74 return ret;
75}
76
77 public new static OdRxClass desc() {
78 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TG_DbPINVOKE.OdDgMeshFaceLoops_desc(),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public override OdRxClass isA() {
85 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TG_DbPINVOKE.OdDgMeshFaceLoops_isA(swigCPtr),false); /*createInt 3_2*/
86
88 return ret;
89}
90
91 public override OdRxObject queryX(OdRxClass protocolClass) {
92 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),TG_DbPINVOKE.OdDgMeshFaceLoops_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
93
95 return ret;
96}
97
98 public new static OdDgMeshFaceLoops createObject() {// OdSmartPtr<OdDgMeshFaceLoops>
99 MemoryManager mMan = MemoryManager.GetMemoryManager();
100 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
102
103 OdDgMeshFaceLoops ret = null;
104 if (null != mTrans)
105 {
106 mTrans.AddObject((OdDgMeshFaceLoops)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgMeshFaceLoops),ptr, true));
107 ret = (OdDgMeshFaceLoops)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgMeshFaceLoops),ptr, false);
108 }
109 else
110 {
111 ret = (OdDgMeshFaceLoops)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgMeshFaceLoops),ptr, true);
112 }
113
115 return ret;
116}
117
118 public class FacePoint : global::System.IDisposable {
119 private Object locker = new Object();
120 private HandleRef swigCPtr;
121 protected bool swigCMemOwn;
122 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
123 public FacePoint(IntPtr cPtr, bool cMemoryOwn) {
124 swigCMemOwn = cMemoryOwn;
125 swigCPtr = new HandleRef(this, cPtr);
126 }
127 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
128 public static HandleRef getCPtr(FacePoint obj) {
129 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
130 }
131
132 ~FacePoint() {
133 Dispose(false);
134 }
135
136 public void Dispose() {
137 Dispose(true);
138 global::System.GC.SuppressFinalize(this);
139 }
140
141 protected virtual void Dispose(bool disposing) {
142 lock(this) {
143 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
144 if (swigCMemOwn) {
145 swigCMemOwn = false;
146 TG_DbPINVOKE.delete_OdDgMeshFaceLoops_FacePoint(swigCPtr); // NESTED_DTOR_CSHARP
147 }
148 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
149 }
150 }
151 }
152
153 public FacePoint() : this(TG_DbPINVOKE.new_OdDgMeshFaceLoops_FacePoint(), true) {
155 }
156
157 public Int32 m_pointIndex {
158 set {
159 /*SIMPLETYPE*/
162 }
163 get {
164 /*SIMPLETYPE*/
167 return ret;
168 }
169 }
170
171 public Int32 m_colorIndex {
172 set {
173 /*SIMPLETYPE*/
176 }
177 get {
178 /*SIMPLETYPE*/
181 return ret;
182 }
183 }
184
185 public double[] m_dColorRGB {
186 set { TG_DbPINVOKE.OdDgMeshFaceLoops_FacePoint_m_dColorRGB_set(swigCPtr, value /*DOUBLE_FIXED_ARRAY*/); /*DOUBLE_FIXED_ARRAY*/}
187
188 get { return Teigha.Core.Helpers.UnMarshalDoubleFixedArray(TG_DbPINVOKE.OdDgMeshFaceLoops_FacePoint_m_dColorRGB_get(swigCPtr), 3); /*DOUBLE_FIXED_ARRAY*/ }
189
190 }
191
193 set {
196 }
197 get {
198 global::System.IntPtr cPtr = TG_DbPINVOKE.OdDgMeshFaceLoops_FacePoint_m_vrNormal_get(swigCPtr);
199 OdGeVector3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeVector3d(cPtr, false);
201 return ret;
202 }
203 }
204
206 set {
209 }
210 get {
211 global::System.IntPtr cPtr = TG_DbPINVOKE.OdDgMeshFaceLoops_FacePoint_m_texCoords_get(swigCPtr);
212 OdGePoint2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePoint2d(cPtr, false);
214 return ret;
215 }
216 }
217
219 set {
222 }
223 get {
226 return ret;
227 }
228 }
229
230 }
231
232 public UInt32 getFacesNumber() {
233// test csout
234 /*SIMPLETYPE*/
235 UInt32 ret = TG_DbPINVOKE.OdDgMeshFaceLoops_getFacesNumber(swigCPtr);
237 return ret;
238 }
239
240 public void setFacesNumber(UInt32 /*SIMPLETYPE*/ number) {
241 TG_DbPINVOKE.OdDgMeshFaceLoops_setFacesNumber(swigCPtr, number /*SIMPLETYPE*/);
243 }
244
245 public void removeFace(UInt32 /*SIMPLETYPE*/ index) {
246 TG_DbPINVOKE.OdDgMeshFaceLoops_removeFace(swigCPtr, index /*SIMPLETYPE*/);
248 }
249
250 public void removeAllFaces() {
253 }
254
255 public UInt32 addFace(VerticesArray vertices) {
256// test csout
257 /*SIMPLETYPE*/
258 UInt32 ret = TG_DbPINVOKE.OdDgMeshFaceLoops_addFace(swigCPtr, VerticesArray.getCPtr(vertices));
260 return ret;
261 }
262
263 public void getFace(UInt32 /*SIMPLETYPE*/ index, VerticesArray vertices) {
264 TG_DbPINVOKE.OdDgMeshFaceLoops_getFace(swigCPtr, index /*SIMPLETYPE*/, VerticesArray.getCPtr(vertices));
266 }
267
268 public void setFace(UInt32 /*SIMPLETYPE*/ index, VerticesArray vertices) {
269 TG_DbPINVOKE.OdDgMeshFaceLoops_setFace(swigCPtr, index /*SIMPLETYPE*/, VerticesArray.getCPtr(vertices));
271 }
272
276 return ret;
277 }
278
282 return ret;
283 }
284
285 public bool getUseNormalsFlag() {
288 return ret;
289 }
290
294 return ret;
295 }
296
297 public void setUseColorTableIndexesFlag(bool bSet) {
300 }
301
302 public void setUseDoubleColorsFlag(bool bSet) {
305 }
306
307 public void setUseNormalsFlag(bool bSet) {
310 }
311
312 public void setUseTextureCoordinatesFlag(bool bSet) {
315 }
316
317 public UInt32 getPointsNumber() {
318// test csout
319 /*SIMPLETYPE*/
320 UInt32 ret = TG_DbPINVOKE.OdDgMeshFaceLoops_getPointsNumber(swigCPtr);
322 return ret;
323 }
324
325 public void setPointsNumber(UInt32 /*SIMPLETYPE*/ number) {
326 TG_DbPINVOKE.OdDgMeshFaceLoops_setPointsNumber(swigCPtr, number /*SIMPLETYPE*/);
328 }
329
330 public void removePoint(UInt32 /*SIMPLETYPE*/ index) {
331 TG_DbPINVOKE.OdDgMeshFaceLoops_removePoint(swigCPtr, index /*SIMPLETYPE*/);
333 }
334
335 public void removeAllPoints() {
338 }
339
340 public UInt32 addPoint(OdGePoint3d point) {
341// test csout
342 /*SIMPLETYPE*/
343 UInt32 ret = TG_DbPINVOKE.OdDgMeshFaceLoops_addPoint(swigCPtr, OdGePoint3d.getCPtr(point));
345 return ret;
346 }
347
348 public OdGePoint3d getPoint(UInt32 /*SIMPLETYPE*/ index) {
349 OdGePoint3d ret = new OdGePoint3d(TG_DbPINVOKE.OdDgMeshFaceLoops_getPoint(swigCPtr, index /*SIMPLETYPE*/), true);
351 return ret;
352 }
353
354 public void setPoint(UInt32 /*SIMPLETYPE*/ index, OdGePoint3d point) {
355 TG_DbPINVOKE.OdDgMeshFaceLoops_setPoint(swigCPtr, index /*SIMPLETYPE*/, OdGePoint3d.getCPtr(point));
357 }
358
359 public override bool subWorldDraw(OdGiWorldDraw pWd) {
362 return ret;
363 }
364
365 public override OdResult subGetGeomExtents(OdGeExtents3d extents) {
368 return ret;
369 }
370
371 public virtual OdResult subExplode(OdRxObjectPtrArray entitySet) {
374 return ret;
375 }
376
377 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
378 string ret = TG_DbPINVOKE.OdDgMeshFaceLoops_getRealClassName(ptr /*SIMPLETYPE*/);
380 return ret;
381 }
382
387 public virtual void vb_gripStatus(Teigha.TG.OdDgElement.GripStat status) { this.gripStatus(status); }
388
394
395}
396
397}
static HandleRef getCPtr(OdGeExtents3d obj)
static HandleRef getCPtr(OdGePoint2d obj)
Definition: OdGePoint2d.cs:26
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdGeVector3d obj)
Definition: OdGeVector3d.cs:26
virtual OdGiDrawable.DrawableType drawableType()
static HandleRef getCPtr(OdGiWorldDraw obj)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdRxObjectPtrArray obj)
virtual void gripStatus(OdDgElement.GripStat status)
Definition: OdDgElement.cs:877
FacePoint(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(FacePoint obj)
virtual void Dispose(bool disposing)
virtual void vb_gripStatus(Teigha.TG.OdDgElement.GripStat status)
void setUseTextureCoordinatesFlag(bool bSet)
override OdRxClass isA()
override OdRxObject queryX(OdRxClass protocolClass)
void setFacesNumber(UInt32 number)
void setPoint(UInt32 index, OdGePoint3d point)
override OdResult subGetGeomExtents(OdGeExtents3d extents)
void getFace(UInt32 index, VerticesArray vertices)
virtual Teigha.Core.OdGiDrawable.DrawableType vb_drawableType()
override void Dispose(bool disposing)
void setFace(UInt32 index, VerticesArray vertices)
override bool subWorldDraw(OdGiWorldDraw pWd)
virtual OdResult subExplode(OdRxObjectPtrArray entitySet)
override OdDgElement.ElementTypes getElementType()
UInt32 addPoint(OdGePoint3d point)
static string getRealClassName(IntPtr ptr)
static new OdDgMeshFaceLoops createObject()
static HandleRef getCPtr(OdDgMeshFaceLoops obj)
void setPointsNumber(UInt32 number)
OdDgMeshFaceLoops(IntPtr cPtr, bool cMemoryOwn)
void removePoint(UInt32 index)
static new OdRxClass desc()
UInt32 addFace(VerticesArray vertices)
static OdDgMeshFaceLoops cast(OdRxObject pObj)
OdGePoint3d getPoint(UInt32 index)
void setUseDoubleColorsFlag(bool bSet)
void setUseColorTableIndexesFlag(bool bSet)
static global::System.Exception Retrieve()
static int OdDgMeshFaceLoops_subExplode(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDgMeshFaceLoops_desc()
static string OdDgMeshFaceLoops_getRealClassName(IntPtr jarg1)
static void OdDgMeshFaceLoops_FacePoint_m_vrNormal_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDgMeshFaceLoops_setUseTextureCoordinatesFlag(HandleRef jarg1, bool jarg2)
static void OdDgMeshFaceLoops_setFace(HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdDgMeshFaceLoops_setFacesNumber(HandleRef jarg1, UInt32 jarg2)
static void OdDgMeshFaceLoops_setPointsNumber(HandleRef jarg1, UInt32 jarg2)
static IntPtr OdDgMeshFaceLoops_cast(HandleRef jarg1)
static void OdDgMeshFaceLoops_removeFace(HandleRef jarg1, UInt32 jarg2)
static bool OdDgMeshFaceLoops_getUseNormalsFlag(HandleRef jarg1)
static bool OdDgMeshFaceLoops_subWorldDraw(HandleRef jarg1, HandleRef jarg2)
static void OdDgMeshFaceLoops_FacePoint_m_pointIndex_set(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static bool OdDgMeshFaceLoops_FacePoint_m_impliesVisibleEdge_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDgMeshFaceLoops_getUseTextureCoordinatesFlag(HandleRef jarg1)
static IntPtr OdDgMeshFaceLoops_isA(HandleRef jarg1)
static UInt32 OdDgMeshFaceLoops_addFace(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdDgMeshFaceLoops(HandleRef jarg1)
static Int32 OdDgMeshFaceLoops_FacePoint_m_pointIndex_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 OdDgMeshFaceLoops_addPoint(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDgMeshFaceLoops_setUseDoubleColorsFlag(HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdDgMeshFaceLoops_FacePoint_m_vrNormal_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgMeshFaceLoops_removePoint(HandleRef jarg1, UInt32 jarg2)
static void OdDgMeshFaceLoops_removeAllPoints(HandleRef jarg1)
static void OdDgMeshFaceLoops_getFace(HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static IntPtr OdDgMeshFaceLoops_queryX(HandleRef jarg1, HandleRef jarg2)
static UInt32 OdDgMeshFaceLoops_getPointsNumber(HandleRef jarg1)
static global::System.IntPtr OdDgMeshFaceLoops_FacePoint_m_texCoords_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDgMeshFaceLoops_getUseColorTableIndexesFlag(HandleRef jarg1)
static bool OdDgMeshFaceLoops_getUseDoubleColorsFlag(HandleRef jarg1)
static void delete_OdDgMeshFaceLoops_FacePoint(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdDgMeshFaceLoops_getElementType(HandleRef jarg1)
static void OdDgMeshFaceLoops_FacePoint_m_dColorRGB_set(global::System.Runtime.InteropServices.HandleRef jarg1, [In, MarshalAs(UnmanagedType.LPArray, SizeConst=3)]double[] jarg2)
static Int32 OdDgMeshFaceLoops_FacePoint_m_colorIndex_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdDgMeshFaceLoops_FacePoint_m_dColorRGB_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdDgMeshFaceLoops_subGetGeomExtents(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static UInt32 OdDgMeshFaceLoops_getFacesNumber(HandleRef jarg1)
static byte OdDgMeshFaceLoops_getElementSubType(HandleRef jarg1)
static void OdDgMeshFaceLoops_FacePoint_m_impliesVisibleEdge_set(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdDgMeshFaceLoops_FacePoint_m_texCoords_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDgMeshFaceLoops_createObject()
static void OdDgMeshFaceLoops_removeAllFaces(HandleRef jarg1)
static void OdDgMeshFaceLoops_setUseColorTableIndexesFlag(HandleRef jarg1, bool jarg2)
static void OdDgMeshFaceLoops_setPoint(HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdDgMeshFaceLoops_getPoint(HandleRef jarg1, UInt32 jarg2)
static void OdDgMeshFaceLoops_setUseNormalsFlag(HandleRef jarg1, bool jarg2)
static void OdDgMeshFaceLoops_FacePoint_m_colorIndex_set(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static HandleRef getCPtr(VerticesArray obj)