Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGiPolyline.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.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class OdGiPolyline : OdRxObject {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGiPolyline(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiPolyline_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGiPolyline obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public static OdGiPolyline cast(OdRxObject pObj) {// OdSmartPtr<OdGiPolyline>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdGiPolyline ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdGiPolyline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiPolyline),ptr, true));
51 ret = (OdGiPolyline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiPolyline),ptr, false);
52 }
53 else
54 {
55 ret = (OdGiPolyline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiPolyline),ptr, true);
56 }
57
59 return ret;
60}
61
62 public new static OdRxClass desc() {
63 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiPolyline_desc(),false); /*createInt 3_2*/
64
66 return ret;
67}
68
69 public override OdRxClass isA() {
70 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiPolyline_isA(swigCPtr),false); /*createInt 3_2*/
71
73 return ret;
74}
75
76 public override OdRxObject queryX(OdRxClass protocolClass) {
77 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdGiPolyline_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdGiPolyline createObject() {// OdSmartPtr<OdGiPolyline>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
88 OdGiPolyline ret = null;
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdGiPolyline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiPolyline),ptr, true));
92 ret = (OdGiPolyline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiPolyline),ptr, false);
93 }
94 else
95 {
96 ret = (OdGiPolyline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiPolyline),ptr, true);
97 }
98
100 return ret;
101}
102
103 public virtual uint numVerts() {
104 uint ret = GlobalsPINVOKE.OdGiPolyline_numVerts(swigCPtr);
106 return ret;
107 }
108
109 public virtual bool isClosed() {
110 bool ret = GlobalsPINVOKE.OdGiPolyline_isClosed(swigCPtr);
112 return ret;
113 }
114
115 public virtual OdGeVector3d normal() {
118 return ret;
119 }
120
121 public virtual double thickness() {
122 double ret = GlobalsPINVOKE.OdGiPolyline_thickness(swigCPtr);
124 return ret;
125 }
126
127 public virtual double getConstantWidth() {
128 double ret = GlobalsPINVOKE.OdGiPolyline_getConstantWidth(swigCPtr);
130 return ret;
131 }
132
133 public virtual bool hasWidth() {
134 bool ret = GlobalsPINVOKE.OdGiPolyline_hasWidth(swigCPtr);
136 return ret;
137 }
138
139 public virtual bool hasPlinegen() {
140 bool ret = GlobalsPINVOKE.OdGiPolyline_hasPlinegen(swigCPtr);
142 return ret;
143 }
144
145 public virtual double elevation() {
146 double ret = GlobalsPINVOKE.OdGiPolyline_elevation(swigCPtr);
148 return ret;
149 }
150
151 public virtual OdGiPolyline.SegType segType(uint index) {
154 return ret;
155 }
156
157 public virtual void getLineSegAt(uint index, OdGeLineSeg2d ln) {
160 }
161
162 public virtual void getLineSegAt(uint index, OdGeLineSeg3d ln) {
165 }
166
167 public virtual void getArcSegAt(uint index, OdGeCircArc2d arc) {
170 }
171
172 public virtual void getArcSegAt(uint index, OdGeCircArc3d arc) {
175 }
176
177 public virtual void getPointAt(uint index, OdGePoint2d pt) {
180 }
181
182 public virtual double getBulgeAt(uint index) {
183 double ret = GlobalsPINVOKE.OdGiPolyline_getBulgeAt(swigCPtr, index);
185 return ret;
186 }
187
188 public virtual void getWidthsAt(uint index, out double startWidth, out double endWidth) {
189 GlobalsPINVOKE.OdGiPolyline_getWidthsAt(swigCPtr, index, out startWidth, out endWidth);
191 }
192
193 public virtual OdRxObject getDbPolyline() {// OdRxObjectPtr
194 MemoryManager mMan = MemoryManager.GetMemoryManager();
195 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
196 IntPtr ptr = GlobalsPINVOKE.OdGiPolyline_getDbPolyline(swigCPtr);
197
198 OdRxObject ret = null;
199 if (null != mTrans)
200 {
201 mTrans.AddObject((OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true));
202 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, false);
203 }
204 else
205 {
206 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true);
207 }
208
210 return ret;
211}
212
213 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
214 string ret = GlobalsPINVOKE.OdGiPolyline_getRealClassName(ptr /*SIMPLETYPE*/);
216 return ret;
217 }
218
223 public virtual Teigha.Core.OdGiPolyline.SegType vb_segType(uint index) { return this.segType(index); }
224
225 public enum SegType {
226 kLine,
227 kArc,
229 kPoint,
230 kEmpty
231 }
232
233}
234
235}
static global::System.Exception Retrieve()
static double OdGiPolyline_elevation(HandleRef jarg1)
static void OdGiPolyline_getLineSegAt__SWIG_0(HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static IntPtr OdGiPolyline_isA(HandleRef jarg1)
static bool OdGiPolyline_hasWidth(HandleRef jarg1)
static global::System.IntPtr OdGiPolyline_normal(HandleRef jarg1)
static void OdGiPolyline_getArcSegAt__SWIG_0(HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void delete_OdGiPolyline(HandleRef jarg1)
static IntPtr OdGiPolyline_queryX(HandleRef jarg1, HandleRef jarg2)
static bool OdGiPolyline_isClosed(HandleRef jarg1)
static double OdGiPolyline_getConstantWidth(HandleRef jarg1)
static bool OdGiPolyline_hasPlinegen(HandleRef jarg1)
static void OdGiPolyline_getPointAt(HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static IntPtr OdGiPolyline_getDbPolyline(HandleRef jarg1)
static void OdGiPolyline_getWidthsAt(HandleRef jarg1, uint jarg2, out double jarg3, out double jarg4)
static double OdGiPolyline_getBulgeAt(HandleRef jarg1, uint jarg2)
static string OdGiPolyline_getRealClassName(IntPtr jarg1)
static double OdGiPolyline_thickness(HandleRef jarg1)
static uint OdGiPolyline_numVerts(HandleRef jarg1)
static IntPtr OdGiPolyline_cast(HandleRef jarg1)
static IntPtr OdGiPolyline_createObject()
static IntPtr OdGiPolyline_desc()
static void OdGiPolyline_getArcSegAt__SWIG_1(HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdGiPolyline_getLineSegAt__SWIG_1(HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdGiPolyline_segType(HandleRef jarg1, uint jarg2)
static HandleRef getCPtr(OdGeCircArc2d obj)
static HandleRef getCPtr(OdGeCircArc3d obj)
static HandleRef getCPtr(OdGeLineSeg2d obj)
static HandleRef getCPtr(OdGeLineSeg3d obj)
static HandleRef getCPtr(OdGePoint2d obj)
Definition: OdGePoint2d.cs:26
static OdGiPolyline cast(OdRxObject pObj)
Definition: OdGiPolyline.cs:42
virtual void getPointAt(uint index, OdGePoint2d pt)
OdGiPolyline(IntPtr cPtr, bool cMemoryOwn)
Definition: OdGiPolyline.cs:20
override OdRxClass isA()
Definition: OdGiPolyline.cs:69
virtual uint numVerts()
static OdGiPolyline createObject()
Definition: OdGiPolyline.cs:83
virtual void getLineSegAt(uint index, OdGeLineSeg2d ln)
static string getRealClassName(IntPtr ptr)
virtual double getBulgeAt(uint index)
virtual void getArcSegAt(uint index, OdGeCircArc3d arc)
static new OdRxClass desc()
Definition: OdGiPolyline.cs:62
virtual void getLineSegAt(uint index, OdGeLineSeg3d ln)
virtual Teigha.Core.OdGiPolyline.SegType vb_segType(uint index)
virtual bool isClosed()
virtual void getWidthsAt(uint index, out double startWidth, out double endWidth)
virtual void getArcSegAt(uint index, OdGeCircArc2d arc)
virtual OdGeVector3d normal()
virtual OdGiPolyline.SegType segType(uint index)
static HandleRef getCPtr(OdGiPolyline obj)
Definition: OdGiPolyline.cs:25
override OdRxObject queryX(OdRxClass protocolClass)
Definition: OdGiPolyline.cs:76
override void Dispose(bool disposing)
Definition: OdGiPolyline.cs:29
virtual bool hasWidth()
virtual OdRxObject getDbPolyline()
virtual bool hasPlinegen()
virtual double getConstantWidth()
virtual double elevation()
virtual double thickness()
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26