Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdDgLine3d.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 OdDgLine3d(IntPtr cPtr, bool cMemoryOwn) : base(TG_DbPINVOKE.OdDgLine3d_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDgLine3d 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
48
49 public override byte getElementSubType() {
50// test csout
51 /*SIMPLETYPE*/
52 byte ret = TG_DbPINVOKE.OdDgLine3d_getElementSubType(swigCPtr);
54 return ret;
55 }
56
57 public static OdDgLine3d cast(OdRxObject pObj) {// OdSmartPtr<OdDgLine3d>
58 MemoryManager mMan = MemoryManager.GetMemoryManager();
59 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
61
62 OdDgLine3d ret = null;
63 if (null != mTrans)
64 {
65 mTrans.AddObject((OdDgLine3d)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLine3d),ptr, true));
66 ret = (OdDgLine3d)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLine3d),ptr, false);
67 }
68 else
69 {
70 ret = (OdDgLine3d)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLine3d),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.OdDgLine3d_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.OdDgLine3d_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.OdDgLine3d_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
93
95 return ret;
96}
97
98 public new static OdDgLine3d createObject() {// OdSmartPtr<OdDgLine3d>
99 MemoryManager mMan = MemoryManager.GetMemoryManager();
100 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
102
103 OdDgLine3d ret = null;
104 if (null != mTrans)
105 {
106 mTrans.AddObject((OdDgLine3d)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLine3d),ptr, true));
107 ret = (OdDgLine3d)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLine3d),ptr, false);
108 }
109 else
110 {
111 ret = (OdDgLine3d)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgLine3d),ptr, true);
112 }
113
115 return ret;
116}
117
123
128
134
139
145
146 public virtual void setInfiniteLineType(OdDgInfiniteLineType uInfiniteLineType) {
147 TG_DbPINVOKE.OdDgLine3d_setInfiniteLineType(swigCPtr, (int)uInfiniteLineType);
149 }
150
151 public override bool isClosed() {
152 bool ret = TG_DbPINVOKE.OdDgLine3d_isClosed(swigCPtr);
154 return ret;
155 }
156
157 public override bool isPeriodic() {
158 bool ret = TG_DbPINVOKE.OdDgLine3d_isPeriodic(swigCPtr);
160 return ret;
161 }
162
163 public override OdResult getStartParam(out double startParam) {
164 OdResult ret = (OdResult)TG_DbPINVOKE.OdDgLine3d_getStartParam(swigCPtr, out startParam);
166 return ret;
167 }
168
169 public override OdResult getEndParam(out double endParam) {
170 OdResult ret = (OdResult)TG_DbPINVOKE.OdDgLine3d_getEndParam(swigCPtr, out endParam);
172 return ret;
173 }
174
180
186
187 public override OdResult getPointAtParam(double param, OdGePoint3d pointOnCurve) {
188 OdResult ret = (OdResult)TG_DbPINVOKE.OdDgLine3d_getPointAtParam(swigCPtr, param, OdGePoint3d.getCPtr(pointOnCurve));
190 return ret;
191 }
192
193 public override OdResult getParamAtPoint(OdGePoint3d pointOnCurve, out double param) {
194 OdResult ret = (OdResult)TG_DbPINVOKE.OdDgLine3d_getParamAtPoint(swigCPtr, OdGePoint3d.getCPtr(pointOnCurve), out param);
196 return ret;
197 }
198
199 public override OdResult getDistAtParam(double param, out double dist) {
200 OdResult ret = (OdResult)TG_DbPINVOKE.OdDgLine3d_getDistAtParam(swigCPtr, param, out dist);
202 return ret;
203 }
204
205 public override OdResult getParamAtDist(double dist, out double param) {
206 OdResult ret = (OdResult)TG_DbPINVOKE.OdDgLine3d_getParamAtDist(swigCPtr, dist, out param);
208 return ret;
209 }
210
211 public override OdResult getFirstDeriv(double param, OdGeVector3d firstDeriv) {
212 OdResult ret = (OdResult)TG_DbPINVOKE.OdDgLine3d_getFirstDeriv(swigCPtr, param, OdGeVector3d.getCPtr(firstDeriv));
214 return ret;
215 }
216
217 public override OdResult getSecondDeriv(double param, OdGeVector3d secondDeriv) {
218 OdResult ret = (OdResult)TG_DbPINVOKE.OdDgLine3d_getSecondDeriv(swigCPtr, param, OdGeVector3d.getCPtr(secondDeriv));
220 return ret;
221 }
222
223 public override OdResult getArea(out double area) {
224 OdResult ret = (OdResult)TG_DbPINVOKE.OdDgLine3d_getArea(swigCPtr, out area);
226 return ret;
227 }
228
234
235 public override OdResult getOdGeCurve(out OdGeCurve3d pGeCurve, OdGeTol tol) {
236IntPtr p_pGeCurve = IntPtr.Zero; /*OUT_PARAM_OBJ PRE*/
237 try {
238 OdResult ret = (OdResult)TG_DbPINVOKE.OdDgLine3d_getOdGeCurve__SWIG_0(swigCPtr, out p_pGeCurve, OdGeTol.getCPtr(tol));
240 return ret;
241 } finally {
242MemoryTransaction mTrans_pGeCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
243 if(mTrans_pGeCurve != null)
244 mTrans_pGeCurve.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_pGeCurve, true));
245 pGeCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_pGeCurve, mTrans_pGeCurve == null);
246 /*OUT_PARAM_OBJ POST*/
247 }
248 }
249
250 public override OdResult getOdGeCurve(out OdGeCurve3d pGeCurve) {
251IntPtr p_pGeCurve = IntPtr.Zero; /*OUT_PARAM_OBJ PRE*/
252 try {
253 OdResult ret = (OdResult)TG_DbPINVOKE.OdDgLine3d_getOdGeCurve__SWIG_1(swigCPtr, out p_pGeCurve);
255 return ret;
256 } finally {
257MemoryTransaction mTrans_pGeCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
258 if(mTrans_pGeCurve != null)
259 mTrans_pGeCurve.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_pGeCurve, true));
260 pGeCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_pGeCurve, mTrans_pGeCurve == null);
261 /*OUT_PARAM_OBJ POST*/
262 }
263 }
264
270
276
282
283 public override bool subWorldDraw(OdGiWorldDraw pWd) {
286 return ret;
287 }
288
294
300
301 public override UInt32 subSetAttributes(OdGiDrawableTraits pTraits) {
302// test csout
303 /*SIMPLETYPE*/
304 UInt32 ret = TG_DbPINVOKE.OdDgLine3d_subSetAttributes(swigCPtr, OdGiDrawableTraits.getCPtr(pTraits));
306 return ret;
307 }
308
313
314 protected static string getRealClassName(IntPtr ptr) {
315 string ret = TG_DbPINVOKE.OdDgLine3d_getRealClassName(ptr /*SIMPLETYPE*/);
317 return ret;
318 }
319
324 public virtual void vb_gripStatus(Teigha.TG.OdDgElement.GripStat status) { this.gripStatus(status); }
325
331
332}
333
334}
static HandleRef getCPtr(OdGeCurve3d obj)
static HandleRef getCPtr(OdGeExtents3d obj)
static HandleRef getCPtr(OdGePoint3d obj)
static HandleRef getCPtr(OdGeTol obj)
Definition OdGeTol.cs:26
static HandleRef getCPtr(OdGeVector3d obj)
virtual OdGiDrawable.DrawableType drawableType()
static HandleRef getCPtr(OdGiDrawableTraits obj)
static HandleRef getCPtr(OdGiWorldDraw obj)
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
virtual void gripStatus(OdDgElement.GripStat status)
static HandleRef getCPtr(OdDgElementId obj)
static new OdRxClass desc()
Definition OdDgLine3d.cs:77
virtual OdGePoint3d getEndPoint()
override void Dispose(bool disposing)
Definition OdDgLine3d.cs:30
override OdResult getParamAtDist(double dist, out double param)
virtual OdGePoint3d getStartPoint()
override OdRxObject queryX(OdRxClass protocolClass)
Definition OdDgLine3d.cs:91
virtual void vb_gripStatus(Teigha.TG.OdDgElement.GripStat status)
override bool subWorldDraw(OdGiWorldDraw pWd)
override bool isClosed()
virtual Teigha.Core.OdGiDrawable.DrawableType vb_drawableType()
OdDgLine3d(IntPtr cPtr, bool cMemoryOwn)
Definition OdDgLine3d.cs:21
virtual OdDgInfiniteLineType getInfiniteLineType()
static HandleRef getCPtr(OdDgLine3d obj)
Definition OdDgLine3d.cs:26
override void copyFrom(OdRxObject pSource)
override OdResult getOdGeCurve(out OdGeCurve3d pGeCurve, OdGeTol tol)
virtual void setStartPoint(OdGePoint3d point)
override OdResult setFromOdGeCurve(OdGeCurve3d geCurve, OdGeVector3d normal, OdGeTol tol)
override OdResult subGetGeomExtents(OdGeExtents3d extents)
override OdResult subGetGeomExtents(OdDgElementId idView, OdGeExtents3d extents)
static OdDgLine3d cast(OdRxObject pObj)
Definition OdDgLine3d.cs:57
override OdResult getParamAtPoint(OdGePoint3d pointOnCurve, out double param)
override OdRxClass isA()
Definition OdDgLine3d.cs:84
override OdResult getFirstDeriv(double param, OdGeVector3d firstDeriv)
override OdResult setFromOdGeCurve(OdGeCurve3d geCurve, OdGeVector3d normal)
override OdResult reverseCurve()
override OdResult getPointAtParam(double param, OdGePoint3d pointOnCurve)
override OdResult getOdGeCurve(out OdGeCurve3d pGeCurve)
override OdResult getArea(out double area)
override OdResult getStartPoint(OdGePoint3d startPoint)
override byte getElementSubType()
Definition OdDgLine3d.cs:49
static new OdDgLine3d createObject()
Definition OdDgLine3d.cs:98
override UInt32 subSetAttributes(OdGiDrawableTraits pTraits)
override OdDgElement.ElementTypes getElementType()
Definition OdDgLine3d.cs:43
override OdResult getStartParam(out double startParam)
static string getRealClassName(IntPtr ptr)
override OdResult getEndParam(out double endParam)
override OdResult getDistAtParam(double param, out double dist)
override OdResult getEndPoint(OdGePoint3d endPoint)
override bool isPeriodic()
override OdResult getSecondDeriv(double param, OdGeVector3d secondDeriv)
virtual void setEndPoint(OdGePoint3d point)
override OdResult setFromOdGeCurve(OdGeCurve3d geCurve)
virtual void setInfiniteLineType(OdDgInfiniteLineType uInfiniteLineType)
static global::System.Exception Retrieve()
static int OdDgLine3d_getFirstDeriv(HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdDgLine3d_getEndPoint__SWIG_0(HandleRef jarg1)
static int OdDgLine3d_getDistAtParam(HandleRef jarg1, double jarg2, out double jarg3)
static int OdDgLine3d_getOdGeCurve__SWIG_1(HandleRef jarg1, out IntPtr jarg2)
static bool OdDgLine3d_isPeriodic(HandleRef jarg1)
static byte OdDgLine3d_getElementSubType(HandleRef jarg1)
static int OdDgLine3d_subGetGeomExtents__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static string OdDgLine3d_getRealClassName(IntPtr jarg1)
static global::System.IntPtr OdDgLine3d_getStartPoint__SWIG_0(HandleRef jarg1)
static bool OdDgLine3d_subWorldDraw(HandleRef jarg1, HandleRef jarg2)
static int OdDgLine3d_getEndPoint__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static UInt32 OdDgLine3d_subSetAttributes(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDgLine3d_createObject()
static int OdDgLine3d_getSecondDeriv(HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDgLine3d_getInfiniteLineType(HandleRef jarg1)
static IntPtr OdDgLine3d_isA(HandleRef jarg1)
static int OdDgLine3d_getParamAtPoint(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, out double jarg3)
static int OdDgLine3d_getOdGeCurve__SWIG_0(HandleRef jarg1, out IntPtr jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDgLine3d_getParamAtDist(HandleRef jarg1, double jarg2, out double jarg3)
static void OdDgLine3d_setInfiniteLineType(HandleRef jarg1, int jarg2)
static int OdDgLine3d_setFromOdGeCurve__SWIG_1(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDgLine3d_reverseCurve(HandleRef jarg1)
static bool OdDgLine3d_isClosed(HandleRef jarg1)
static void delete_OdDgLine3d(HandleRef jarg1)
static void OdDgLine3d_copyFrom(HandleRef jarg1, HandleRef jarg2)
static int OdDgLine3d_setFromOdGeCurve__SWIG_0(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static int OdDgLine3d_getStartPoint__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDgLine3d_queryX(HandleRef jarg1, HandleRef jarg2)
static void OdDgLine3d_setEndPoint(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDgLine3d_getElementType(HandleRef jarg1)
static int OdDgLine3d_getStartParam(HandleRef jarg1, out double jarg2)
static int OdDgLine3d_getArea(HandleRef jarg1, out double jarg2)
static int OdDgLine3d_setFromOdGeCurve__SWIG_2(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDgLine3d_cast(HandleRef jarg1)
static int OdDgLine3d_getEndParam(HandleRef jarg1, out double jarg2)
static void OdDgLine3d_setStartPoint(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDgLine3d_getPointAtParam(HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDgLine3d_subGetGeomExtents__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDgLine3d_desc()