Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDbCurvePE.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 OdDbCurvePE : OdRxObject {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDbCurvePE(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbCurvePE_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDbCurvePE 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 OdDbCurvePE cast(OdRxObject pObj) {// OdSmartPtr<OdDbCurvePE>
44 MemoryManager mMan = MemoryManager.GetMemoryManager();
45 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
47
48 OdDbCurvePE ret = null;
49 if (null != mTrans)
50 {
51 mTrans.AddObject((OdDbCurvePE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbCurvePE),ptr, true));
52 ret = (OdDbCurvePE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbCurvePE),ptr, false);
53 }
54 else
55 {
56 ret = (OdDbCurvePE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbCurvePE),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.OdDbCurvePE_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.OdDbCurvePE_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.OdDbCurvePE_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public static OdDbCurvePE createObject() {// OdSmartPtr<OdDbCurvePE>
85 MemoryManager mMan = MemoryManager.GetMemoryManager();
86 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
88
89 OdDbCurvePE ret = null;
90 if (null != mTrans)
91 {
92 mTrans.AddObject((OdDbCurvePE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbCurvePE),ptr, true));
93 ret = (OdDbCurvePE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbCurvePE),ptr, false);
94 }
95 else
96 {
97 ret = (OdDbCurvePE)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbCurvePE),ptr, true);
98 }
99
101 return ret;
102}
103
104 public virtual OdResult getOrthoProjectedCurve(OdDbCurve pCurve, OdGePlane projPlane, ref OdDbCurve /*OUT_PARAM for SMARTPTR*/ pProjCurve) {
105 /*OUT_PARAM for SMARTPTR pre*/ IntPtr tmp_pProjCurve = pProjCurve == null ? IntPtr.Zero : OdDbCurve.getCPtr(pProjCurve).Handle;
106 IntPtr saved_pProjCurve = tmp_pProjCurve;
107 /*OUT_PARAM for SMARTPTR pre*/
108 try {
109 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbCurvePE_getOrthoProjectedCurve(swigCPtr, OdDbCurve.getCPtr(pCurve), OdGePlane.getCPtr(projPlane), ref tmp_pProjCurve /*OUT_PARAM for SMARTPTR*/);
111 return ret;
112 } finally {
113if(tmp_pProjCurve == IntPtr.Zero) pProjCurve = null;
114 if(tmp_pProjCurve != IntPtr.Zero && tmp_pProjCurve != saved_pProjCurve)
115 {
116 MemoryTransaction mTrans_pProjCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
117 if(mTrans_pProjCurve != null)
118 mTrans_pProjCurve.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdDbCurve>(typeof(OdDbCurve), tmp_pProjCurve, true));
119 pProjCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdDbCurve>(typeof(OdDbCurve), tmp_pProjCurve, mTrans_pProjCurve == null);
120 /*OUT_PARAM for SMARTPTR*/
121 }
122 }
123 }
124
125 public virtual OdResult getProjectedCurve(OdDbCurve pCurve, OdGePlane projPlane, OdGeVector3d projDirection, ref OdDbCurve /*OUT_PARAM for SMARTPTR*/ pProjCurve) {
126 /*OUT_PARAM for SMARTPTR pre*/ IntPtr tmp_pProjCurve = pProjCurve == null ? IntPtr.Zero : OdDbCurve.getCPtr(pProjCurve).Handle;
127 IntPtr saved_pProjCurve = tmp_pProjCurve;
128 /*OUT_PARAM for SMARTPTR pre*/
129 try {
130 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbCurvePE_getProjectedCurve(swigCPtr, OdDbCurve.getCPtr(pCurve), OdGePlane.getCPtr(projPlane), OdGeVector3d.getCPtr(projDirection), ref tmp_pProjCurve /*OUT_PARAM for SMARTPTR*/);
132 return ret;
133 } finally {
134if(tmp_pProjCurve == IntPtr.Zero) pProjCurve = null;
135 if(tmp_pProjCurve != IntPtr.Zero && tmp_pProjCurve != saved_pProjCurve)
136 {
137 MemoryTransaction mTrans_pProjCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
138 if(mTrans_pProjCurve != null)
139 mTrans_pProjCurve.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdDbCurve>(typeof(OdDbCurve), tmp_pProjCurve, true));
140 pProjCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdDbCurve>(typeof(OdDbCurve), tmp_pProjCurve, mTrans_pProjCurve == null);
141 /*OUT_PARAM for SMARTPTR*/
142 }
143 }
144 }
145
146 public virtual OdResult getOffsetCurves(OdDbCurve pCurve, double offsetDistance, OdRxObjectPtrArray offsetCurves) {
147 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbCurvePE_getOffsetCurves(swigCPtr, OdDbCurve.getCPtr(pCurve), offsetDistance, OdRxObjectPtrArray.getCPtr(offsetCurves));
149 return ret;
150 }
151
152 public virtual OdResult getOffsetCurvesGivenPlaneNormal(OdDbCurve pCurve, OdGeVector3d normal, double offsetDistance, OdRxObjectPtrArray offsetCurves) {
155 return ret;
156 }
157
158 public virtual OdResult getSplitCurves(OdDbCurve pCurve, OdGeDoubleArray params_, OdRxObjectPtrArray curveSegments) {
161 return ret;
162 }
163
164 public virtual OdResult getSplitCurves(OdDbCurve pCurve, OdGePoint3dArray points, OdRxObjectPtrArray curveSegments) {
167 return ret;
168 }
169
170 public virtual OdResult extend(OdDbCurve pCurve, double param) {
173 return ret;
174 }
175
176 public virtual OdResult extend(OdDbCurve pCurve, bool extendStart, OdGePoint3d toPoint) {
177 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbCurvePE_extend__SWIG_1(swigCPtr, OdDbCurve.getCPtr(pCurve), extendStart, OdGePoint3d.getCPtr(toPoint));
179 return ret;
180 }
181
182 public virtual OdResult getSpline(OdDbCurve pCurve, ref OdDbSpline /*OUT_PARAM for SMARTPTR*/ spline) {
183 /*OUT_PARAM for SMARTPTR pre*/ IntPtr tmp_spline = spline == null ? IntPtr.Zero : OdDbSpline.getCPtr(spline).Handle;
184 IntPtr saved_spline = tmp_spline;
185 /*OUT_PARAM for SMARTPTR pre*/
186 try {
187 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbCurvePE_getSpline(swigCPtr, OdDbCurve.getCPtr(pCurve), ref tmp_spline /*OUT_PARAM for SMARTPTR*/);
189 return ret;
190 } finally {
191if(tmp_spline == IntPtr.Zero) spline = null;
192 if(tmp_spline != IntPtr.Zero && tmp_spline != saved_spline)
193 {
194 MemoryTransaction mTrans_spline = MemoryManager.GetMemoryManager().GetCurrentTransaction();
195 if(mTrans_spline != null)
196 mTrans_spline.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdDbSpline>(typeof(OdDbSpline), tmp_spline, true));
197 spline = Teigha.Core.Helpers.odCreateObjectInternal<OdDbSpline>(typeof(OdDbSpline), tmp_spline, mTrans_spline == null);
198 /*OUT_PARAM for SMARTPTR*/
199 }
200 }
201 }
202
203 public virtual OdResult getClosestPointTo(OdDbCurve pCurve, OdGePoint3d givenPoint, OdGePoint3d pointOnCurve, bool extend) {
206 return ret;
207 }
208
209 public virtual OdResult getClosestPointTo(OdDbCurve pCurve, OdGePoint3d givenPoint, OdGePoint3d pointOnCurve) {
212 return ret;
213 }
214
215 public virtual OdResult getClosestPointTo(OdDbCurve pCurve, OdGePoint3d givenPoint, OdGeVector3d normal, OdGePoint3d pointOnCurve, bool extend) {
218 return ret;
219 }
220
221 public virtual OdResult getClosestPointTo(OdDbCurve pCurve, OdGePoint3d givenPoint, OdGeVector3d normal, OdGePoint3d pointOnCurve) {
224 return ret;
225 }
226
227 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
228 string ret = TD_DbPINVOKE.OdDbCurvePE_getRealClassName(ptr /*SIMPLETYPE*/);
230 return ret;
231 }
232
233}
234
235}
static HandleRef getCPtr(OdGeDoubleArray obj)
static HandleRef getCPtr(OdGePlane obj)
Definition: OdGePlane.cs:25
static HandleRef getCPtr(OdGePoint3dArray obj)
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdGeVector3d obj)
Definition: OdGeVector3d.cs:26
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdRxObjectPtrArray obj)
static HandleRef getCPtr(OdDbCurve obj)
Definition: OdDbCurve.cs:26
static HandleRef getCPtr(OdDbCurvePE obj)
Definition: OdDbCurvePE.cs:26
virtual OdResult getClosestPointTo(OdDbCurve pCurve, OdGePoint3d givenPoint, OdGePoint3d pointOnCurve)
Definition: OdDbCurvePE.cs:209
static OdDbCurvePE cast(OdRxObject pObj)
Definition: OdDbCurvePE.cs:43
virtual OdResult getSplitCurves(OdDbCurve pCurve, OdGeDoubleArray params_, OdRxObjectPtrArray curveSegments)
Definition: OdDbCurvePE.cs:158
override OdRxClass isA()
Definition: OdDbCurvePE.cs:70
virtual OdResult getClosestPointTo(OdDbCurve pCurve, OdGePoint3d givenPoint, OdGeVector3d normal, OdGePoint3d pointOnCurve, bool extend)
Definition: OdDbCurvePE.cs:215
static string getRealClassName(IntPtr ptr)
Definition: OdDbCurvePE.cs:227
virtual OdResult getProjectedCurve(OdDbCurve pCurve, OdGePlane projPlane, OdGeVector3d projDirection, ref OdDbCurve pProjCurve)
Definition: OdDbCurvePE.cs:125
virtual OdResult getSplitCurves(OdDbCurve pCurve, OdGePoint3dArray points, OdRxObjectPtrArray curveSegments)
Definition: OdDbCurvePE.cs:164
virtual OdResult getOrthoProjectedCurve(OdDbCurve pCurve, OdGePlane projPlane, ref OdDbCurve pProjCurve)
Definition: OdDbCurvePE.cs:104
override void Dispose(bool disposing)
Definition: OdDbCurvePE.cs:30
virtual OdResult extend(OdDbCurve pCurve, bool extendStart, OdGePoint3d toPoint)
Definition: OdDbCurvePE.cs:176
virtual OdResult getClosestPointTo(OdDbCurve pCurve, OdGePoint3d givenPoint, OdGePoint3d pointOnCurve, bool extend)
Definition: OdDbCurvePE.cs:203
OdDbCurvePE(IntPtr cPtr, bool cMemoryOwn)
Definition: OdDbCurvePE.cs:21
virtual OdResult getOffsetCurves(OdDbCurve pCurve, double offsetDistance, OdRxObjectPtrArray offsetCurves)
Definition: OdDbCurvePE.cs:146
virtual OdResult getOffsetCurvesGivenPlaneNormal(OdDbCurve pCurve, OdGeVector3d normal, double offsetDistance, OdRxObjectPtrArray offsetCurves)
Definition: OdDbCurvePE.cs:152
virtual OdResult getSpline(OdDbCurve pCurve, ref OdDbSpline spline)
Definition: OdDbCurvePE.cs:182
override OdRxObject queryX(OdRxClass protocolClass)
Definition: OdDbCurvePE.cs:77
virtual OdResult extend(OdDbCurve pCurve, double param)
Definition: OdDbCurvePE.cs:170
virtual OdResult getClosestPointTo(OdDbCurve pCurve, OdGePoint3d givenPoint, OdGeVector3d normal, OdGePoint3d pointOnCurve)
Definition: OdDbCurvePE.cs:221
static new OdRxClass desc()
Definition: OdDbCurvePE.cs:63
static OdDbCurvePE createObject()
Definition: OdDbCurvePE.cs:84
static HandleRef getCPtr(OdDbSpline obj)
Definition: OdDbSpline.cs:26
static global::System.Exception Retrieve()
static IntPtr OdDbCurvePE_isA(HandleRef jarg1)
static string OdDbCurvePE_getRealClassName(IntPtr jarg1)
static IntPtr OdDbCurvePE_desc()
static int OdDbCurvePE_getProjectedCurve(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, ref IntPtr jarg5)
static int OdDbCurvePE_getSplitCurves__SWIG_0(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static IntPtr OdDbCurvePE_queryX(HandleRef jarg1, HandleRef jarg2)
static int OdDbCurvePE_getClosestPointTo__SWIG_3(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5)
static int OdDbCurvePE_getOffsetCurvesGivenPlaneNormal(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, double jarg4, global::System.Runtime.InteropServices.HandleRef jarg5)
static int OdDbCurvePE_getOrthoProjectedCurve(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, ref IntPtr jarg4)
static int OdDbCurvePE_getOffsetCurves(HandleRef jarg1, HandleRef jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static int OdDbCurvePE_getClosestPointTo__SWIG_0(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, bool jarg5)
static int OdDbCurvePE_getSplitCurves__SWIG_1(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void delete_OdDbCurvePE(HandleRef jarg1)
static IntPtr OdDbCurvePE_createObject()
static int OdDbCurvePE_extend__SWIG_1(HandleRef jarg1, HandleRef jarg2, bool jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static IntPtr OdDbCurvePE_cast(HandleRef jarg1)
static int OdDbCurvePE_getClosestPointTo__SWIG_2(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, bool jarg6)
static int OdDbCurvePE_extend__SWIG_0(HandleRef jarg1, HandleRef jarg2, double jarg3)
static int OdDbCurvePE_getSpline(HandleRef jarg1, HandleRef jarg2, ref IntPtr jarg3)
static int OdDbCurvePE_getClosestPointTo__SWIG_1(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)