Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGeSplineEnt2d.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 OdGeSplineEnt2d(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGeSplineEnt2d_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGeSplineEnt2d 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 OdGeSplineEnt2d copy() {
43 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeSplineEnt2d_copy(swigCPtr);
44 OdGeSplineEnt2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeSplineEnt2d(cPtr, false);
46 return ret;
47 }
48
54
60
66
72
78
79 public new OdGeSplineEnt2d scaleBy(double scaleFactor, OdGePoint2d basePoint) {
80 OdGeSplineEnt2d ret = new OdGeSplineEnt2d(GlobalsPINVOKE.OdGeSplineEnt2d_scaleBy__SWIG_0(swigCPtr, scaleFactor, OdGePoint2d.getCPtr(basePoint)), false);
82 return ret;
83 }
84
85 public new OdGeSplineEnt2d scaleBy(double scaleFactor) {
88 return ret;
89 }
90
96
97 public int degree() {
98 int ret = GlobalsPINVOKE.OdGeSplineEnt2d_degree(swigCPtr);
100 return ret;
101 }
102
103 public int order() {
104 int ret = GlobalsPINVOKE.OdGeSplineEnt2d_order(swigCPtr);
106 return ret;
107 }
108
109 public int numKnots() {
110 int ret = GlobalsPINVOKE.OdGeSplineEnt2d_numKnots(swigCPtr);
112 return ret;
113 }
114
120
126
127 public int continuityAtKnot(int knotIndex, OdGeTol tol) {
128 int ret = GlobalsPINVOKE.OdGeSplineEnt2d_continuityAtKnot__SWIG_0(swigCPtr, knotIndex, OdGeTol.getCPtr(tol));
130 return ret;
131 }
132
133 public int continuityAtKnot(int knotIndex) {
134 int ret = GlobalsPINVOKE.OdGeSplineEnt2d_continuityAtKnot__SWIG_1(swigCPtr, knotIndex);
136 return ret;
137 }
138
139 public double startParam() {
140 double ret = GlobalsPINVOKE.OdGeSplineEnt2d_startParam(swigCPtr);
142 return ret;
143 }
144
145 public double endParam() {
146 double ret = GlobalsPINVOKE.OdGeSplineEnt2d_endParam(swigCPtr);
148 return ret;
149 }
150
156
162
163 public bool hasFitData() {
164 bool ret = GlobalsPINVOKE.OdGeSplineEnt2d_hasFitData(swigCPtr);
166 return ret;
167 }
168
169 public double knotAt(int knotIndex) {
170 double ret = GlobalsPINVOKE.OdGeSplineEnt2d_knotAt(swigCPtr, knotIndex);
172 return ret;
173 }
174
175 public OdGeSplineEnt2d setKnotAt(int knotIndex, double val) {
176 OdGeSplineEnt2d ret = new OdGeSplineEnt2d(GlobalsPINVOKE.OdGeSplineEnt2d_setKnotAt(swigCPtr, knotIndex, val), false);
178 return ret;
179 }
180
181 public OdGePoint2d controlPointAt(int controlPointIndex) {
182 OdGePoint2d ret = new OdGePoint2d(GlobalsPINVOKE.OdGeSplineEnt2d_controlPointAt(swigCPtr, controlPointIndex), true);
184 return ret;
185 }
186
187 public OdGeSplineEnt2d setControlPointAt(int controlPointIndex, OdGePoint2d point) {
188 OdGeSplineEnt2d ret = new OdGeSplineEnt2d(GlobalsPINVOKE.OdGeSplineEnt2d_setControlPointAt(swigCPtr, controlPointIndex, OdGePoint2d.getCPtr(point)), false);
190 return ret;
191 }
192
198
203 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
204
209 public int vb_order() { return this.order(); }
210
211}
212
213}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGeSplineEnt2d_transformBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeSplineEnt2d_startPoint(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeSplineEnt2d_controlPointAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool OdGeSplineEnt2d_isRational(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeSplineEnt2d_order(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeSplineEnt2d_rotateBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeSplineEnt2d_scaleBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeSplineEnt2d_rotateBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeSplineEnt2d_mirror(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdGeSplineEnt2d_numControlPoints(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeSplineEnt2d_setKnotAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3)
static global::System.IntPtr OdGeSplineEnt2d_endPoint(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeSplineEnt2d_degree(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeSplineEnt2d_scaleBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static double OdGeSplineEnt2d_endParam(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeSplineEnt2d_setControlPointAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeSplineEnt2d_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeSplineEnt2d_hasFitData(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeSplineEnt2d_translateBy(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static double OdGeSplineEnt2d_knotAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int OdGeSplineEnt2d_continuityAtKnot__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdGeSplineEnt2d_numKnots(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeSplineEnt2d_continuityAtKnot__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void delete_OdGeSplineEnt2d(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGeSplineEnt2d_startParam(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeSplineEnt2d_copy(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeSplineEnt2d_knots(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)
new OdGeSplineEnt2d copy()
new OdGeSplineEnt2d rotateBy(double angle, OdGePoint2d basePoint)
new OdGeSplineEnt2d transformBy(OdGeMatrix2d xfm)
new OdGeSplineEnt2d scaleBy(double scaleFactor, OdGePoint2d basePoint)
override void Dispose(bool disposing)
OdGeSplineEnt2d(IntPtr cPtr, bool cMemoryOwn)
new OdGeSplineEnt2d mirror(OdGeLine2d line)
int continuityAtKnot(int knotIndex)
new OdGeSplineEnt2d rotateBy(double angle)
int continuityAtKnot(int knotIndex, OdGeTol tol)
OdGePoint2d controlPointAt(int controlPointIndex)
OdGeSplineEnt2d Assign(OdGeSplineEnt2d spline)
double knotAt(int knotIndex)
Teigha.Core.OdGe.EntityId vb_type()
static HandleRef getCPtr(OdGeSplineEnt2d obj)
OdGeSplineEnt2d setKnotAt(int knotIndex, double val)
new OdGeSplineEnt2d translateBy(OdGeVector2d translateVec)
new OdGeSplineEnt2d scaleBy(double scaleFactor)
OdGeSplineEnt2d setControlPointAt(int controlPointIndex, OdGePoint2d point)
static HandleRef getCPtr(OdGeTol obj)
Definition OdGeTol.cs:26
static HandleRef getCPtr(OdGeVector2d obj)