Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdDbSpline.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.TD {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
17public class OdDbSpline : OdDbCurve {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDbSpline(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbSpline_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDbSpline obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 protected override void Dispose(bool disposing) {
31 lock(this) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 if (swigCMemOwn) {
34 swigCMemOwn = false;
36 }
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 }
39 base.Dispose(disposing);
40 }
41 }
42
43 public static OdDbSpline cast(OdRxObject pObj) {// OdSmartPtr<OdDbSpline>
44 MemoryManager mMan = MemoryManager.GetMemoryManager();
45 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
47
48 OdDbSpline ret = null;
49 if (null != mTrans)
50 {
51 mTrans.AddObject((OdDbSpline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbSpline),ptr, true));
52 ret = (OdDbSpline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbSpline),ptr, false);
53 }
54 else
55 {
56 ret = (OdDbSpline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbSpline),ptr, true);
57 }
58
60 return ret;
61}
62
63 public new static OdRxClass desc() {
64 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdDbSpline_desc(),false); /*createInt 3_2*/
65
67 return ret;
68}
69
70 public override OdRxClass isA() {
71 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdDbSpline_isA(swigCPtr),false); /*createInt 3_2*/
72
74 return ret;
75}
76
77 public override OdRxObject queryX(OdRxClass protocolClass) {
78 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),TD_DbPINVOKE.OdDbSpline_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public new static OdDbSpline createObject() {// OdSmartPtr<OdDbSpline>
85 MemoryManager mMan = MemoryManager.GetMemoryManager();
86 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
88
89 OdDbSpline ret = null;
90 if (null != mTrans)
91 {
92 mTrans.AddObject((OdDbSpline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbSpline),ptr, true));
93 ret = (OdDbSpline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbSpline),ptr, false);
94 }
95 else
96 {
97 ret = (OdDbSpline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbSpline),ptr, true);
98 }
99
101 return ret;
102}
103
104 public bool isRational() {
105 bool ret = TD_DbPINVOKE.OdDbSpline_isRational(swigCPtr);
107 return ret;
108 }
109
110 public int degree() {
111 int ret = TD_DbPINVOKE.OdDbSpline_degree(swigCPtr);
113 return ret;
114 }
115
116 public void elevateDegree(int newDegree) {
117 TD_DbPINVOKE.OdDbSpline_elevateDegree(swigCPtr, newDegree);
119 }
120
126
127 public void getControlPointAt(int controlPointIndex, OdGePoint3d point) {
128 TD_DbPINVOKE.OdDbSpline_getControlPointAt(swigCPtr, controlPointIndex, OdGePoint3d.getCPtr(point));
130 }
131
132 public void setControlPointAt(int controlPointIndex, OdGePoint3d point) {
133 TD_DbPINVOKE.OdDbSpline_setControlPointAt(swigCPtr, controlPointIndex, OdGePoint3d.getCPtr(point));
135 }
136
137 public int numFitPoints() {
138 int ret = TD_DbPINVOKE.OdDbSpline_numFitPoints(swigCPtr);
140 return ret;
141 }
142
143 public OdResult getFitPointAt(int fitPointIndex, OdGePoint3d point) {
144 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_getFitPointAt(swigCPtr, fitPointIndex, OdGePoint3d.getCPtr(point));
146 return ret;
147 }
148
149 public void setFitPointAt(int fitPointIndex, OdGePoint3d point) {
150 TD_DbPINVOKE.OdDbSpline_setFitPointAt(swigCPtr, fitPointIndex, OdGePoint3d.getCPtr(point));
152 }
153
154 public void insertFitPointAt(int fitPointIndex, OdGePoint3d point) {
155 TD_DbPINVOKE.OdDbSpline_insertFitPointAt(swigCPtr, fitPointIndex, OdGePoint3d.getCPtr(point));
157 }
158
159 public void removeFitPointAt(int fitPointIndex) {
160 TD_DbPINVOKE.OdDbSpline_removeFitPointAt(swigCPtr, fitPointIndex);
162 }
163
164 public double fitTolerance() {
165 double ret = TD_DbPINVOKE.OdDbSpline_fitTolerance(swigCPtr);
167 return ret;
168 }
169
174
180
185
186 public bool hasFitData() {
187 bool ret = TD_DbPINVOKE.OdDbSpline_hasFitData(swigCPtr);
189 return ret;
190 }
191
192 public OdResult getFitData(OdGePoint3dArray fitPoints, out int degree, out double fitTolerance, out bool tangentsExist, OdGeVector3d startTangent, OdGeVector3d endTangent) {
193 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_getFitData__SWIG_0(swigCPtr, OdGePoint3dArray.getCPtr(fitPoints), out degree, out fitTolerance, out tangentsExist, OdGeVector3d.getCPtr(startTangent), OdGeVector3d.getCPtr(endTangent));
195 return ret;
196 }
197
198 public OdResult getFitData(OdGePoint3dArray fitPoints, out int degree, out double fitTolerance, out bool tangentsExist, OdGeVector3d startTangent, OdGeVector3d endTangent, ref OdGe.OdGeKnotParameterization knotParam) {
199 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_getFitData__SWIG_1(swigCPtr, OdGePoint3dArray.getCPtr(fitPoints), out degree, out fitTolerance, out tangentsExist, OdGeVector3d.getCPtr(startTangent), OdGeVector3d.getCPtr(endTangent), ref knotParam);
201 return ret;
202 }
203
208
213
218
219 public void getNurbsData(out int degree, out bool rational, out bool closed, out bool periodic, OdGePoint3dArray controlPoints, OdGeDoubleArray knots, OdGeDoubleArray weights, out double controlPtTol, out double knotTol) {
220 TD_DbPINVOKE.OdDbSpline_getNurbsData__SWIG_0(swigCPtr, out degree, out rational, out closed, out periodic, OdGePoint3dArray.getCPtr(controlPoints), OdGeDoubleArray.getCPtr(knots), OdGeDoubleArray.getCPtr(weights), out controlPtTol, out knotTol);
222 }
223
224 public void getNurbsData(out int degree, out bool rational, out bool closed, out bool periodic, OdGePoint3dArray controlPoints, OdGeKnotVector knots, OdGeDoubleArray weights, out double controlPtTol) {
225 TD_DbPINVOKE.OdDbSpline_getNurbsData__SWIG_1(swigCPtr, out degree, out rational, out closed, out periodic, OdGePoint3dArray.getCPtr(controlPoints), OdGeKnotVector.getCPtr(knots), OdGeDoubleArray.getCPtr(weights), out controlPtTol);
227 }
228
229 public void setNurbsData(int degree, bool rational, bool closed, bool periodic, OdGePoint3dArray controlPoints, OdGeDoubleArray knots, OdGeDoubleArray weights, double controlPtTol, double knotTol) {
230 TD_DbPINVOKE.OdDbSpline_setNurbsData__SWIG_0(swigCPtr, degree, rational, closed, periodic, OdGePoint3dArray.getCPtr(controlPoints), OdGeDoubleArray.getCPtr(knots), OdGeDoubleArray.getCPtr(weights), controlPtTol, knotTol);
232 }
233
234 public void setNurbsData(int degree, bool rational, bool closed, bool periodic, OdGePoint3dArray controlPoints, OdGeKnotVector knots, OdGeDoubleArray weights, double controlPtTol) {
235 TD_DbPINVOKE.OdDbSpline_setNurbsData__SWIG_1(swigCPtr, degree, rational, closed, periodic, OdGePoint3dArray.getCPtr(controlPoints), OdGeKnotVector.getCPtr(knots), OdGeDoubleArray.getCPtr(weights), controlPtTol);
237 }
238
239 public double weightAt(int weightIndex) {
240 double ret = TD_DbPINVOKE.OdDbSpline_weightAt(swigCPtr, weightIndex);
242 return ret;
243 }
244
245 public void setWeightAt(int weightIndex, double weight) {
246 TD_DbPINVOKE.OdDbSpline_setWeightAt(swigCPtr, weightIndex, weight);
248 }
249
250 public void insertKnot(double param) {
251 TD_DbPINVOKE.OdDbSpline_insertKnot(swigCPtr, param);
253 }
254
260
261 public override OdResult subGetClassID(IntPtr pClsid) {
262 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_subGetClassID(swigCPtr, pClsid /*SIMPLETYPE*/);
264 return ret;
265 }
266
272
277
283
288
289 public override bool subWorldDraw(OdGiWorldDraw pWd) {
292 return ret;
293 }
294
300
306
307 public override bool isPlanar() {
308 bool ret = TD_DbPINVOKE.OdDbSpline_isPlanar(swigCPtr);
310 return ret;
311 }
312
313 public override OdResult getPlane(OdGePlane plane, out Planarity planarity) {
314 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_getPlane(swigCPtr, OdGePlane.getCPtr(plane), out planarity);
316 return ret;
317 }
318
319 public override OdResult getPointAtParam(double param, OdGePoint3d pointOnCurve) {
320 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_getPointAtParam(swigCPtr, param, OdGePoint3d.getCPtr(pointOnCurve));
322 return ret;
323 }
324
325 public override OdResult getParamAtPoint(OdGePoint3d pointOnCurve, out double param) {
326 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_getParamAtPoint(swigCPtr, OdGePoint3d.getCPtr(pointOnCurve), out param);
328 return ret;
329 }
330
331 public override OdResult getStartParam(out double startParam) {
332 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_getStartParam(swigCPtr, out startParam);
334 return ret;
335 }
336
337 public override OdResult getEndParam(out double endParam) {
338 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_getEndParam(swigCPtr, out endParam);
340 return ret;
341 }
342
348
354
355 public override OdResult getDistAtParam(double param, out double dist) {
356 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_getDistAtParam(swigCPtr, param, out dist);
358 return ret;
359 }
360
361 public override OdResult getParamAtDist(double dist, out double param) {
362 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_getParamAtDist(swigCPtr, dist, out param);
364 return ret;
365 }
366
367 public override OdResult getFirstDeriv(double param, OdGeVector3d firstDeriv) {
368 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_getFirstDeriv(swigCPtr, param, OdGeVector3d.getCPtr(firstDeriv));
370 return ret;
371 }
372
373 public override OdResult getSecondDeriv(double param, OdGeVector3d secondDeriv) {
374 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_getSecondDeriv(swigCPtr, param, OdGeVector3d.getCPtr(secondDeriv));
376 return ret;
377 }
378
379 public override OdResult getArea(out double area) {
380 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_getArea(swigCPtr, out area);
382 return ret;
383 }
384
390
391 public override OdDbObject decomposeForSave(DwgVersion ver, OdDbObjectId replaceId, out bool exchangeXData) {// OdDbObjectPtr
392 MemoryManager mMan = MemoryManager.GetMemoryManager();
393 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
394 IntPtr ptr = TD_DbPINVOKE.OdDbSpline_decomposeForSave(swigCPtr, (int)ver, OdDbObjectId.getCPtr(replaceId), out exchangeXData);
395
396 OdDbObject ret = null;
397 if (null != mTrans)
398 {
399 mTrans.AddObject((OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbObject),ptr, true));
400 ret = (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbObject),ptr, false);
401 }
402 else
403 {
404 ret = (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbObject),ptr, true);
405 }
406
408 return ret;
409}
410
416
422
423 public bool cvFrame() {
424 bool ret = TD_DbPINVOKE.OdDbSpline_cvFrame(swigCPtr);
426 return ret;
427 }
428
429 public void setCvFrame(bool bVisible) {
430 TD_DbPINVOKE.OdDbSpline_setCvFrame(swigCPtr, bVisible);
432 }
433
434 public OdResult insertControlPointAt(double knotParam, OdGePoint3d ctrlPt, double weight) {
437 return ret;
438 }
439
445
451
452 public bool isNull() {
453 bool ret = TD_DbPINVOKE.OdDbSpline_isNull(swigCPtr);
455 return ret;
456 }
457
458 public bool modifyPositionAndTangent(double param, OdGePoint3d point, OdGeVector3d deriv) {
461 return ret;
462 }
463
464 public override OdResult getOdGeCurve(out OdGeCurve3d pGeCurve, OdGeTol tol) {
465IntPtr p_pGeCurve = IntPtr.Zero; /*OUT_PARAM_OBJ PRE*/
466 try {
467 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_getOdGeCurve__SWIG_0(swigCPtr, out p_pGeCurve, OdGeTol.getCPtr(tol));
469 return ret;
470 } finally {
471MemoryTransaction mTrans_pGeCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
472 if(mTrans_pGeCurve != null)
473 mTrans_pGeCurve.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_pGeCurve, true));
474 pGeCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_pGeCurve, mTrans_pGeCurve == null);
475 /*OUT_PARAM_OBJ POST*/
476 }
477 }
478
479 public override OdResult getOdGeCurve(out OdGeCurve3d pGeCurve) {
480IntPtr p_pGeCurve = IntPtr.Zero; /*OUT_PARAM_OBJ PRE*/
481 try {
482 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_getOdGeCurve__SWIG_1(swigCPtr, out p_pGeCurve);
484 return ret;
485 } finally {
486MemoryTransaction mTrans_pGeCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
487 if(mTrans_pGeCurve != null)
488 mTrans_pGeCurve.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_pGeCurve, true));
489 pGeCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_pGeCurve, mTrans_pGeCurve == null);
490 /*OUT_PARAM_OBJ POST*/
491 }
492 }
493
499
505
511
512 public OdResult toPolyline(ref OdDbCurve pCurve, int precision, Int32 maxSuggestedPrecision, uint numOfVerticesThreshold) {
513IntPtr p_pCurve = OdDbCurve.getCPtr(pCurve).Handle; /*OUT_PARAM_OBJ_AS_REF PRE*/
514 try {
515 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_toPolyline__SWIG_0(swigCPtr, ref p_pCurve, precision, maxSuggestedPrecision /*SIMPLETYPE*/, numOfVerticesThreshold);
517 return ret;
518 } finally {
519if (OdDbCurve.getCPtr(pCurve).Handle != p_pCurve)
520 {
521 pCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdDbCurve>(typeof(OdDbCurve), p_pCurve, false);
522 }
523 /*OUT_PARAM_OBJ_AS_REF POST*/
524 }
525 }
526
527 public OdResult toPolyline(ref OdDbCurve pCurve, int precision, Int32 maxSuggestedPrecision) {
528IntPtr p_pCurve = OdDbCurve.getCPtr(pCurve).Handle; /*OUT_PARAM_OBJ_AS_REF PRE*/
529 try {
530 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_toPolyline__SWIG_1(swigCPtr, ref p_pCurve, precision, maxSuggestedPrecision /*SIMPLETYPE*/);
532 return ret;
533 } finally {
534if (OdDbCurve.getCPtr(pCurve).Handle != p_pCurve)
535 {
536 pCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdDbCurve>(typeof(OdDbCurve), p_pCurve, false);
537 }
538 /*OUT_PARAM_OBJ_AS_REF POST*/
539 }
540 }
541
542 public OdResult toPolyline(ref OdDbCurve pCurve, int precision) {
543IntPtr p_pCurve = OdDbCurve.getCPtr(pCurve).Handle; /*OUT_PARAM_OBJ_AS_REF PRE*/
544 try {
545 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_toPolyline__SWIG_2(swigCPtr, ref p_pCurve, precision);
547 return ret;
548 } finally {
549if (OdDbCurve.getCPtr(pCurve).Handle != p_pCurve)
550 {
551 pCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdDbCurve>(typeof(OdDbCurve), p_pCurve, false);
552 }
553 /*OUT_PARAM_OBJ_AS_REF POST*/
554 }
555 }
556
557 public OdResult toPolyline(ref OdDbCurve pCurve) {
558IntPtr p_pCurve = OdDbCurve.getCPtr(pCurve).Handle; /*OUT_PARAM_OBJ_AS_REF PRE*/
559 try {
560 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_toPolyline__SWIG_3(swigCPtr, ref p_pCurve);
562 return ret;
563 } finally {
564if (OdDbCurve.getCPtr(pCurve).Handle != p_pCurve)
565 {
566 pCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdDbCurve>(typeof(OdDbCurve), p_pCurve, false);
567 }
568 /*OUT_PARAM_OBJ_AS_REF POST*/
569 }
570 }
571
572 public OdResult toPolyline(ref OdDbCurve pCurve, bool bConvertAsArcs, bool bToLWPolyline, int precision, Int32 maxSuggestedPrecision, uint numOfVerticesThreshold) {
573IntPtr p_pCurve = OdDbCurve.getCPtr(pCurve).Handle; /*OUT_PARAM_OBJ_AS_REF PRE*/
574 try {
575 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_toPolyline__SWIG_4(swigCPtr, ref p_pCurve, bConvertAsArcs, bToLWPolyline, precision, maxSuggestedPrecision /*SIMPLETYPE*/, numOfVerticesThreshold);
577 return ret;
578 } finally {
579if (OdDbCurve.getCPtr(pCurve).Handle != p_pCurve)
580 {
581 pCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdDbCurve>(typeof(OdDbCurve), p_pCurve, false);
582 }
583 /*OUT_PARAM_OBJ_AS_REF POST*/
584 }
585 }
586
587 public OdResult toPolyline(ref OdDbCurve pCurve, bool bConvertAsArcs, bool bToLWPolyline, int precision, Int32 maxSuggestedPrecision) {
588IntPtr p_pCurve = OdDbCurve.getCPtr(pCurve).Handle; /*OUT_PARAM_OBJ_AS_REF PRE*/
589 try {
590 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_toPolyline__SWIG_5(swigCPtr, ref p_pCurve, bConvertAsArcs, bToLWPolyline, precision, maxSuggestedPrecision /*SIMPLETYPE*/);
592 return ret;
593 } finally {
594if (OdDbCurve.getCPtr(pCurve).Handle != p_pCurve)
595 {
596 pCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdDbCurve>(typeof(OdDbCurve), p_pCurve, false);
597 }
598 /*OUT_PARAM_OBJ_AS_REF POST*/
599 }
600 }
601
602 public OdResult toPolyline(ref OdDbCurve pCurve, bool bConvertAsArcs, bool bToLWPolyline, int precision) {
603IntPtr p_pCurve = OdDbCurve.getCPtr(pCurve).Handle; /*OUT_PARAM_OBJ_AS_REF PRE*/
604 try {
605 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_toPolyline__SWIG_6(swigCPtr, ref p_pCurve, bConvertAsArcs, bToLWPolyline, precision);
607 return ret;
608 } finally {
609if (OdDbCurve.getCPtr(pCurve).Handle != p_pCurve)
610 {
611 pCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdDbCurve>(typeof(OdDbCurve), p_pCurve, false);
612 }
613 /*OUT_PARAM_OBJ_AS_REF POST*/
614 }
615 }
616
617 public OdResult toPolyline(ref OdDbCurve pCurve, bool bConvertAsArcs, bool bToLWPolyline) {
618IntPtr p_pCurve = OdDbCurve.getCPtr(pCurve).Handle; /*OUT_PARAM_OBJ_AS_REF PRE*/
619 try {
620 OdResult ret = (OdResult)TD_DbPINVOKE.OdDbSpline_toPolyline__SWIG_7(swigCPtr, ref p_pCurve, bConvertAsArcs, bToLWPolyline);
622 return ret;
623 } finally {
624if (OdDbCurve.getCPtr(pCurve).Handle != p_pCurve)
625 {
626 pCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdDbCurve>(typeof(OdDbCurve), p_pCurve, false);
627 }
628 /*OUT_PARAM_OBJ_AS_REF POST*/
629 }
630 }
631
637
638 protected static string getRealClassName(IntPtr ptr) {
639 string ret = TD_DbPINVOKE.OdDbSpline_getRealClassName(ptr /*SIMPLETYPE*/);
641 return ret;
642 }
643
648 public Teigha.TD.OdDbSpline.SplineType vb_type() { return this.type(); }
649
654 public void vb_gripStatus(Teigha.Core.GripStat status) { this.gripStatus(status); }
655
661
666 public string vb_material() { return this.material(); }
667
672 public virtual Teigha.TD.CollisionType vb_collisionType() { return this.collisionType(); }
673
678 public string vb_linetype() { return this.linetype(); }
679
685
691
692 public enum SplineType {
693 kFitPoints = 0,
695 }
696
697}
698
699}
static HandleRef getCPtr(OdGeCurve3d obj)
static HandleRef getCPtr(OdGeDoubleArray obj)
static HandleRef getCPtr(OdGeExtents3d obj)
OdGeKnotParameterization
Definition OdGe.cs:277
static HandleRef getCPtr(OdGeKnotVector obj)
static HandleRef getCPtr(OdGeMatrix3d obj)
static HandleRef getCPtr(OdGePlane obj)
Definition OdGePlane.cs:25
static HandleRef getCPtr(OdGePoint3dArray obj)
static HandleRef getCPtr(OdGePoint3d obj)
static HandleRef getCPtr(OdGeTol obj)
Definition OdGeTol.cs:26
static HandleRef getCPtr(OdGeVector3d obj)
virtual OdGiDrawable.DrawableType drawableType()
static HandleRef getCPtr(OdGiWorldDraw obj)
static HandleRef getCPtr(OdRxClass obj)
Definition OdRxClass.cs:25
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition OdRxObject.cs:21
static HandleRef getCPtr(OdRxObject obj)
Definition OdRxObject.cs:26
static HandleRef getCPtr(OdRxObjectPtrArray obj)
static HandleRef getCPtr(OdDbCurve obj)
Definition OdDbCurve.cs:26
static HandleRef getCPtr(OdDbDwgFiler obj)
static HandleRef getCPtr(OdDbDxfFiler obj)
LineWeight lineWeight()
virtual CollisionType collisionType()
virtual void gripStatus(GripStat status)
Visibility visibility()
OdDbObject(IntPtr cPtr, bool cMemoryOwn)
Definition OdDbObject.cs:21
static HandleRef getCPtr(OdDbObjectId obj)
Teigha.Core.LineWeight vb_lineWeight()
override void dwgOutFields(OdDbDwgFiler pFiler)
OdResult getFitTangents(OdGeVector3d startTangent, OdGeVector3d endTangent)
void setFitPointAt(int fitPointIndex, OdGePoint3d point)
override OdResult subGetClassID(IntPtr pClsid)
void setFitTangents(OdGeVector3d startTangent, OdGeVector3d endTangent)
static new OdDbSpline createObject()
Definition OdDbSpline.cs:84
virtual Teigha.Core.OdGiDrawable.DrawableType vb_drawableType()
static string getRealClassName(IntPtr ptr)
override OdResult reverseCurve()
void getNurbsData(out int degree, out bool rational, out bool closed, out bool periodic, OdGePoint3dArray controlPoints, OdGeKnotVector knots, OdGeDoubleArray weights, out double controlPtTol)
void setControlPointAt(int controlPointIndex, OdGePoint3d point)
override OdResult getEndPoint(OdGePoint3d endPoint)
OdResult insertControlPointAt(double knotParam, OdGePoint3d ctrlPt)
override OdResult setFromOdGeCurve(OdGeCurve3d geCurve, OdGeVector3d normal, OdGeTol tol)
OdResult toPolyline(ref OdDbCurve pCurve, bool bConvertAsArcs, bool bToLWPolyline, int precision, Int32 maxSuggestedPrecision)
override OdResult setFromOdGeCurve(OdGeCurve3d geCurve)
OdResult toPolyline(ref OdDbCurve pCurve, bool bConvertAsArcs, bool bToLWPolyline, int precision)
override bool subWorldDraw(OdGiWorldDraw pWd)
void setFitTol(double fitTolerance)
override OdResult getStartParam(out double startParam)
virtual Teigha.TD.CollisionType vb_collisionType()
virtual new OdResult subGetGeomExtents(OdGeExtents3d extents)
OdResult toPolyline(ref OdDbCurve pCurve, int precision, Int32 maxSuggestedPrecision)
void insertKnot(double param)
override OdResult getStartPoint(OdGePoint3d startPoint)
override OdResult getParamAtDist(double dist, out double param)
bool modifyPositionAndTangent(double param, OdGePoint3d point, OdGeVector3d deriv)
override bool isPlanar()
OdResult toPolyline(ref OdDbCurve pCurve, int precision, Int32 maxSuggestedPrecision, uint numOfVerticesThreshold)
OdResult getFitPointAt(int fitPointIndex, OdGePoint3d point)
OdResult getFitData(OdGePoint3dArray fitPoints, out int degree, out double fitTolerance, out bool tangentsExist, OdGeVector3d startTangent, OdGeVector3d endTangent, ref OdGe.OdGeKnotParameterization knotParam)
void removeFitPointAt(int fitPointIndex)
Teigha.TD.OdDbSpline.SplineType vb_type()
void getNurbsData(out int degree, out bool rational, out bool closed, out bool periodic, OdGePoint3dArray controlPoints, OdGeDoubleArray knots, OdGeDoubleArray weights, out double controlPtTol, out double knotTol)
override OdResult getSplitCurves(OdGeDoubleArray params_, OdRxObjectPtrArray entitySet)
override OdResult getOdGeCurve(out OdGeCurve3d pGeCurve, OdGeTol tol)
void vb_gripStatus(Teigha.Core.GripStat status)
override OdDbObject decomposeForSave(DwgVersion ver, OdDbObjectId replaceId, out bool exchangeXData)
override OdResult getFirstDeriv(double param, OdGeVector3d firstDeriv)
OdResult toPolyline(ref OdDbCurve pCurve, bool bConvertAsArcs, bool bToLWPolyline)
override OdResult getOdGeCurve(out OdGeCurve3d pGeCurve)
override OdResult getParamAtPoint(OdGePoint3d pointOnCurve, out double param)
override OdResult getPlane(OdGePlane plane, out Planarity planarity)
override OdRxObject queryX(OdRxClass protocolClass)
Definition OdDbSpline.cs:77
OdResult getFitData(OdGePoint3dArray fitPoints, out int degree, out double fitTolerance, out bool tangentsExist, OdGeVector3d startTangent, OdGeVector3d endTangent)
OdResult insertControlPointAt(double knotParam, OdGePoint3d ctrlPt, double weight)
void setFitData(OdGePoint3dArray fitPoints, int degree, double fitTolerance, OdGeVector3d startTangent, OdGeVector3d endTangent)
void getControlPointAt(int controlPointIndex, OdGePoint3d point)
OdResult removeControlPointAt(int index)
void setNurbsData(int degree, bool rational, bool closed, bool periodic, OdGePoint3dArray controlPoints, OdGeDoubleArray knots, OdGeDoubleArray weights, double controlPtTol, double knotTol)
double weightAt(int weightIndex)
void setCvFrame(bool bVisible)
override OdResult getPointAtParam(double param, OdGePoint3d pointOnCurve)
override OdResult getArea(out double area)
OdDbSpline(IntPtr cPtr, bool cMemoryOwn)
Definition OdDbSpline.cs:21
void elevateDegree(int newDegree)
void setNurbsData(int degree, bool rational, bool closed, bool periodic, OdGePoint3dArray controlPoints, OdGeKnotVector knots, OdGeDoubleArray weights, double controlPtTol)
override OdResult getDistAtParam(double param, out double dist)
Teigha.TD.Visibility vb_visibility()
override OdResult setFromOdGeCurve(OdGeCurve3d geCurve, OdGeVector3d normal)
override void dxfOutFields(OdDbDxfFiler pFiler)
void insertFitPointAt(int fitPointIndex, OdGePoint3d point)
virtual new OdResult subExplode(OdRxObjectPtrArray entitySet)
OdResult toPolyline(ref OdDbCurve pCurve)
override OdResult dxfInFields(OdDbDxfFiler pFiler)
void setWeightAt(int weightIndex, double weight)
static new OdRxClass desc()
Definition OdDbSpline.cs:63
virtual new OdResult subTransformBy(OdGeMatrix3d xfm)
static HandleRef getCPtr(OdDbSpline obj)
Definition OdDbSpline.cs:26
override OdRxClass isA()
Definition OdDbSpline.cs:70
OdResult toPolyline(ref OdDbCurve pCurve, bool bConvertAsArcs, bool bToLWPolyline, int precision, Int32 maxSuggestedPrecision, uint numOfVerticesThreshold)
void setFitData(OdGePoint3dArray fitPoints, int degree, double fitTolerance, OdGeVector3d startTangent, OdGeVector3d endTangent, OdGe.OdGeKnotParameterization knotParam)
override OdResult getEndParam(out double endParam)
override OdResult dwgInFields(OdDbDwgFiler pFiler)
OdResult toPolyline(ref OdDbCurve pCurve, int precision)
override void Dispose(bool disposing)
Definition OdDbSpline.cs:30
OdResult setType(OdDbSpline.SplineType type)
static OdDbSpline cast(OdRxObject pObj)
Definition OdDbSpline.cs:43
override OdResult getSecondDeriv(double param, OdGeVector3d secondDeriv)
OdDbSpline.SplineType type()
static global::System.Exception Retrieve()
static int OdDbSpline_getFitData__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, out int jarg3, out double jarg4, out bool jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7)
static int OdDbSpline_toPolyline__SWIG_7(HandleRef jarg1, ref IntPtr jarg2, bool jarg3, bool jarg4)
static void OdDbSpline_setControlPointAt(HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdDbSpline_getNurbsData__SWIG_0(HandleRef jarg1, out int jarg2, out bool jarg3, out bool jarg4, out bool jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8, out double jarg9, out double jarg10)
static IntPtr OdDbSpline_cast(HandleRef jarg1)
static bool OdDbSpline_isNull(HandleRef jarg1)
static int OdDbSpline_insertControlPointAt__SWIG_0(HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, double jarg4)
static int OdDbSpline_getParamAtPoint(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, out double jarg3)
static void delete_OdDbSpline(HandleRef jarg1)
static void OdDbSpline_setFitData__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, double jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, int jarg7)
static void OdDbSpline_setFitTol(HandleRef jarg1, double jarg2)
static void OdDbSpline_removeFitPointAt(HandleRef jarg1, int jarg2)
static int OdDbSpline_numFitPoints(HandleRef jarg1)
static bool OdDbSpline_isPlanar(HandleRef jarg1)
static int OdDbSpline_toPolyline__SWIG_2(HandleRef jarg1, ref IntPtr jarg2, int jarg3)
static int OdDbSpline_dxfInFields(HandleRef jarg1, HandleRef jarg2)
static int OdDbSpline_getPlane(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, out Planarity jarg3)
static int OdDbSpline_getFitPointAt(HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbSpline_numControlPoints(HandleRef jarg1)
static int OdDbSpline_removeControlPointAt(HandleRef jarg1, int jarg2)
static int OdDbSpline_getOdGeCurve__SWIG_0(HandleRef jarg1, out IntPtr jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdDbSpline_dwgOutFields(HandleRef jarg1, HandleRef jarg2)
static void OdDbSpline_insertKnot(HandleRef jarg1, double jarg2)
static void OdDbSpline_setNurbsData__SWIG_1(HandleRef jarg1, int jarg2, bool jarg3, bool jarg4, bool jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8, double jarg9)
static string OdDbSpline_getRealClassName(IntPtr jarg1)
static int OdDbSpline_getStartPoint(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDbSpline_getEndParam(HandleRef jarg1, out double jarg2)
static int OdDbSpline_dwgInFields(HandleRef jarg1, HandleRef jarg2)
static bool OdDbSpline_modifyPositionAndTangent(HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static double OdDbSpline_weightAt(HandleRef jarg1, int jarg2)
static void OdDbSpline_setFitData__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, double jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6)
static void OdDbSpline_setNurbsData__SWIG_0(HandleRef jarg1, int jarg2, bool jarg3, bool jarg4, bool jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8, double jarg9, double jarg10)
static int OdDbSpline_subExplode(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDbSpline_toPolyline__SWIG_4(HandleRef jarg1, ref IntPtr jarg2, bool jarg3, bool jarg4, int jarg5, Int32 jarg6, uint jarg7)
static int OdDbSpline_getSplitCurves(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbSpline_getStartParam(HandleRef jarg1, out double jarg2)
static int OdDbSpline_degree(HandleRef jarg1)
static int OdDbSpline_getDistAtParam(HandleRef jarg1, double jarg2, out double jarg3)
static void OdDbSpline_setFitPointAt(HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static IntPtr OdDbSpline_createObject()
static int OdDbSpline_getEndPoint(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDbSpline_desc()
static IntPtr OdDbSpline_queryX(HandleRef jarg1, HandleRef jarg2)
static int OdDbSpline_getPointAtParam(HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbSpline_setFromOdGeCurve__SWIG_1(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbSpline_insertControlPointAt__SWIG_1(HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbSpline_toPolyline__SWIG_0(HandleRef jarg1, ref IntPtr jarg2, int jarg3, Int32 jarg4, uint jarg5)
static bool OdDbSpline_subWorldDraw(HandleRef jarg1, HandleRef jarg2)
static int OdDbSpline_setType(HandleRef jarg1, int jarg2)
static int OdDbSpline_getFirstDeriv(HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbSpline_setFromOdGeCurve__SWIG_2(HandleRef jarg1, HandleRef jarg2)
static void OdDbSpline_elevateDegree(HandleRef jarg1, int jarg2)
static int OdDbSpline_reverseCurve(HandleRef jarg1)
static int OdDbSpline_type(HandleRef jarg1)
static void OdDbSpline_setCvFrame(HandleRef jarg1, bool jarg2)
static double OdDbSpline_fitTolerance(HandleRef jarg1)
static int OdDbSpline_getSecondDeriv(HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbSpline_toPolyline__SWIG_1(HandleRef jarg1, ref IntPtr jarg2, int jarg3, Int32 jarg4)
static int OdDbSpline_subTransformBy(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDbSpline_subGetClassID(HandleRef jarg1, IntPtr jarg2)
static int OdDbSpline_getFitData__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, out int jarg3, out double jarg4, out bool jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, ref OdGe.OdGeKnotParameterization jarg8)
static bool OdDbSpline_isRational(HandleRef jarg1)
static int OdDbSpline_toPolyline__SWIG_3(HandleRef jarg1, ref IntPtr jarg2)
static void OdDbSpline_setWeightAt(HandleRef jarg1, int jarg2, double jarg3)
static int OdDbSpline_toPolyline__SWIG_6(HandleRef jarg1, ref IntPtr jarg2, bool jarg3, bool jarg4, int jarg5)
static IntPtr OdDbSpline_decomposeForSave(HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, out bool jarg4)
static int OdDbSpline_setFromOdGeCurve__SWIG_0(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static int OdDbSpline_getFitTangents(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdDbSpline_insertFitPointAt(HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdDbSpline_hasFitData(HandleRef jarg1)
static void OdDbSpline_getNurbsData__SWIG_1(HandleRef jarg1, out int jarg2, out bool jarg3, out bool jarg4, out bool jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8, out double jarg9)
static bool OdDbSpline_cvFrame(HandleRef jarg1)
static void OdDbSpline_dxfOutFields(HandleRef jarg1, HandleRef jarg2)
static void OdDbSpline_setFitTangents(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDbSpline_getOdGeCurve__SWIG_1(HandleRef jarg1, out IntPtr jarg2)
static int OdDbSpline_getArea(HandleRef jarg1, out double jarg2)
static void OdDbSpline_getControlPointAt(HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static IntPtr OdDbSpline_isA(HandleRef jarg1)
static void OdDbSpline_purgeFitData(HandleRef jarg1)
static int OdDbSpline_toPolyline__SWIG_5(HandleRef jarg1, ref IntPtr jarg2, bool jarg3, bool jarg4, int jarg5, Int32 jarg6)
static int OdDbSpline_getParamAtDist(HandleRef jarg1, double jarg2, out double jarg3)
static int OdDbSpline_subGetGeomExtents(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)