Extended .NET SDK Documentation 2024 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 bool isRational() {
43 bool ret = GlobalsPINVOKE.OdGeSplineEnt2d_isRational(swigCPtr);
45 return ret;
46 }
47
48 public int degree() {
49 int ret = GlobalsPINVOKE.OdGeSplineEnt2d_degree(swigCPtr);
51 return ret;
52 }
53
54 public int order() {
55 int ret = GlobalsPINVOKE.OdGeSplineEnt2d_order(swigCPtr);
57 return ret;
58 }
59
60 public int numKnots() {
61 int ret = GlobalsPINVOKE.OdGeSplineEnt2d_numKnots(swigCPtr);
63 return ret;
64 }
65
69 return ret;
70 }
71
72 public int numControlPoints() {
75 return ret;
76 }
77
78 public int continuityAtKnot(int knotIndex, OdGeTol tol) {
81 return ret;
82 }
83
84 public int continuityAtKnot(int knotIndex) {
85 int ret = GlobalsPINVOKE.OdGeSplineEnt2d_continuityAtKnot__SWIG_1(swigCPtr, knotIndex);
87 return ret;
88 }
89
90 public double startParam() {
91 double ret = GlobalsPINVOKE.OdGeSplineEnt2d_startParam(swigCPtr);
93 return ret;
94 }
95
96 public double endParam() {
97 double ret = GlobalsPINVOKE.OdGeSplineEnt2d_endParam(swigCPtr);
99 return ret;
100 }
101
105 return ret;
106 }
107
111 return ret;
112 }
113
114 public bool hasFitData() {
115 bool ret = GlobalsPINVOKE.OdGeSplineEnt2d_hasFitData(swigCPtr);
117 return ret;
118 }
119
120 public double knotAt(int knotIndex) {
121 double ret = GlobalsPINVOKE.OdGeSplineEnt2d_knotAt(swigCPtr, knotIndex);
123 return ret;
124 }
125
126 public OdGeSplineEnt2d setKnotAt(int knotIndex, double val) {
127 OdGeSplineEnt2d ret = new OdGeSplineEnt2d(GlobalsPINVOKE.OdGeSplineEnt2d_setKnotAt(swigCPtr, knotIndex, val), false);
129 return ret;
130 }
131
132 public OdGePoint2d controlPointAt(int controlPointIndex) {
133 OdGePoint2d ret = new OdGePoint2d(GlobalsPINVOKE.OdGeSplineEnt2d_controlPointAt(swigCPtr, controlPointIndex), true);
135 return ret;
136 }
137
138 public OdGeSplineEnt2d setControlPointAt(int controlPointIndex, OdGePoint2d point) {
139 OdGeSplineEnt2d ret = new OdGeSplineEnt2d(GlobalsPINVOKE.OdGeSplineEnt2d_setControlPointAt(swigCPtr, controlPointIndex, OdGePoint2d.getCPtr(point)), false);
141 return ret;
142 }
143
147 return ret;
148 }
149
154 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
155
160 public int vb_order() { return this.order(); }
161
162}
163
164}
static global::System.Exception Retrieve()
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 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 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 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_knots(global::System.Runtime.InteropServices.HandleRef jarg1)
OdGe.EntityId type()
Definition: OdGeEntity2d.cs:57
static HandleRef getCPtr(OdGePoint2d obj)
Definition: OdGePoint2d.cs:26
override void Dispose(bool disposing)
OdGeSplineEnt2d(IntPtr cPtr, bool cMemoryOwn)
int continuityAtKnot(int knotIndex)
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)
OdGeSplineEnt2d setControlPointAt(int controlPointIndex, OdGePoint2d point)
static HandleRef getCPtr(OdGeTol obj)
Definition: OdGeTol.cs:26