Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGeKnotVector.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 OdGeKnotVector : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdGeKnotVector(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdGeKnotVector obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public double this[int i]
52 {
53 get { return GetItem(i); }
54 }
55
56 public static double globalKnotTolerance {
57 get {
60 return ret;
61 }
62 }
63
65 get {
66 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeKnotVector_globalKnotTolerance2d_get();
67 OdGeVector2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeVector2d(cPtr, false);
69 return ret;
70 }
71 }
72
73 public OdGeKnotVector(double tol) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_0(tol), true) {
75 }
76
77 public OdGeKnotVector() : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_1(), true) {
79 }
80
81 public OdGeKnotVector(int size, int growSize, double tol) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_2(size, growSize, tol), true) {
83 }
84
85 public OdGeKnotVector(int size, int growSize) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_3(size, growSize), true) {
87 }
88
89 public OdGeKnotVector(int size, double[] /*SIMPLE_ARRAY*/ source, double tol) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_4(size, Teigha.Core.Helpers.MarshaldoubleFixedArray(source), tol), true) {
91 }
92
93 public OdGeKnotVector(int size, double[] /*SIMPLE_ARRAY*/ source) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_5(size, Teigha.Core.Helpers.MarshaldoubleFixedArray(source)), true) {
95 }
96
97 public OdGeKnotVector(int plusMult, OdGeKnotVector source) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_6(plusMult, OdGeKnotVector.getCPtr(source)), true) {
99 }
100
101 public OdGeKnotVector(OdGeKnotVector source) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_7(OdGeKnotVector.getCPtr(source)), true) {
103 }
104
105 public OdGeKnotVector(OdGeDoubleArray source, double tol) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_8(OdGeDoubleArray.getCPtr(source), tol), true) {
107 }
108
109 public OdGeKnotVector(OdGeDoubleArray source) : this(GlobalsPINVOKE.new_OdGeKnotVector__SWIG_9(OdGeDoubleArray.getCPtr(source)), true) {
111 }
112
116 return ret;
117 }
118
122 return ret;
123 }
124
125 public double GetItem(int i) {
126 double ret = GlobalsPINVOKE.OdGeKnotVector_GetItem(swigCPtr, i);
128 return ret;
129 }
130
131 public double startParam() {
132 double ret = GlobalsPINVOKE.OdGeKnotVector_startParam(swigCPtr);
134 return ret;
135 }
136
137 public double endParam() {
138 double ret = GlobalsPINVOKE.OdGeKnotVector_endParam(swigCPtr);
140 return ret;
141 }
142
143 public int multiplicityAt(int knotIndex) {
144 int ret = GlobalsPINVOKE.OdGeKnotVector_multiplicityAt__SWIG_0(swigCPtr, knotIndex);
146 return ret;
147 }
148
149 public int numIntervals() {
152 return ret;
153 }
154
155 public int getInterval(int order, double param, OdGeInterval interval) {
156 int ret = GlobalsPINVOKE.OdGeKnotVector_getInterval(swigCPtr, order, param, OdGeInterval.getCPtr(interval));
158 return ret;
159 }
160
161 public void getDistinctKnots(OdGeDoubleArray knots, OdIntArray multiplicity) {
164 }
165
169 }
170
171 public bool contains(double param) {
172 bool ret = GlobalsPINVOKE.OdGeKnotVector_contains(swigCPtr, param);
174 return ret;
175 }
176
177 public bool isOn(double knot) {
178 bool ret = GlobalsPINVOKE.OdGeKnotVector_isOn(swigCPtr, knot);
180 return ret;
181 }
182
186 return ret;
187 }
188
189 public OdGeKnotVector removeAt(int knotIndex) {
190 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_removeAt(swigCPtr, knotIndex), false);
192 return ret;
193 }
194
195 public OdGeKnotVector removeSubVector(int startIndex, int endIndex) {
196 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_removeSubVector(swigCPtr, startIndex, endIndex), false);
198 return ret;
199 }
200
201 public OdGeKnotVector insertAt(int knotIndex, double knot, int multiplicity) {
202 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_insertAt__SWIG_0(swigCPtr, knotIndex, knot, multiplicity), false);
204 return ret;
205 }
206
207 public OdGeKnotVector insertAt(int knotIndex, double knot) {
208 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_insertAt__SWIG_1(swigCPtr, knotIndex, knot), false);
210 return ret;
211 }
212
213 public OdGeKnotVector insert(double param) {
214 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_insert(swigCPtr, param), false);
216 return ret;
217 }
218
219 public int append(double knot) {
220 int ret = GlobalsPINVOKE.OdGeKnotVector_append__SWIG_0(swigCPtr, knot);
222 return ret;
223 }
224
225 public OdGeKnotVector append(OdGeKnotVector tail, double knotRatio) {
228 return ret;
229 }
230
234 return ret;
235 }
236
237 public int split(double param, OdGeKnotVector pKnotHead, int multLast, OdGeKnotVector pKnotTail, int multFirst) {
238 int ret = GlobalsPINVOKE.OdGeKnotVector_split(swigCPtr, param, OdGeKnotVector.getCPtr(pKnotHead), multLast, OdGeKnotVector.getCPtr(pKnotTail), multFirst);
240 return ret;
241 }
242
243 public OdGeKnotVector setRange(double lower, double upper) {
244 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_setRange(swigCPtr, lower, upper), false);
246 return ret;
247 }
248
249 public double tolerance() {
250 double ret = GlobalsPINVOKE.OdGeKnotVector_tolerance(swigCPtr);
252 return ret;
253 }
254
255 public OdGeKnotVector setTolerance(double tol) {
258 return ret;
259 }
260
261 public int length() {
262 int ret = GlobalsPINVOKE.OdGeKnotVector_length(swigCPtr);
264 return ret;
265 }
266
267 public bool isEmpty() {
268 bool ret = GlobalsPINVOKE.OdGeKnotVector_isEmpty(swigCPtr);
270 return ret;
271 }
272
273 public int logicalLength() {
276 return ret;
277 }
278
282 return ret;
283 }
284
285 public int physicalLength() {
288 return ret;
289 }
290
291 public OdGeKnotVector setPhysicalLength(int physLength) {
294 return ret;
295 }
296
297 public int growLength() {
298 int ret = GlobalsPINVOKE.OdGeKnotVector_growLength(swigCPtr);
300 return ret;
301 }
302
303 public OdGeKnotVector setGrowLength(int rowLength) {
304 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_setGrowLength(swigCPtr, rowLength), false);
306 return ret;
307 }
308
309 public OdGeKnotVector set(int size, double[] /*SIMPLE_ARRAY*/ source, double tol) {
310 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_set__SWIG_0(swigCPtr, size, Teigha.Core.Helpers.MarshaldoubleFixedArray(source), tol), false);
312 return ret;
313 }
314
315 public OdGeKnotVector set(int size, double[] /*SIMPLE_ARRAY*/ source) {
316 OdGeKnotVector ret = new OdGeKnotVector(GlobalsPINVOKE.OdGeKnotVector_set__SWIG_1(swigCPtr, size, Teigha.Core.Helpers.MarshaldoubleFixedArray(source)), false);
318 return ret;
319 }
320
321 public int multiplicityAt(double param) {
322 int ret = GlobalsPINVOKE.OdGeKnotVector_multiplicityAt__SWIG_1(swigCPtr, param);
324 return ret;
325 }
326
328// csout array
330
332 return res;
333}
334
335}
336
337}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGeKnotVector_removeSubVector(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void OdGeKnotVector_getDistinctKnots__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3)
static global::System.IntPtr OdGeKnotVector_globalKnotTolerance2d_get()
static int OdGeKnotVector_growLength(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdGeKnotVector(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeKnotVector_Assign__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeKnotVector_setPhysicalLength(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static double OdGeKnotVector_tolerance(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeKnotVector_isEmpty(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeKnotVector_numIntervals(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeKnotVector_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, IntPtr jarg3)
static global::System.IntPtr OdGeKnotVector_insertAt__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3)
static double OdGeKnotVector_globalKnotTolerance_get()
static double OdGeKnotVector_GetItem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool OdGeKnotVector_contains(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeKnotVector_setRange(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static int OdGeKnotVector_length(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGeKnotVector_startParam(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeKnotVector_insert(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeKnotVector_setGrowLength(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int OdGeKnotVector_getInterval(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void OdGeKnotVector_getDistinctKnots__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeKnotVector_removeAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr OdGeKnotVector_insertAt__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3, int jarg4)
static int OdGeKnotVector_logicalLength(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeKnotVector_split(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, int jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, int jarg6)
static int OdGeKnotVector_multiplicityAt__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static int OdGeKnotVector_physicalLength(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeKnotVector_multiplicityAt__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr OdGeKnotVector_setLogicalLength(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr OdGeKnotVector_getArray__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeKnotVector_append__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGeKnotVector_endParam(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeKnotVector_isOn(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeKnotVector_Assign__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeKnotVector_append__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3)
static global::System.IntPtr OdGeKnotVector_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, IntPtr jarg3, double jarg4)
static int OdGeKnotVector_append__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeKnotVector_setTolerance(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeKnotVector_reverse(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGeDoubleArray obj)
static HandleRef getCPtr(OdGeInterval obj)
Definition: OdGeInterval.cs:26
OdGeKnotVector(int plusMult, OdGeKnotVector source)
OdGeDoubleArray getArray()
bool contains(double param)
static double globalKnotTolerance
OdGeKnotVector setPhysicalLength(int physLength)
OdGeKnotVector insertAt(int knotIndex, double knot)
OdGeKnotVector setLogicalLength(int size)
OdGeKnotVector Assign(OdGeDoubleArray dblArray)
OdGeKnotVector setRange(double lower, double upper)
void getDistinctKnots(OdGeDoubleArray knots, OdIntArray multiplicity)
int split(double param, OdGeKnotVector pKnotHead, int multLast, OdGeKnotVector pKnotTail, int multFirst)
OdGeKnotVector(OdGeDoubleArray source, double tol)
OdGeKnotVector(int size, int growSize)
int multiplicityAt(double param)
OdGeKnotVector removeAt(int knotIndex)
OdGeKnotVector(int size, int growSize, double tol)
OdGeKnotVector(int size, double[] source, double tol)
OdGeKnotVector Assign(OdGeKnotVector knotVector)
OdGeKnotVector append(OdGeKnotVector tail)
OdGeKnotVector(OdGeDoubleArray source)
static HandleRef getCPtr(OdGeKnotVector obj)
static OdGeVector2d globalKnotTolerance2d
OdGeKnotVector removeSubVector(int startIndex, int endIndex)
OdGeKnotVector insertAt(int knotIndex, double knot, int multiplicity)
int getInterval(int order, double param, OdGeInterval interval)
int multiplicityAt(int knotIndex)
OdGeKnotVector append(OdGeKnotVector tail, double knotRatio)
OdGeKnotVector insert(double param)
void getDistinctKnots(OdGeDoubleArray knots)
OdGeKnotVector setGrowLength(int rowLength)
OdGeKnotVector(OdGeKnotVector source)
OdGeKnotVector(IntPtr cPtr, bool cMemoryOwn)
virtual void Dispose(bool disposing)
OdGeKnotVector(int size, double[] source)
OdGeKnotVector setTolerance(double tol)
static HandleRef getCPtr(OdIntArray obj)
Definition: OdIntArray.cs:28