Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdDb3dProfile.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.TD {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
17public class OdDb3dProfile : OdRxObject {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDb3dProfile(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDb3dProfile_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDb3dProfile 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
43 public static OdDb3dProfile cast(OdRxObject pObj) {// OdSmartPtr<OdDb3dProfile>
44 MemoryManager mMan = MemoryManager.GetMemoryManager();
45 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
47
48 OdDb3dProfile ret = null;
49 if (null != mTrans)
50 {
51 mTrans.AddObject((OdDb3dProfile)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDb3dProfile),ptr, true));
52 ret = (OdDb3dProfile)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDb3dProfile),ptr, false);
53 }
54 else
55 {
56 ret = (OdDb3dProfile)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDb3dProfile),ptr, true);
57 }
58
60 return ret;
61}
62
63 public new static OdRxClass desc() {
64 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdDb3dProfile_desc(),false); /*createInt 3_2*/
65
67 return ret;
68}
69
70 public override OdRxClass isA() {
71 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdDb3dProfile_isA(swigCPtr),false); /*createInt 3_2*/
72
74 return ret;
75}
76
77 public override OdRxObject queryX(OdRxClass protocolClass) {
78 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),TD_DbPINVOKE.OdDb3dProfile_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public static OdDb3dProfile createObject() {// OdSmartPtr<OdDb3dProfile>
85 MemoryManager mMan = MemoryManager.GetMemoryManager();
86 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
88
89 OdDb3dProfile ret = null;
90 if (null != mTrans)
91 {
92 mTrans.AddObject((OdDb3dProfile)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDb3dProfile),ptr, true));
93 ret = (OdDb3dProfile)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDb3dProfile),ptr, false);
94 }
95 else
96 {
97 ret = (OdDb3dProfile)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDb3dProfile),ptr, true);
98 }
99
101 return ret;
102}
103
104 public static OdDb3dProfile createObject(OdDbFullSubentPath faceSubentPath) {// OdSmartPtr<OdDb3dProfile>
105 MemoryManager mMan = MemoryManager.GetMemoryManager();
106 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
108
109 OdDb3dProfile ret = null;
110 if (null != mTrans)
111 {
112 mTrans.AddObject((OdDb3dProfile)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDb3dProfile),ptr, true));
113 ret = (OdDb3dProfile)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDb3dProfile),ptr, false);
114 }
115 else
116 {
117 ret = (OdDb3dProfile)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDb3dProfile),ptr, true);
118 }
119
121 return ret;
122}
123
128
129 public OdDbEntity entity() {
130 OdDbEntity ret = (OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),TD_DbPINVOKE.OdDb3dProfile_entity(swigCPtr),false); /*createInt 3_2*/
131
133 return ret;
134}
135
141
147
153
159
161 OdDb3dProfile ret = (OdDb3dProfile)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDb3dProfile),TD_DbPINVOKE.OdDb3dProfile_Assign(swigCPtr, OdDb3dProfile.getCPtr(src)),false); /*createInt 3_1*/
162
164 return ret;
165}
166
167 public bool isClosed(OdGeTol tol) {
170 return ret;
171 }
172
173 public bool isClosed() {
174 bool ret = TD_DbPINVOKE.OdDb3dProfile_isClosed__SWIG_1(swigCPtr);
176 return ret;
177 }
178
179 public bool isPlanar() {
180 bool ret = TD_DbPINVOKE.OdDb3dProfile_isPlanar(swigCPtr);
182 return ret;
183 }
184
185 public bool isSubent() {
186 bool ret = TD_DbPINVOKE.OdDb3dProfile_isSubent(swigCPtr);
188 return ret;
189 }
190
191 public bool isFace() {
192 bool ret = TD_DbPINVOKE.OdDb3dProfile_isFace(swigCPtr);
194 return ret;
195 }
196
197 public bool isEdge() {
198 bool ret = TD_DbPINVOKE.OdDb3dProfile_isEdge(swigCPtr);
200 return ret;
201 }
202
203 public bool isValid() {
204 bool ret = TD_DbPINVOKE.OdDb3dProfile_isValid(swigCPtr);
206 return ret;
207 }
208
214
215 public static OdResult mergeProfiles(OdDb3dProfileArray profileArr, bool mergeEdges, bool mergeCurves, OdDb3dProfileArray mergedProfileArr) {
216 OdResult ret = (OdResult)TD_DbPINVOKE.OdDb3dProfile_mergeProfiles(OdDb3dProfileArray.getCPtr(profileArr).Handle, mergeEdges, mergeCurves, OdDb3dProfileArray.getCPtr(mergedProfileArr).Handle);
218 return ret;
219 }
220
221 protected static string getRealClassName(IntPtr ptr) {
222 string ret = TD_DbPINVOKE.OdDb3dProfile_getRealClassName(ptr /*SIMPLETYPE*/);
224 return ret;
225 }
226
231 public Teigha.TD.OdDbEntity vb_entity() { return this.entity(); }
232
233}
234
235}
static HandleRef getCPtr(OdGeTol obj)
Definition OdGeTol.cs:26
static HandleRef getCPtr(OdRxClass obj)
Definition OdRxClass.cs:25
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition OdRxObject.cs:21
static HandleRef getCPtr(OdRxObject obj)
Definition OdRxObject.cs:26
static HandleRef getCPtr(OdDb3dProfileArray obj)
static OdDb3dProfile createObject(OdDbFullSubentPath faceSubentPath)
static OdResult mergeProfiles(OdDb3dProfileArray profileArr, bool mergeEdges, bool mergeCurves, OdDb3dProfileArray mergedProfileArr)
bool isClosed(OdGeTol tol)
Teigha.TD.OdDbEntity vb_entity()
override void Dispose(bool disposing)
OdDb3dProfile Assign(OdDb3dProfile src)
override void copyFrom(OdRxObject src)
static OdDb3dProfile cast(OdRxObject pObj)
OdResult getPathRef(OdDbPathRef pathRef)
OdDb3dProfile(IntPtr cPtr, bool cMemoryOwn)
static new OdRxClass desc()
override OdRxClass isA()
static string getRealClassName(IntPtr ptr)
static HandleRef getCPtr(OdDb3dProfile obj)
OdResult getVertexRef(OdDbVertexRef vertexRef)
override OdRxObject queryX(OdRxClass protocolClass)
static OdDb3dProfile createObject()
static HandleRef getCPtr(OdDbEntity obj)
Definition OdDbEntity.cs:26
static HandleRef getCPtr(OdDbFullSubentPath obj)
static HandleRef getCPtr(OdDbPathRef obj)
static HandleRef getCPtr(OdDbVertexRef obj)
static global::System.Exception Retrieve()
static IntPtr OdDb3dProfile_Assign(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDb3dProfile_queryX(HandleRef jarg1, HandleRef jarg2)
static bool OdDb3dProfile_isValid(HandleRef jarg1)
static bool OdDb3dProfile_isClosed__SWIG_1(HandleRef jarg1)
static bool OdDb3dProfile_isSubent(HandleRef jarg1)
static int OdDb3dProfile_mergeProfiles(IntPtr jarg1, bool jarg2, bool jarg3, IntPtr jarg4)
static IntPtr OdDb3dProfile_createObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdDb3dProfile_set__SWIG_2(HandleRef jarg1, HandleRef jarg2)
static bool OdDb3dProfile_isFace(HandleRef jarg1)
static void delete_OdDb3dProfile(HandleRef jarg1)
static int OdDb3dProfile_getPathRef(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDb3dProfile_createObject__SWIG_0()
static bool OdDb3dProfile_isClosed__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDb3dProfile_desc()
static IntPtr OdDb3dProfile_entity(HandleRef jarg1)
static bool OdDb3dProfile_isEdge(HandleRef jarg1)
static void OdDb3dProfile_copyFrom(HandleRef jarg1, HandleRef jarg2)
static int OdDb3dProfile_getVertexRef(HandleRef jarg1, HandleRef jarg2)
static bool OdDb3dProfile_isPlanar(HandleRef jarg1)
static int OdDb3dProfile_set__SWIG_1(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDb3dProfile_cast(HandleRef jarg1)
static string OdDb3dProfile_getRealClassName(IntPtr jarg1)
static IntPtr OdDb3dProfile_isA(HandleRef jarg1)
static int OdDb3dProfile_set__SWIG_0(HandleRef jarg1, HandleRef jarg2)