Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
BBox.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 BBox(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.BBox_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(BBox 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 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
43 global::System.Runtime.InteropServices.HandleRef OdSiShape.GetInterfaceCPtr() {
44 return new global::System.Runtime.InteropServices.HandleRef(this, GlobalsPINVOKE.BBox_OdSiShape_GetInterfaceCPtr(swigCPtr.Handle));
45 }
46
50 return ret;
51 }
52
56 return ret;
57 }
58
59 public virtual bool contains(OdGeExtents3d extents, bool planar, OdGeTol tol) {
60 bool ret = GlobalsPINVOKE.BBox_contains(swigCPtr, OdGeExtents3d.getCPtr(extents), planar, OdGeTol.getCPtr(tol));
62 return ret;
63 }
64
65 public virtual bool intersects(OdGeExtents3d extents, bool planar, OdGeTol tol) {
66 bool ret = GlobalsPINVOKE.BBox_intersects(swigCPtr, OdGeExtents3d.getCPtr(extents), planar, OdGeTol.getCPtr(tol));
68 return ret;
69 }
70
71 public virtual OdSiShape clone() {
72 OdSiShapeImpl ret = new OdSiShapeImpl(GlobalsPINVOKE.BBox_clone(swigCPtr),false);
73
75 return (OdSiShape)ret;
76}
77
78 public virtual void transform(OdGeMatrix3d mtx) {
81 }
82
83 public BBox() : this(GlobalsPINVOKE.new_BBox__SWIG_0(), true) {
85 }
86
87 public BBox(BBox source) : this(GlobalsPINVOKE.new_BBox__SWIG_1(BBox.getCPtr(source)), true) {
89 }
90
91 public BBox(OdGePoint3d base_, OdGeVector3d side1, OdGeVector3d side2, OdGeVector3d side3) : this(GlobalsPINVOKE.new_BBox__SWIG_2(OdGePoint3d.getCPtr(base_), OdGeVector3d.getCPtr(side1), OdGeVector3d.getCPtr(side2), OdGeVector3d.getCPtr(side3)), true) {
93 }
94
95 public BBox(OdGePoint3d p1, OdGePoint3d p2) : this(GlobalsPINVOKE.new_BBox__SWIG_3(OdGePoint3d.getCPtr(p1), OdGePoint3d.getCPtr(p2)), true) {
97 }
98
99 public static bool isOverallSpace(OdSiShape ptr) {
102 return ret;
103 }
104
105 public static bool isNoSpace(OdSiShape ptr) {
108 return ret;
109 }
110
111 public static OdSiShape kOverallSpace {
112 get {
115 return ret;
116 }
117 }
118
119 public static OdSiShape kNoSpace {
120 get {
123 return ret;
124 }
125 }
126
127 public enum ExtentsType {
128 k2dExtents = 0,
129 k3dExtents = 1
130 }
131
132}
133
134}
static BBox.ExtentsType explodeExtent(OdGePoint3d points, OdGeExtents3d extents)
Definition: BBox.cs:47
static HandleRef getCPtr(BBox obj)
Definition: BBox.cs:25
override void Dispose(bool disposing)
Definition: BBox.cs:29
virtual OdSiShape clone()
Definition: BBox.cs:71
BBox(OdGePoint3d base_, OdGeVector3d side1, OdGeVector3d side2, OdGeVector3d side3)
Definition: BBox.cs:91
virtual void transform(OdGeMatrix3d mtx)
Definition: BBox.cs:78
static BBox.ExtentsType explodeExtent(OdGePoint3d points, OdGeBoundBlock3d extents)
Definition: BBox.cs:53
static OdSiShape kOverallSpace
Definition: BBox.cs:111
static bool isOverallSpace(OdSiShape ptr)
Definition: BBox.cs:99
static OdSiShape kNoSpace
Definition: BBox.cs:119
static bool isNoSpace(OdSiShape ptr)
Definition: BBox.cs:105
BBox(OdGePoint3d p1, OdGePoint3d p2)
Definition: BBox.cs:95
BBox(IntPtr cPtr, bool cMemoryOwn)
Definition: BBox.cs:20
virtual bool intersects(OdGeExtents3d extents, bool planar, OdGeTol tol)
Definition: BBox.cs:65
virtual bool contains(OdGeExtents3d extents, bool planar, OdGeTol tol)
Definition: BBox.cs:59
BBox(BBox source)
Definition: BBox.cs:87
static global::System.Exception Retrieve()
static bool BBox_contains(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static int BBox_explodeExtent__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool BBox_intersects(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void delete_BBox(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr BBox_OdSiShape_GetInterfaceCPtr(global::System.IntPtr jarg1)
static void BBox_transform(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int BBox_explodeExtent__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr BBox_kOverallSpace_get()
static bool BBox_isOverallSpace(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool BBox_isNoSpace(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr BBox_kNoSpace_get()
static global::System.IntPtr BBox_clone(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGeBoundBlock3d obj)
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
global::System.Runtime.InteropServices.HandleRef GetInterfaceCPtr()