Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGeExternalBoundedSurface.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 OdGeExternalBoundedSurface(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGeExternalBoundedSurface_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGeExternalBoundedSurface 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 void getContours(out int numContours, out OdGeCurveBoundary[] contours)
43 {
44 IntPtr contoursPtr = new IntPtr();
47 if (0 == numContours)
48 {
49 contours = null;
50 return;
51 }
52 contours = new OdGeCurveBoundary[numContours];
53 for (int Ctr = 0; Ctr < numContours; Ctr++)
54 {
55 contours[Ctr] = new OdGeCurveBoundary(Marshal.ReadIntPtr(contoursPtr, Ctr * Marshal.SizeOf(Marshal.SizeOf(typeof(IntPtr)))), false);
56 }
57 }
58
59 public OdGeExternalBoundedSurface() : this(GlobalsPINVOKE.new_OdGeExternalBoundedSurface__SWIG_0(), true) {
61 }
62
63 public OdGeExternalBoundedSurface(IntPtr /*SIMPLETYPE*/ pSurfaceDef, OdGe.ExternalEntityKind surfaceKind, bool makeCopy) : this(GlobalsPINVOKE.new_OdGeExternalBoundedSurface__SWIG_1(pSurfaceDef /*SIMPLETYPE*/, (int)surfaceKind, makeCopy), true) {
65 }
66
67 public OdGeExternalBoundedSurface(IntPtr /*SIMPLETYPE*/ pSurfaceDef, OdGe.ExternalEntityKind surfaceKind) : this(GlobalsPINVOKE.new_OdGeExternalBoundedSurface__SWIG_2(pSurfaceDef /*SIMPLETYPE*/, (int)surfaceKind), true) {
69 }
70
71 public OdGeExternalBoundedSurface(OdGeExternalBoundedSurface source) : this(GlobalsPINVOKE.new_OdGeExternalBoundedSurface__SWIG_3(OdGeExternalBoundedSurface.getCPtr(source)), true) {
73 }
74
78 return ret;
79 }
80
81 public bool isDefined() {
84 return ret;
85 }
86
87 public void getExternalSurface(out IntPtr pSurfaceDef) {
90 }
91
92 public bool isPlane() {
95 return ret;
96 }
97
98 public bool isSphere() {
101 return ret;
102 }
103
104 public bool isCylinder() {
107 return ret;
108 }
109
110 public bool isCone() {
113 return ret;
114 }
115
116 public bool isEllipCylinder() {
119 return ret;
120 }
121
122 public bool isEllipCone() {
125 return ret;
126 }
127
128 public bool isTorus() {
131 return ret;
132 }
133
134 public bool isNurbs() {
137 return ret;
138 }
139
140 public bool isExternalSurface() {
143 return ret;
144 }
145
146 public int numContours() {
149 return ret;
150 }
151
152 public OdGeExternalBoundedSurface set(IntPtr /*SIMPLETYPE*/ pSurfaceDef, OdGe.ExternalEntityKind surfaceKind, bool makeCopy) {
153 OdGeExternalBoundedSurface ret = new OdGeExternalBoundedSurface(GlobalsPINVOKE.OdGeExternalBoundedSurface_set__SWIG_0(swigCPtr, pSurfaceDef /*SIMPLETYPE*/, (int)surfaceKind, makeCopy), false);
155 return ret;
156 }
157
158 public OdGeExternalBoundedSurface set(IntPtr /*SIMPLETYPE*/ pSurfaceDef, OdGe.ExternalEntityKind surfaceKind) {
159 OdGeExternalBoundedSurface ret = new OdGeExternalBoundedSurface(GlobalsPINVOKE.OdGeExternalBoundedSurface_set__SWIG_1(swigCPtr, pSurfaceDef /*SIMPLETYPE*/, (int)surfaceKind), false);
161 return ret;
162 }
163
164 public bool isOwnerOfSurface() {
167 return ret;
168 }
169
173 return ret;
174 }
175
179 return ret;
180 }
181
183 OdGeSurface ret = Teigha.Core.Helpers.odCreateObjectInternal<OdGeSurface>(typeof(OdGeSurface), GlobalsPINVOKE.OdGeExternalBoundedSurface_getBaseSurfaceEx(swigCPtr), false);
184
186 return ret;
187}
188
193 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
194
195}
196
197}
static global::System.Exception Retrieve()
static bool OdGeExternalBoundedSurface_isTorus(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalBoundedSurface_isEllipCylinder(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalBoundedSurface_isCylinder(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalBoundedSurface_isPlane(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalBoundedSurface_isOwnerOfSurface(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeExternalBoundedSurface_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, int jarg3)
static void OdGeExternalBoundedSurface_getContours(HandleRef jarg1, out int jarg2, out IntPtr jarg3)
static int OdGeExternalBoundedSurface_externalSurfaceKind(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeExternalBoundedSurface_numContours(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGeExternalBoundedSurface_getExternalSurface(global::System.Runtime.InteropServices.HandleRef jarg1, out IntPtr jarg2)
static global::System.IntPtr OdGeExternalBoundedSurface_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdGeExternalBoundedSurface_getBaseSurfaceEx(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalBoundedSurface_isSphere(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalBoundedSurface_isExternalSurface(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalBoundedSurface_isCone(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalBoundedSurface_isNurbs(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeExternalBoundedSurface_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, int jarg3, bool jarg4)
static void delete_OdGeExternalBoundedSurface(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalBoundedSurface_isDefined(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalBoundedSurface_isEllipCone(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeExternalBoundedSurface_setToOwnSurface(global::System.Runtime.InteropServices.HandleRef jarg1)
OdGe.EntityId type()
Definition: OdGeEntity3d.cs:57
static HandleRef getCPtr(OdGeExternalBoundedSurface obj)
OdGeExternalBoundedSurface(IntPtr pSurfaceDef, OdGe.ExternalEntityKind surfaceKind, bool makeCopy)
void getContours(out int numContours, out OdGeCurveBoundary[] contours)
OdGeExternalBoundedSurface(OdGeExternalBoundedSurface source)
OdGeExternalBoundedSurface(IntPtr cPtr, bool cMemoryOwn)
OdGeExternalBoundedSurface Assign(OdGeExternalBoundedSurface extBoundSurf)
OdGeExternalBoundedSurface(IntPtr pSurfaceDef, OdGe.ExternalEntityKind surfaceKind)