Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGeOffsetSurface.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 OdGeOffsetSurface(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGeOffsetSurface_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGeOffsetSurface 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 OdGeOffsetSurface() : this(GlobalsPINVOKE.new_OdGeOffsetSurface__SWIG_0(), true) {
44 }
45
46 public OdGeOffsetSurface(OdGeSurface baseSurface, double offsetDistance, bool makeCopy) : this(GlobalsPINVOKE.new_OdGeOffsetSurface__SWIG_1(OdGeSurface.getCPtr(baseSurface), offsetDistance, makeCopy), true) {
48 }
49
50 public OdGeOffsetSurface(OdGeSurface baseSurface, double offsetDistance) : this(GlobalsPINVOKE.new_OdGeOffsetSurface__SWIG_2(OdGeSurface.getCPtr(baseSurface), offsetDistance), true) {
52 }
53
54 public OdGeOffsetSurface(OdGeOffsetSurface source) : this(GlobalsPINVOKE.new_OdGeOffsetSurface__SWIG_3(OdGeOffsetSurface.getCPtr(source)), true) {
56 }
57
58 public bool isPlane() {
59 bool ret = GlobalsPINVOKE.OdGeOffsetSurface_isPlane(swigCPtr);
61 return ret;
62 }
63
64 public bool isBoundedPlane() {
67 return ret;
68 }
69
70 public bool isSphere() {
71 bool ret = GlobalsPINVOKE.OdGeOffsetSurface_isSphere(swigCPtr);
73 return ret;
74 }
75
76 public bool isCylinder() {
79 return ret;
80 }
81
82 public bool isCone() {
83 bool ret = GlobalsPINVOKE.OdGeOffsetSurface_isCone(swigCPtr);
85 return ret;
86 }
87
88 public bool isEllipCylinder() {
91 return ret;
92 }
93
94 public bool isEllipCone() {
97 return ret;
98 }
99
100 public bool isTorus() {
101 bool ret = GlobalsPINVOKE.OdGeOffsetSurface_isTorus(swigCPtr);
103 return ret;
104 }
105
106 public bool getSurface(ref OdGeSurface simpleSurface) {
107 bool ret = GlobalsPINVOKE.OdGeOffsetSurface_getSurface(swigCPtr, ref simpleSurface);
109 return ret;
110 }
111
112 public void getConstructionSurface(ref OdGeSurface baseSurface) {
115 }
116
117 public double offsetDist() {
118 double ret = GlobalsPINVOKE.OdGeOffsetSurface_offsetDist(swigCPtr);
120 return ret;
121 }
122
123 public OdGeOffsetSurface set(OdGeSurface baseSurface, double offsetDistance, bool makeCopy) {
124 OdGeOffsetSurface ret = new OdGeOffsetSurface(GlobalsPINVOKE.OdGeOffsetSurface_set__SWIG_0(swigCPtr, OdGeSurface.getCPtr(baseSurface), offsetDistance, makeCopy), false);
126 return ret;
127 }
128
129 public OdGeOffsetSurface set(OdGeSurface baseSurface, double offsetDistance) {
130 OdGeOffsetSurface ret = new OdGeOffsetSurface(GlobalsPINVOKE.OdGeOffsetSurface_set__SWIG_1(swigCPtr, OdGeSurface.getCPtr(baseSurface), offsetDistance), false);
132 return ret;
133 }
134
138 return ret;
139 }
140
145 public Teigha.Core.OdGe.EntityId vb_type() { return this.type(); }
146
147}
148
149}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGeOffsetSurface_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, double jarg3)
static bool OdGeOffsetSurface_isEllipCone(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeOffsetSurface_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, double jarg3, bool jarg4)
static bool OdGeOffsetSurface_isCylinder(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeOffsetSurface_isPlane(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGeOffsetSurface_offsetDist(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeOffsetSurface_isTorus(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeOffsetSurface_isBoundedPlane(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeOffsetSurface_isEllipCylinder(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeOffsetSurface_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdGeOffsetSurface(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGeOffsetSurface_getConstructionSurface(global::System.Runtime.InteropServices.HandleRef jarg1, ref OdGeSurface jarg2)
static bool OdGeOffsetSurface_getSurface(global::System.Runtime.InteropServices.HandleRef jarg1, ref OdGeSurface jarg2)
static bool OdGeOffsetSurface_isSphere(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeOffsetSurface_isCone(global::System.Runtime.InteropServices.HandleRef jarg1)
OdGe.EntityId type()
Definition: OdGeEntity3d.cs:57
OdGeOffsetSurface(OdGeOffsetSurface source)
OdGeOffsetSurface(OdGeSurface baseSurface, double offsetDistance, bool makeCopy)
static HandleRef getCPtr(OdGeOffsetSurface obj)
OdGeOffsetSurface(OdGeSurface baseSurface, double offsetDistance)
OdGeOffsetSurface Assign(OdGeOffsetSurface surface)
override void Dispose(bool disposing)
bool getSurface(ref OdGeSurface simpleSurface)
OdGeOffsetSurface(IntPtr cPtr, bool cMemoryOwn)
Teigha.Core.OdGe.EntityId vb_type()
void getConstructionSurface(ref OdGeSurface baseSurface)
static HandleRef getCPtr(OdGeSurface obj)
Definition: OdGeSurface.cs:25