Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdSiShapePlane.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
16public class OdSiShapePlane : OdSiShape, global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdSiShapePlane(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdSiShapePlane obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
52 global::System.Runtime.InteropServices.HandleRef OdSiShape.GetInterfaceCPtr() {
53 return new global::System.Runtime.InteropServices.HandleRef(this, GlobalsPINVOKE.OdSiShapePlane_OdSiShape_GetInterfaceCPtr(swigCPtr.Handle));
54 }
55
57 set {
60 }
61 get {
62 global::System.IntPtr cPtr = GlobalsPINVOKE.OdSiShapePlane_m_pointOnPlane_get(swigCPtr);
63 OdGePoint3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePoint3d(cPtr, false);
65 return ret;
66 }
67 }
68
70 set {
73 }
74 get {
75 global::System.IntPtr cPtr = GlobalsPINVOKE.OdSiShapePlane_m_planeNormal_get(swigCPtr);
76 OdGeVector3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeVector3d(cPtr, false);
78 return ret;
79 }
80 }
81
82 public OdSiShapePlane(OdGePoint3d pointOnPlane, OdGeVector3d planeNormal) : this(GlobalsPINVOKE.new_OdSiShapePlane__SWIG_0(OdGePoint3d.getCPtr(pointOnPlane), OdGeVector3d.getCPtr(planeNormal)), true) {
84 }
85
86 public OdSiShapePlane(OdGePlane plane) : this(GlobalsPINVOKE.new_OdSiShapePlane__SWIG_1(OdGePlane.getCPtr(plane)), true) {
88 }
89
90 public double signedDistanceTo(OdGePoint3d pt) {
93 return ret;
94 }
95
96 public virtual bool contains(OdGeExtents3d arg0, bool arg1, OdGeTol arg2) {
97 bool ret = GlobalsPINVOKE.OdSiShapePlane_contains(swigCPtr, OdGeExtents3d.getCPtr(arg0), arg1, OdGeTol.getCPtr(arg2));
99 return ret;
100 }
101
102 public virtual bool intersects(OdGeExtents3d extents, bool planar, OdGeTol tol) {
103 bool ret = GlobalsPINVOKE.OdSiShapePlane_intersects(swigCPtr, OdGeExtents3d.getCPtr(extents), planar, OdGeTol.getCPtr(tol));
105 return ret;
106 }
107
108 public virtual OdSiShape clone() {
110
112 return (OdSiShape)ret;
113}
114
115 public virtual void transform(OdGeMatrix3d tf) {
118 }
119
120 public static bool isOverallSpace(OdSiShape ptr) {
123 return ret;
124 }
125
126 public static bool isNoSpace(OdSiShape ptr) {
129 return ret;
130 }
131
132 public static OdSiShape kOverallSpace {
133 get {
136 return ret;
137 }
138 }
139
140 public static OdSiShape kNoSpace {
141 get {
144 return ret;
145 }
146 }
147
148}
149
150}
static global::System.Exception Retrieve()
static bool OdSiShapePlane_isNoSpace(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdSiShapePlane_OdSiShape_GetInterfaceCPtr(global::System.IntPtr jarg1)
static bool OdSiShapePlane_contains(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void OdSiShapePlane_m_planeNormal_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdSiShapePlane_intersects(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void delete_OdSiShapePlane(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdSiShapePlane_kOverallSpace_get()
static global::System.IntPtr OdSiShapePlane_kNoSpace_get()
static void OdSiShapePlane_m_pointOnPlane_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdSiShapePlane_m_pointOnPlane_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdSiShapePlane_isOverallSpace(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdSiShapePlane_transform(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdSiShapePlane_m_planeNormal_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdSiShapePlane_signedDistanceTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdSiShapePlane_clone(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGeExtents3d obj)
static HandleRef getCPtr(OdGeMatrix3d obj)
Definition: OdGeMatrix3d.cs:26
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdGeTol obj)
Definition: OdGeTol.cs:26
static HandleRef getCPtr(OdGeVector3d obj)
Definition: OdGeVector3d.cs:26
static bool isNoSpace(OdSiShape ptr)
virtual void transform(OdGeMatrix3d tf)
static OdSiShape kOverallSpace
OdSiShapePlane(OdGePlane plane)
virtual bool intersects(OdGeExtents3d extents, bool planar, OdGeTol tol)
static bool isOverallSpace(OdSiShape ptr)
double signedDistanceTo(OdGePoint3d pt)
virtual void Dispose(bool disposing)
static HandleRef getCPtr(OdSiShapePlane obj)
OdSiShapePlane(OdGePoint3d pointOnPlane, OdGeVector3d planeNormal)
virtual OdSiShape clone()
OdSiShapePlane(IntPtr cPtr, bool cMemoryOwn)
virtual bool contains(OdGeExtents3d arg0, bool arg1, OdGeTol arg2)
global::System.Runtime.InteropServices.HandleRef GetInterfaceCPtr()