Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGeCubicSplineCurve2d.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 OdGeCubicSplineCurve2d(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGeCubicSplineCurve2d_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGeCubicSplineCurve2d 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 OdGeCubicSplineCurve2d() : this(GlobalsPINVOKE.new_OdGeCubicSplineCurve2d__SWIG_0(), true) {
44 }
45
46 public OdGeCubicSplineCurve2d(OdGeCubicSplineCurve2d source) : this(GlobalsPINVOKE.new_OdGeCubicSplineCurve2d__SWIG_1(OdGeCubicSplineCurve2d.getCPtr(source)), true) {
48 }
49
50 public OdGeCubicSplineCurve2d(OdGePoint2dArray fitPnts, OdGeTol tol) : this(GlobalsPINVOKE.new_OdGeCubicSplineCurve2d__SWIG_2(OdGePoint2dArray.getCPtr(fitPnts).Handle, OdGeTol.getCPtr(tol)), true) {
52 }
53
54 public OdGeCubicSplineCurve2d(OdGePoint2dArray fitPnts) : this(GlobalsPINVOKE.new_OdGeCubicSplineCurve2d__SWIG_3(OdGePoint2dArray.getCPtr(fitPnts).Handle), true) {
56 }
57
58 public OdGeCubicSplineCurve2d(OdGePoint2dArray fitPnts, OdGeVector2d startDeriv, OdGeVector2d endDeriv, OdGeTol tol) : this(GlobalsPINVOKE.new_OdGeCubicSplineCurve2d__SWIG_4(OdGePoint2dArray.getCPtr(fitPnts).Handle, OdGeVector2d.getCPtr(startDeriv).Handle, OdGeVector2d.getCPtr(endDeriv).Handle, OdGeTol.getCPtr(tol)), true) {
60 }
61
62 public OdGeCubicSplineCurve2d(OdGePoint2dArray fitPnts, OdGeVector2d startDeriv, OdGeVector2d endDeriv) : this(GlobalsPINVOKE.new_OdGeCubicSplineCurve2d__SWIG_5(OdGePoint2dArray.getCPtr(fitPnts).Handle, OdGeVector2d.getCPtr(startDeriv).Handle, OdGeVector2d.getCPtr(endDeriv).Handle), true) {
64 }
65
66 public OdGeCubicSplineCurve2d(OdGeCurve2d curve, double tol) : this(GlobalsPINVOKE.new_OdGeCubicSplineCurve2d__SWIG_6(OdGeCurve2d.getCPtr(curve), tol), true) {
68 }
69
70 public OdGeCubicSplineCurve2d(OdGeKnotVector knots, OdGePoint2dArray fitPnts, OdGeVector2dArray firstDerivs, bool isPeriodic) : this(GlobalsPINVOKE.new_OdGeCubicSplineCurve2d__SWIG_7(OdGeKnotVector.getCPtr(knots), OdGePoint2dArray.getCPtr(fitPnts).Handle, OdGeVector2dArray.getCPtr(firstDerivs), isPeriodic), true) {
72 }
73
74 public OdGeCubicSplineCurve2d(OdGeKnotVector knots, OdGePoint2dArray fitPnts, OdGeVector2dArray firstDerivs) : this(GlobalsPINVOKE.new_OdGeCubicSplineCurve2d__SWIG_8(OdGeKnotVector.getCPtr(knots), OdGePoint2dArray.getCPtr(fitPnts).Handle, OdGeVector2dArray.getCPtr(firstDerivs)), true) {
76 }
77
78 public int numFitPoints() {
81 return ret;
82 }
83
84 public OdGePoint2d fitPointAt(int fitPointIndex) {
85 OdGePoint2d ret = new OdGePoint2d(GlobalsPINVOKE.OdGeCubicSplineCurve2d_fitPointAt(swigCPtr, fitPointIndex), true);
87 return ret;
88 }
89
90 public OdGeCubicSplineCurve2d setFitPointAt(int fitPointIndex, OdGePoint2d point) {
93 return ret;
94 }
95
96 public OdGeVector2d firstDerivAt(int fitPointIndex) {
97 OdGeVector2d ret = new OdGeVector2d(GlobalsPINVOKE.OdGeCubicSplineCurve2d_firstDerivAt(swigCPtr, fitPointIndex), true);
99 return ret;
100 }
101
102 public OdGeCubicSplineCurve2d setFirstDerivAt(int fitPointIndex, OdGeVector2d deriv) {
105 return ret;
106 }
107
111 return ret;
112 }
113
118 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
119
124 public int vb_order() { return this.order(); }
125
126}
127
128}
static global::System.Exception Retrieve()
static int OdGeCubicSplineCurve2d_numFitPoints(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeCubicSplineCurve2d_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeCubicSplineCurve2d_fitPointAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr OdGeCubicSplineCurve2d_setFirstDerivAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, IntPtr jarg3)
static global::System.IntPtr OdGeCubicSplineCurve2d_firstDerivAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr OdGeCubicSplineCurve2d_setFitPointAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void delete_OdGeCubicSplineCurve2d(global::System.Runtime.InteropServices.HandleRef jarg1)
OdGeCubicSplineCurve2d(OdGeCubicSplineCurve2d source)
OdGePoint2d fitPointAt(int fitPointIndex)
OdGeCubicSplineCurve2d(OdGePoint2dArray fitPnts, OdGeVector2d startDeriv, OdGeVector2d endDeriv)
override void Dispose(bool disposing)
OdGeCubicSplineCurve2d(IntPtr cPtr, bool cMemoryOwn)
OdGeCubicSplineCurve2d(OdGeKnotVector knots, OdGePoint2dArray fitPnts, OdGeVector2dArray firstDerivs, bool isPeriodic)
OdGeCubicSplineCurve2d(OdGeKnotVector knots, OdGePoint2dArray fitPnts, OdGeVector2dArray firstDerivs)
OdGeCubicSplineCurve2d Assign(OdGeCubicSplineCurve2d spline)
OdGeCubicSplineCurve2d setFirstDerivAt(int fitPointIndex, OdGeVector2d deriv)
OdGeCubicSplineCurve2d setFitPointAt(int fitPointIndex, OdGePoint2d point)
OdGeCubicSplineCurve2d(OdGeCurve2d curve, double tol)
OdGeCubicSplineCurve2d(OdGePoint2dArray fitPnts, OdGeVector2d startDeriv, OdGeVector2d endDeriv, OdGeTol tol)
static HandleRef getCPtr(OdGeCubicSplineCurve2d obj)
OdGeCubicSplineCurve2d(OdGePoint2dArray fitPnts, OdGeTol tol)
OdGeVector2d firstDerivAt(int fitPointIndex)
OdGeCubicSplineCurve2d(OdGePoint2dArray fitPnts)
bool isPeriodic(out double period)
Definition: OdGeCurve2d.cs:245
OdGe.EntityId type()
Definition: OdGeEntity2d.cs:57
static HandleRef getCPtr(OdGePoint2d obj)
Definition: OdGePoint2d.cs:26
static HandleRef getCPtr(OdGeVector2d obj)
Definition: OdGeVector2d.cs:26