Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Extent3d.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 Extent3d(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.Extent3d_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(Extent3d 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.Extent3d_OdSiShape_GetInterfaceCPtr(swigCPtr.Handle));
45 }
46
47 public virtual bool contains(OdGeExtents3d extents, bool planar, OdGeTol tol) {
48 bool ret = GlobalsPINVOKE.Extent3d_contains(swigCPtr, OdGeExtents3d.getCPtr(extents), planar, OdGeTol.getCPtr(tol));
50 return ret;
51 }
52
53 public virtual bool intersects(OdGeExtents3d extents, bool planar, OdGeTol tol) {
54 bool ret = GlobalsPINVOKE.Extent3d_intersects(swigCPtr, OdGeExtents3d.getCPtr(extents), planar, OdGeTol.getCPtr(tol));
56 return ret;
57 }
58
59 public void makeHalf(int dimension, bool moveRight) {
60 GlobalsPINVOKE.Extent3d_makeHalf(swigCPtr, dimension, moveRight);
62 }
63
64 public void makeDouble(int dimension, bool moveRight) {
65 GlobalsPINVOKE.Extent3d_makeDouble(swigCPtr, dimension, moveRight);
67 }
68
69 public void makeCube(bool planar) {
70 GlobalsPINVOKE.Extent3d_makeCube(swigCPtr, planar);
72 }
73
74 public Extent3d() : this(GlobalsPINVOKE.new_Extent3d__SWIG_0(), true) {
76 }
77
78 public Extent3d(OdGePoint3d min, OdGePoint3d max) : this(GlobalsPINVOKE.new_Extent3d__SWIG_1(OdGePoint3d.getCPtr(min), OdGePoint3d.getCPtr(max)), true) {
80 }
81
82 public Extent3d(OdGeExtents3d source) : this(GlobalsPINVOKE.new_Extent3d__SWIG_2(OdGeExtents3d.getCPtr(source)), true) {
84 }
85
86 public Extent3d(OdGeExtents2d source) : this(GlobalsPINVOKE.new_Extent3d__SWIG_3(OdGeExtents2d.getCPtr(source)), true) {
88 }
89
90 public virtual OdSiShape clone() {
91 OdSiShapeImpl ret = new OdSiShapeImpl(GlobalsPINVOKE.Extent3d_clone(swigCPtr),false);
92
94 return (OdSiShape)ret;
95}
96
97 public virtual void transform(OdGeMatrix3d arg0) {
100 }
101
102 public static bool isOverallSpace(OdSiShape ptr) {
105 return ret;
106 }
107
108 public static bool isNoSpace(OdSiShape ptr) {
111 return ret;
112 }
113
114 public static OdSiShape kOverallSpace {
115 get {
118 return ret;
119 }
120 }
121
122 public static OdSiShape kNoSpace {
123 get {
126 return ret;
127 }
128 }
129
130 public enum IntersectResult {
131 left = 0,
132 upon = 1,
133 right = 2
134 }
135
136}
137
138}
virtual bool intersects(OdGeExtents3d extents, bool planar, OdGeTol tol)
Definition: Extent3d.cs:53
static OdSiShape kNoSpace
Definition: Extent3d.cs:122
Extent3d(IntPtr cPtr, bool cMemoryOwn)
Definition: Extent3d.cs:20
Extent3d(OdGePoint3d min, OdGePoint3d max)
Definition: Extent3d.cs:78
static bool isOverallSpace(OdSiShape ptr)
Definition: Extent3d.cs:102
static bool isNoSpace(OdSiShape ptr)
Definition: Extent3d.cs:108
override void Dispose(bool disposing)
Definition: Extent3d.cs:29
Extent3d(OdGeExtents3d source)
Definition: Extent3d.cs:82
Extent3d(OdGeExtents2d source)
Definition: Extent3d.cs:86
void makeCube(bool planar)
Definition: Extent3d.cs:69
static OdSiShape kOverallSpace
Definition: Extent3d.cs:114
void makeDouble(int dimension, bool moveRight)
Definition: Extent3d.cs:64
virtual void transform(OdGeMatrix3d arg0)
Definition: Extent3d.cs:97
virtual OdSiShape clone()
Definition: Extent3d.cs:90
virtual bool contains(OdGeExtents3d extents, bool planar, OdGeTol tol)
Definition: Extent3d.cs:47
static HandleRef getCPtr(Extent3d obj)
Definition: Extent3d.cs:25
void makeHalf(int dimension, bool moveRight)
Definition: Extent3d.cs:59
static global::System.Exception Retrieve()
static global::System.IntPtr Extent3d_clone(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Extent3d_makeCube(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool Extent3d_contains(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static global::System.IntPtr Extent3d_kOverallSpace_get()
static void delete_Extent3d(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr Extent3d_kNoSpace_get()
static bool Extent3d_isNoSpace(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Extent3d_transform(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void Extent3d_makeHalf(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, bool jarg3)
static bool Extent3d_intersects(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void Extent3d_makeDouble(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, bool jarg3)
static global::System.IntPtr Extent3d_OdSiShape_GetInterfaceCPtr(global::System.IntPtr jarg1)
static bool Extent3d_isOverallSpace(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGeExtents3d obj)
static HandleRef getCPtr(OdGeMatrix3d obj)
Definition: OdGeMatrix3d.cs:26
static HandleRef getCPtr(OdGeTol obj)
Definition: OdGeTol.cs:26
global::System.Runtime.InteropServices.HandleRef GetInterfaceCPtr()