Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGeExternalSurface.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 OdGeExternalSurface(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGeExternalSurface_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGeExternalSurface 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 OdGeExternalSurface() : this(GlobalsPINVOKE.new_OdGeExternalSurface__SWIG_0(), true) {
44 }
45
46 public OdGeExternalSurface(IntPtr /*SIMPLETYPE*/ pSurfaceDef, OdGe.ExternalEntityKind surfaceKind, bool makeCopy) : this(GlobalsPINVOKE.new_OdGeExternalSurface__SWIG_1(pSurfaceDef /*SIMPLETYPE*/, (int)surfaceKind, makeCopy), true) {
48 }
49
50 public OdGeExternalSurface(IntPtr /*SIMPLETYPE*/ pSurfaceDef, OdGe.ExternalEntityKind surfaceKind) : this(GlobalsPINVOKE.new_OdGeExternalSurface__SWIG_2(pSurfaceDef /*SIMPLETYPE*/, (int)surfaceKind), true) {
52 }
53
54 public OdGeExternalSurface(OdGeExternalSurface source) : this(GlobalsPINVOKE.new_OdGeExternalSurface__SWIG_3(OdGeExternalSurface.getCPtr(source)), true) {
56 }
57
58 public void getExternalSurface(out IntPtr pSurfaceDef) {
61 }
62
66 return ret;
67 }
68
69 public bool isPlane() {
72 return ret;
73 }
74
75 public bool isSphere() {
78 return ret;
79 }
80
81 public bool isCylinder() {
84 return ret;
85 }
86
87 public bool isCone() {
88 bool ret = GlobalsPINVOKE.OdGeExternalSurface_isCone(swigCPtr);
90 return ret;
91 }
92
93 public bool isEllipCylinder() {
96 return ret;
97 }
98
99 public bool isEllipCone() {
102 return ret;
103 }
104
105 public bool isTorus() {
106 bool ret = GlobalsPINVOKE.OdGeExternalSurface_isTorus(swigCPtr);
108 return ret;
109 }
110
111 public bool isNurbSurface() {
114 return ret;
115 }
116
117 public bool isDefined() {
120 return ret;
121 }
122
123 public bool isNativeSurface(ref OdGeSurface nativeSurface) {
124 bool ret = GlobalsPINVOKE.OdGeExternalSurface_isNativeSurface(swigCPtr, ref nativeSurface);
126 return ret;
127 }
128
132 return ret;
133 }
134
135 public OdGeExternalSurface set(IntPtr /*SIMPLETYPE*/ pSurfaceDef, OdGe.ExternalEntityKind surfaceKind, bool makeCopy) {
136 OdGeExternalSurface ret = new OdGeExternalSurface(GlobalsPINVOKE.OdGeExternalSurface_set__SWIG_0(swigCPtr, pSurfaceDef /*SIMPLETYPE*/, (int)surfaceKind, makeCopy), false);
138 return ret;
139 }
140
141 public OdGeExternalSurface set(IntPtr /*SIMPLETYPE*/ pSurfaceDef, OdGe.ExternalEntityKind surfaceKind) {
142 OdGeExternalSurface ret = new OdGeExternalSurface(GlobalsPINVOKE.OdGeExternalSurface_set__SWIG_1(swigCPtr, pSurfaceDef /*SIMPLETYPE*/, (int)surfaceKind), false);
144 return ret;
145 }
146
147 public bool isOwnerOfSurface() {
150 return ret;
151 }
152
156 return ret;
157 }
158
163 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
164
165}
166
167}
static global::System.Exception Retrieve()
static bool OdGeExternalSurface_isDefined(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeExternalSurface_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdGeExternalSurface(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalSurface_isNurbSurface(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalSurface_isTorus(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGeExternalSurface_getExternalSurface(global::System.Runtime.InteropServices.HandleRef jarg1, out IntPtr jarg2)
static bool OdGeExternalSurface_isSphere(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeExternalSurface_externalSurfaceKind(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeExternalSurface_setToOwnSurface(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalSurface_isOwnerOfSurface(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalSurface_isNativeSurface(global::System.Runtime.InteropServices.HandleRef jarg1, ref OdGeSurface jarg2)
static global::System.IntPtr OdGeExternalSurface_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, int jarg3)
static global::System.IntPtr OdGeExternalSurface_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, int jarg3, bool jarg4)
static bool OdGeExternalSurface_isCone(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalSurface_isCylinder(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalSurface_isPlane(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalSurface_isEllipCone(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeExternalSurface_isEllipCylinder(global::System.Runtime.InteropServices.HandleRef jarg1)
OdGe.EntityId type()
Definition: OdGeEntity3d.cs:57
static HandleRef getCPtr(OdGeExternalSurface obj)
override void Dispose(bool disposing)
OdGeExternalSurface(IntPtr pSurfaceDef, OdGe.ExternalEntityKind surfaceKind, bool makeCopy)
OdGeExternalSurface setToOwnSurface()
OdGeExternalSurface(OdGeExternalSurface source)
bool isNativeSurface(ref OdGeSurface nativeSurface)
OdGeExternalSurface Assign(OdGeExternalSurface extSurf)
OdGe.ExternalEntityKind externalSurfaceKind()
OdGeExternalSurface(IntPtr cPtr, bool cMemoryOwn)
void getExternalSurface(out IntPtr pSurfaceDef)
Teigha.Core.OdGe.EntityId vb_type()
OdGeExternalSurface(IntPtr pSurfaceDef, OdGe.ExternalEntityKind surfaceKind)