14using System.Runtime.InteropServices;
18 private Object locker =
new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 swigCPtr =
new HandleRef(
this, cPtr);
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
30 protected override void Dispose(
bool disposing) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
37 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
39 base.Dispose(disposing);
44 MemoryManager mMan = MemoryManager.GetMemoryManager();
45 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
85 MemoryManager mMan = MemoryManager.GetMemoryManager();
86 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
225 IntPtr tmp_spline = spline ==
null ? IntPtr.Zero :
OdDbSpline.
getCPtr(spline).Handle;
226 IntPtr saved_spline = tmp_spline;
233if(tmp_spline == IntPtr.Zero) spline =
null;
234 if(tmp_spline != IntPtr.Zero && tmp_spline != saved_spline)
236 MemoryTransaction mTrans_spline = MemoryManager.GetMemoryManager().GetCurrentTransaction();
237 if(mTrans_spline !=
null)
264 IntPtr tmp_pProjCurve = pProjCurve ==
null ? IntPtr.Zero :
OdDbCurve.
getCPtr(pProjCurve).Handle;
265 IntPtr saved_pProjCurve = tmp_pProjCurve;
272if(tmp_pProjCurve == IntPtr.Zero) pProjCurve =
null;
273 if(tmp_pProjCurve != IntPtr.Zero && tmp_pProjCurve != saved_pProjCurve)
275 MemoryTransaction mTrans_pProjCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
276 if(mTrans_pProjCurve !=
null)
285 IntPtr tmp_pProjCurve = pProjCurve ==
null ? IntPtr.Zero :
OdDbCurve.
getCPtr(pProjCurve).Handle;
286 IntPtr saved_pProjCurve = tmp_pProjCurve;
293if(tmp_pProjCurve == IntPtr.Zero) pProjCurve =
null;
294 if(tmp_pProjCurve != IntPtr.Zero && tmp_pProjCurve != saved_pProjCurve)
296 MemoryTransaction mTrans_pProjCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
297 if(mTrans_pProjCurve !=
null)
336IntPtr p_pGeCurve = IntPtr.Zero;
342MemoryTransaction mTrans_pGeCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
343 if(mTrans_pGeCurve !=
null)
351IntPtr p_pGeCurve = IntPtr.Zero;
357MemoryTransaction mTrans_pGeCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
358 if(mTrans_pGeCurve !=
null)
374 typeof(
OdDbCurve).GetField(
"swigCMemOwn", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(pDbCurve,
false);
375MemoryTransaction mTrans_pDbCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
376 if(mTrans_pDbCurve !=
null)
393 typeof(
OdDbCurve).GetField(
"swigCMemOwn", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(pDbCurve,
false);
394MemoryTransaction mTrans_pDbCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
395 if(mTrans_pDbCurve !=
null)
412 typeof(
OdDbCurve).GetField(
"swigCMemOwn", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(pDbCurve,
false);
413MemoryTransaction mTrans_pDbCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
414 if(mTrans_pDbCurve !=
null)
static HandleRef getCPtr(OdGeCurve3d obj)
static HandleRef getCPtr(OdGeDoubleArray obj)
static HandleRef getCPtr(OdGePlane obj)
static HandleRef getCPtr(OdGePoint3dArray obj)
static HandleRef getCPtr(OdGePoint3d obj)
static HandleRef getCPtr(OdGeTol obj)
static HandleRef getCPtr(OdGeVector3d obj)
virtual OdGiDrawable.DrawableType drawableType()
static HandleRef getCPtr(OdRxClass obj)
static HandleRef getCPtr(OdRxObject obj)
static HandleRef getCPtr(OdRxObjectPtrArray obj)
static string getRealClassName(IntPtr ptr)
virtual OdResult extend(double param)
virtual OdResult getFirstDeriv(double param, OdGeVector3d firstDeriv)
virtual OdResult getPointAtDist(double dist, OdGePoint3d pointOnCurve)
virtual OdResult getEndParam(out double endParam)
virtual OdResult getClosestPointTo(OdGePoint3d givenPoint, OdGeVector3d normal, OdGePoint3d pointOnCurve, bool extend)
OdDbCurve(IntPtr cPtr, bool cMemoryOwn)
virtual Teigha.TD.CollisionType vb_collisionType()
virtual OdResult getSplitCurves(OdGeDoubleArray params_, OdRxObjectPtrArray curveSegments)
override OdRxObject queryX(OdRxClass protocolClass)
virtual OdResult getOdGeCurve(out OdGeCurve3d pGeCurve, OdGeTol tol)
virtual OdResult getDistAtPoint(OdGePoint3d pointOnCurve, out double dist)
static OdResult createFromOdGeCurve(OdGeCurve3d geCurve, ref OdDbCurve pDbCurve)
virtual OdResult getArea(out double area)
virtual OdResult getParamAtDist(double dist, out double param)
virtual OdResult getPointAtParam(double param, OdGePoint3d pointOnCurve)
static OdDbCurve cast(OdRxObject pObj)
virtual OdResult getClosestPointTo(OdGePoint3d givenPoint, OdGeVector3d normal, OdGePoint3d pointOnCurve)
Teigha.TD.Visibility vb_visibility()
virtual OdResult getClosestPointTo(OdGePoint3d givenPoint, OdGePoint3d pointOnCurve)
static OdResult createFromOdGeCurve(OdGeCurve3d geCurve, ref OdDbCurve pDbCurve, OdGeVector3d normal)
virtual OdResult getOdGeCurve(out OdGeCurve3d pGeCurve)
virtual OdResult getOrthoProjectedCurve(OdGePlane projPlane, ref OdDbCurve pProjCurve)
virtual OdResult setFromOdGeCurve(OdGeCurve3d geCurve, OdGeVector3d normal)
virtual OdResult getSpline(ref OdDbSpline spline)
virtual bool isPeriodic()
virtual OdResult getClosestPointTo(OdGePoint3d givenPoint, OdGePoint3d pointOnCurve, bool extend)
virtual OdResult extend(bool extendStart, OdGePoint3d toPoint)
virtual OdResult getFirstDeriv(OdGePoint3d pointOnCurve, OdGeVector3d firstDeriv)
virtual OdResult getStartPoint(OdGePoint3d startPoint)
static OdResult createFromOdGeCurve(OdGeCurve3d geCurve, ref OdDbCurve pDbCurve, OdGeVector3d normal, OdGeTol tol)
virtual OdResult setFromOdGeCurve(OdGeCurve3d geCurve, OdGeVector3d normal, OdGeTol tol)
override void Dispose(bool disposing)
static HandleRef getCPtr(OdDbCurve obj)
virtual OdResult getStartParam(out double startParam)
virtual OdResult getSplitCurves(OdGePoint3dArray points, OdRxObjectPtrArray curveSegments)
virtual Teigha.Core.OdGiDrawable.DrawableType vb_drawableType()
virtual OdResult reverseCurve()
virtual OdResult getSecondDeriv(OdGePoint3d pointOnCurve, OdGeVector3d secondDeriv)
virtual OdResult getOffsetCurves(double offsetDistance, OdRxObjectPtrArray offsetCurves)
virtual OdResult setFromOdGeCurve(OdGeCurve3d geCurve)
virtual OdResult getSecondDeriv(double param, OdGeVector3d secondDeriv)
void vb_gripStatus(Teigha.Core.GripStat status)
virtual OdResult getDistAtParam(double param, out double dist)
virtual OdResult getProjectedCurve(OdGePlane projPlane, OdGeVector3d projDirection, ref OdDbCurve pProjCurve)
virtual OdResult getParamAtPoint(OdGePoint3d pointOnCurve, out double param)
virtual Int32 findVertexIndex(OdDbVertex vert)
virtual OdResult getEndPoint(OdGePoint3d endPoint)
static new OdRxClass desc()
Teigha.Core.LineWeight vb_lineWeight()
static new OdDbCurve createObject()
virtual OdResult getOffsetCurvesGivenPlaneNormal(OdGeVector3d normal, double offsetDistance, OdRxObjectPtrArray offsetCurves)
virtual CollisionType collisionType()
virtual void gripStatus(GripStat status)
static HandleRef getCPtr(OdDbSpline obj)
static HandleRef getCPtr(OdDbVertex obj)
static global::System.Exception Retrieve()
static int OdDbCurve_setFromOdGeCurve__SWIG_1(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void delete_OdDbCurve(HandleRef jarg1)
static int OdDbCurve_getSpline(HandleRef jarg1, ref IntPtr jarg2)
static int OdDbCurve_extend__SWIG_0(HandleRef jarg1, double jarg2)
static int OdDbCurve_getClosestPointTo__SWIG_2(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, bool jarg5)
static int OdDbCurve_getClosestPointTo__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, bool jarg4)
static int OdDbCurve_extend__SWIG_1(HandleRef jarg1, bool jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdDbCurve_isPeriodic(HandleRef jarg1)
static int OdDbCurve_getFirstDeriv__SWIG_0(HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static IntPtr OdDbCurve_desc()
static int OdDbCurve_createFromOdGeCurve__SWIG_2(HandleRef jarg1, ref IntPtr jarg2)
static IntPtr OdDbCurve_queryX(HandleRef jarg1, HandleRef jarg2)
static int OdDbCurve_getPointAtDist(HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static IntPtr OdDbCurve_cast(HandleRef jarg1)
static int OdDbCurve_getParamAtDist(HandleRef jarg1, double jarg2, out double jarg3)
static int OdDbCurve_getStartParam(HandleRef jarg1, out double jarg2)
static int OdDbCurve_createFromOdGeCurve__SWIG_1(HandleRef jarg1, ref IntPtr jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbCurve_getEndParam(HandleRef jarg1, out double jarg2)
static int OdDbCurve_createFromOdGeCurve__SWIG_0(HandleRef jarg1, ref IntPtr jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static int OdDbCurve_getClosestPointTo__SWIG_3(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static int OdDbCurve_getOrthoProjectedCurve(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ref IntPtr jarg3)
static int OdDbCurve_getClosestPointTo__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbCurve_getDistAtParam(HandleRef jarg1, double jarg2, out double jarg3)
static int OdDbCurve_getOffsetCurvesGivenPlaneNormal(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static int OdDbCurve_getOdGeCurve__SWIG_1(HandleRef jarg1, out IntPtr jarg2)
static string OdDbCurve_getRealClassName(IntPtr jarg1)
static int OdDbCurve_getOffsetCurves(HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbCurve_reverseCurve(HandleRef jarg1)
static Int32 OdDbCurve_findVertexIndex(HandleRef jarg1, HandleRef jarg2)
static int OdDbCurve_getArea(HandleRef jarg1, out double jarg2)
static int OdDbCurve_getDistAtPoint(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, out double jarg3)
static int OdDbCurve_getOdGeCurve__SWIG_0(HandleRef jarg1, out IntPtr jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbCurve_getSecondDeriv__SWIG_0(HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbCurve_getSplitCurves__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdDbCurve_isClosed(HandleRef jarg1)
static int OdDbCurve_getParamAtPoint(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, out double jarg3)
static IntPtr OdDbCurve_isA(HandleRef jarg1)
static int OdDbCurve_setFromOdGeCurve__SWIG_0(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static int OdDbCurve_getFirstDeriv__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbCurve_getSecondDeriv__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbCurve_getPointAtParam(HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbCurve_getEndPoint(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDbCurve_createObject()
static int OdDbCurve_getStartPoint(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDbCurve_getProjectedCurve(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, ref IntPtr jarg4)
static int OdDbCurve_getSplitCurves__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbCurve_setFromOdGeCurve__SWIG_2(HandleRef jarg1, HandleRef jarg2)