Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGeExternalCurve3d.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 OdGeExternalCurve3d(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGeExternalCurve3d_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGeExternalCurve3d 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 OdGeExternalCurve3d() : this(GlobalsPINVOKE.new_OdGeExternalCurve3d__SWIG_0(), true) {
44 }
45
46 public OdGeExternalCurve3d(OdGeExternalCurve3d source) : this(GlobalsPINVOKE.new_OdGeExternalCurve3d__SWIG_1(OdGeExternalCurve3d.getCPtr(source)), true) {
48 }
49
50 public OdGeExternalCurve3d(IntPtr /*SIMPLETYPE*/ pCurveDef, OdGe.ExternalEntityKind curveKind, bool makeCopy) : this(GlobalsPINVOKE.new_OdGeExternalCurve3d__SWIG_2(pCurveDef /*SIMPLETYPE*/, (int)curveKind, makeCopy), true) {
52 }
53
54 public OdGeExternalCurve3d(IntPtr /*SIMPLETYPE*/ pCurveDef, OdGe.ExternalEntityKind curveKind) : this(GlobalsPINVOKE.new_OdGeExternalCurve3d__SWIG_3(pCurveDef /*SIMPLETYPE*/, (int)curveKind), true) {
56 }
57
58 public bool isLine() {
59 bool ret = GlobalsPINVOKE.OdGeExternalCurve3d_isLine(swigCPtr);
61 return ret;
62 }
63
64 public bool isRay() {
65 bool ret = GlobalsPINVOKE.OdGeExternalCurve3d_isRay(swigCPtr);
67 return ret;
68 }
69
70 public bool isLineSeg() {
73 return ret;
74 }
75
76 public bool isCircArc() {
79 return ret;
80 }
81
82 public bool isEllipArc() {
85 return ret;
86 }
87
88 public bool isNurbCurve() {
91 return ret;
92 }
93
94 public bool isDefined() {
97 return ret;
98 }
99
100 public bool isNativeCurve(out OdGeCurve3d nativeCurve) {
101IntPtr p_nativeCurve = IntPtr.Zero; /*OUT_PARAM_OBJ PRE*/
102 try {
103 bool ret = GlobalsPINVOKE.OdGeExternalCurve3d_isNativeCurve(swigCPtr, out p_nativeCurve);
105 return ret;
106 } finally {
107MemoryTransaction mTrans_nativeCurve = MemoryManager.GetMemoryManager().GetCurrentTransaction();
108 if(mTrans_nativeCurve != null)
109 mTrans_nativeCurve.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_nativeCurve, true));
110 nativeCurve = Teigha.Core.Helpers.odCreateObjectInternal<OdGeCurve3d>(typeof(OdGeCurve3d), p_nativeCurve, mTrans_nativeCurve == null);
111 /*OUT_PARAM_OBJ POST*/
112 }
113 }
114
115 public void getExternalCurve(out IntPtr /*SIMPLETYPE*/ pCurveDef) {
118 }
119
123 return ret;
124 }
125
126 public OdGeExternalCurve3d set(IntPtr /*SIMPLETYPE*/ pCurveDef, OdGe.ExternalEntityKind curveKind, bool makeCopy) {
127 OdGeExternalCurve3d ret = new OdGeExternalCurve3d(GlobalsPINVOKE.OdGeExternalCurve3d_set__SWIG_0(swigCPtr, pCurveDef /*SIMPLETYPE*/, (int)curveKind, makeCopy), false);
129 return ret;
130 }
131
132 public OdGeExternalCurve3d set(IntPtr /*SIMPLETYPE*/ pCurveDef, OdGe.ExternalEntityKind curveKind) {
133 OdGeExternalCurve3d ret = new OdGeExternalCurve3d(GlobalsPINVOKE.OdGeExternalCurve3d_set__SWIG_1(swigCPtr, pCurveDef /*SIMPLETYPE*/, (int)curveKind), false);
135 return ret;
136 }
137
141 return ret;
142 }
143
144 public bool isOwnerOfCurve() {
147 return ret;
148 }
149
153 return ret;
154 }
155
160 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
161
162}
163
164}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGeExternalCurve3d_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, int jarg3)
static bool OdGeExternalCurve3d_isRay(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalCurve3d_isOwnerOfCurve(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalCurve3d_isCircArc(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalCurve3d_isNurbCurve(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdGeExternalCurve3d(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeExternalCurve3d_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeExternalCurve3d_setToOwnCurve(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalCurve3d_isNativeCurve(global::System.Runtime.InteropServices.HandleRef jarg1, out IntPtr jarg2)
static bool OdGeExternalCurve3d_isLine(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalCurve3d_isEllipArc(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalCurve3d_isLineSeg(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalCurve3d_isDefined(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeExternalCurve3d_externalCurveKind(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGeExternalCurve3d_getExternalCurve(global::System.Runtime.InteropServices.HandleRef jarg1, out IntPtr jarg2)
static global::System.IntPtr OdGeExternalCurve3d_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, int jarg3, bool jarg4)
OdGe.EntityId type()
Definition: OdGeEntity3d.cs:57
OdGeExternalCurve3d(IntPtr cPtr, bool cMemoryOwn)
OdGeExternalCurve3d(OdGeExternalCurve3d source)
OdGeExternalCurve3d Assign(OdGeExternalCurve3d extCurve)
override void Dispose(bool disposing)
Teigha.Core.OdGe.EntityId vb_type()
OdGeExternalCurve3d(IntPtr pCurveDef, OdGe.ExternalEntityKind curveKind, bool makeCopy)
OdGe.ExternalEntityKind externalCurveKind()
OdGeExternalCurve3d(IntPtr pCurveDef, OdGe.ExternalEntityKind curveKind)
static HandleRef getCPtr(OdGeExternalCurve3d obj)
void getExternalCurve(out IntPtr pCurveDef)
bool isNativeCurve(out OdGeCurve3d nativeCurve)