Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGePolyline2d.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
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGePolyline2d(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGePolyline2d_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGePolyline2d 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 new OdGePolyline2d copy() {
43 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGePolyline2d_copy(swigCPtr);
44 OdGePolyline2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePolyline2d(cPtr, false);
46 return ret;
47 }
48
54
60
61 public new OdGePolyline2d rotateBy(double angle, OdGePoint2d basePoint) {
64 return ret;
65 }
66
72
78
79 public new OdGePolyline2d scaleBy(double scaleFactor, OdGePoint2d basePoint) {
80 OdGePolyline2d ret = new OdGePolyline2d(GlobalsPINVOKE.OdGePolyline2d_scaleBy__SWIG_0(swigCPtr, scaleFactor, OdGePoint2d.getCPtr(basePoint)), false);
82 return ret;
83 }
84
85 public new OdGePolyline2d scaleBy(double scaleFactor) {
86 OdGePolyline2d ret = new OdGePolyline2d(GlobalsPINVOKE.OdGePolyline2d_scaleBy__SWIG_1(swigCPtr, scaleFactor), false);
88 return ret;
89 }
90
91 public OdGePolyline2d() : this(GlobalsPINVOKE.new_OdGePolyline2d__SWIG_0(), true) {
93 }
94
95 public OdGePolyline2d(OdGePolyline2d source) : this(GlobalsPINVOKE.new_OdGePolyline2d__SWIG_1(OdGePolyline2d.getCPtr(source)), true) {
97 }
98
99 public OdGePolyline2d(OdGePoint2dArray fitpoints) : this(GlobalsPINVOKE.new_OdGePolyline2d__SWIG_2(OdGePoint2dArray.getCPtr(fitpoints).Handle), true) {
101 }
102
106
107 public OdGePolyline2d(OdGeCurve2d crv, double approxEps) : this(GlobalsPINVOKE.new_OdGePolyline2d__SWIG_4(OdGeCurve2d.getCPtr(crv), approxEps), true) {
109 }
110
116
117 public OdGePoint2d fitPointAt(int fitPointIndex) {
118 OdGePoint2d ret = new OdGePoint2d(GlobalsPINVOKE.OdGePolyline2d_fitPointAt(swigCPtr, fitPointIndex), true);
120 return ret;
121 }
122
123 public OdGeSplineEnt2d setFitPointAt(int fitPointIndex, OdGePoint2d point) {
124 OdGeSplineEnt2d ret = new OdGeSplineEnt2d(GlobalsPINVOKE.OdGePolyline2d_setFitPointAt(swigCPtr, fitPointIndex, OdGePoint2d.getCPtr(point)), false);
126 return ret;
127 }
128
134
139 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
140
145 public int vb_order() { return this.order(); }
146
147}
148
149}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGePolyline2d_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGePolyline2d_scaleBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGePolyline2d_setFitPointAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGePolyline2d_rotateBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGePolyline2d_scaleBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGePolyline2d_rotateBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGePolyline2d_translateBy(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static global::System.IntPtr OdGePolyline2d_copy(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGePolyline2d_mirror(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGePolyline2d_fitPointAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void delete_OdGePolyline2d(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGePolyline2d_transformBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdGePolyline2d_numFitPoints(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGeLine2d obj)
Definition OdGeLine2d.cs:25
static HandleRef getCPtr(OdGeMatrix2d obj)
static HandleRef getCPtr(OdGePoint2d obj)
OdGePolyline2d(OdGeKnotVector knots, OdGePoint2dArray points)
override void Dispose(bool disposing)
OdGePolyline2d(OdGePoint2dArray fitpoints)
OdGePolyline2d(OdGePolyline2d source)
new OdGePolyline2d scaleBy(double scaleFactor)
new OdGePolyline2d rotateBy(double angle, OdGePoint2d basePoint)
new OdGePolyline2d transformBy(OdGeMatrix2d xfm)
new OdGePolyline2d rotateBy(double angle)
new OdGePolyline2d scaleBy(double scaleFactor, OdGePoint2d basePoint)
new OdGePolyline2d copy()
new OdGePolyline2d translateBy(OdGeVector2d translateVec)
OdGeSplineEnt2d setFitPointAt(int fitPointIndex, OdGePoint2d point)
Teigha.Core.OdGe.EntityId vb_type()
new OdGePolyline2d mirror(OdGeLine2d line)
OdGePolyline2d(OdGeCurve2d crv, double approxEps)
OdGePolyline2d(IntPtr cPtr, bool cMemoryOwn)
OdGePoint2d fitPointAt(int fitPointIndex)
OdGePolyline2d Assign(OdGePolyline2d polyline)
static HandleRef getCPtr(OdGePolyline2d obj)
OdGeSplineEnt2d(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(OdGeVector2d obj)