Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Volume.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 Volume : 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 Volume(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(Volume obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~Volume() {
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.Volume_OdSiShape_GetInterfaceCPtr(swigCPtr.Handle));
54 }
55
56 public virtual OdSiShape clone() {
57 MemoryManager mMan = MemoryManager.GetMemoryManager();
58 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #41
59 IntPtr ptr = GlobalsPINVOKE.Volume_clone(swigCPtr);
60
61 OdSiShapeImpl ret = null;
62 if (null != mTrans)
63 {
64 mTrans.AddObject(new OdSiShapeImpl(ptr, true));
65 ret = new OdSiShapeImpl(ptr, false);
66 }
67 else
68 {
69 ret = new OdSiShapeImpl(ptr, true);
70 }
72 return (OdSiShape)ret;
73
74 /*OdSiShapeImpl ret = new OdSiShapeImpl(GlobalsPINVOKE.Volume_clone(swigCPtr),true);
75
76 if (GlobalsPINVOKE.SWIGPendingException.Pending) throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
77 return (OdSiShape)ret;*/
78}
79
80 public Volume() : this(GlobalsPINVOKE.new_Volume__SWIG_0(), true) {
82 }
83
84 public Volume(Volume source) : this(GlobalsPINVOKE.new_Volume__SWIG_1(Volume.getCPtr(source)), true) {
86 }
87
88 public Volume(OdGePoint3d origin, OdGeVector3d zAxis, OdGeVector3d yAxis, OdGeVector3d xAxis, double xFov, double yFov, bool xFovAsAspect, bool yFovAsAspect, bool bNearPlane, double fNearPlane, bool bFarPlane, double fFarPlane) : this(GlobalsPINVOKE.new_Volume__SWIG_2(OdGePoint3d.getCPtr(origin), OdGeVector3d.getCPtr(zAxis), OdGeVector3d.getCPtr(yAxis), OdGeVector3d.getCPtr(xAxis), xFov, yFov, xFovAsAspect, yFovAsAspect, bNearPlane, fNearPlane, bFarPlane, fFarPlane), true) {
90 }
91
92 public Volume(OdGePoint3d origin, OdGeVector3d zAxis, OdGeVector3d yAxis, OdGeVector3d xAxis, double xFov, double yFov, bool xFovAsAspect, bool yFovAsAspect, bool bNearPlane, double fNearPlane, bool bFarPlane) : this(GlobalsPINVOKE.new_Volume__SWIG_3(OdGePoint3d.getCPtr(origin), OdGeVector3d.getCPtr(zAxis), OdGeVector3d.getCPtr(yAxis), OdGeVector3d.getCPtr(xAxis), xFov, yFov, xFovAsAspect, yFovAsAspect, bNearPlane, fNearPlane, bFarPlane), true) {
94 }
95
96 public Volume(OdGePoint3d origin, OdGeVector3d zAxis, OdGeVector3d yAxis, OdGeVector3d xAxis, double xFov, double yFov, bool xFovAsAspect, bool yFovAsAspect, bool bNearPlane, double fNearPlane) : this(GlobalsPINVOKE.new_Volume__SWIG_4(OdGePoint3d.getCPtr(origin), OdGeVector3d.getCPtr(zAxis), OdGeVector3d.getCPtr(yAxis), OdGeVector3d.getCPtr(xAxis), xFov, yFov, xFovAsAspect, yFovAsAspect, bNearPlane, fNearPlane), true) {
98 }
99
100 public Volume(OdGePoint3d origin, OdGeVector3d zAxis, OdGeVector3d yAxis, OdGeVector3d xAxis, double xFov, double yFov, bool xFovAsAspect, bool yFovAsAspect, bool bNearPlane) : this(GlobalsPINVOKE.new_Volume__SWIG_5(OdGePoint3d.getCPtr(origin), OdGeVector3d.getCPtr(zAxis), OdGeVector3d.getCPtr(yAxis), OdGeVector3d.getCPtr(xAxis), xFov, yFov, xFovAsAspect, yFovAsAspect, bNearPlane), true) {
102 }
103
104 public Volume(OdGePoint3d origin, OdGeVector3d zAxis, OdGeVector3d yAxis, OdGeVector3d xAxis, double xFov, double yFov, bool xFovAsAspect, bool yFovAsAspect) : this(GlobalsPINVOKE.new_Volume__SWIG_6(OdGePoint3d.getCPtr(origin), OdGeVector3d.getCPtr(zAxis), OdGeVector3d.getCPtr(yAxis), OdGeVector3d.getCPtr(xAxis), xFov, yFov, xFovAsAspect, yFovAsAspect), true) {
106 }
107
108 public Volume(OdGePoint3d origin, OdGeVector3d zAxis, OdGeVector3d yAxis, OdGeVector3d xAxis, double xFov, double yFov, bool xFovAsAspect) : this(GlobalsPINVOKE.new_Volume__SWIG_7(OdGePoint3d.getCPtr(origin), OdGeVector3d.getCPtr(zAxis), OdGeVector3d.getCPtr(yAxis), OdGeVector3d.getCPtr(xAxis), xFov, yFov, xFovAsAspect), true) {
110 }
111
112 public Volume(OdGePoint3d origin, OdGeVector3d zAxis, OdGeVector3d yAxis, OdGeVector3d xAxis, double xFov, double yFov) : this(GlobalsPINVOKE.new_Volume__SWIG_8(OdGePoint3d.getCPtr(origin), OdGeVector3d.getCPtr(zAxis), OdGeVector3d.getCPtr(yAxis), OdGeVector3d.getCPtr(xAxis), xFov, yFov), true) {
114 }
115
116 public virtual bool contains(OdGeExtents3d extents, bool planar, OdGeTol tol) {
117 bool ret = GlobalsPINVOKE.Volume_contains(swigCPtr, OdGeExtents3d.getCPtr(extents), planar, OdGeTol.getCPtr(tol));
119 return ret;
120 }
121
122 public virtual bool intersects(OdGeExtents3d extents, bool planar, OdGeTol tol) {
123 bool ret = GlobalsPINVOKE.Volume_intersects(swigCPtr, OdGeExtents3d.getCPtr(extents), planar, OdGeTol.getCPtr(tol));
125 return ret;
126 }
127
128 public virtual void transform(OdGeMatrix3d mtx) {
131 }
132
133 public static double fovToPlane(double fov, double len) {
134 double ret = GlobalsPINVOKE.Volume_fovToPlane(fov, len);
136 return ret;
137 }
138
139 public static double fovFromPlane(double plane, double len) {
140 double ret = GlobalsPINVOKE.Volume_fovFromPlane(plane, len);
142 return ret;
143 }
144
145 public static bool isOverallSpace(OdSiShape ptr) {
148 return ret;
149 }
150
151 public static bool isNoSpace(OdSiShape ptr) {
154 return ret;
155 }
156
157 public static OdSiShape kOverallSpace {
158 get {
161 return ret;
162 }
163 }
164
165 public static OdSiShape kNoSpace {
166 get {
169 return ret;
170 }
171 }
172
173}
174
175}
static global::System.Exception Retrieve()
static void delete_Volume(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr Volume_OdSiShape_GetInterfaceCPtr(global::System.IntPtr jarg1)
static global::System.IntPtr Volume_kOverallSpace_get()
static IntPtr Volume_clone(HandleRef jarg1)
static bool Volume_intersects(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static global::System.IntPtr Volume_kNoSpace_get()
static double Volume_fovToPlane(double jarg1, double jarg2)
static void Volume_transform(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool Volume_isOverallSpace(global::System.Runtime.InteropServices.HandleRef jarg1)
static double Volume_fovFromPlane(double jarg1, double jarg2)
static bool Volume_isNoSpace(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool Volume_contains(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static HandleRef getCPtr(OdGeExtents3d obj)
static HandleRef getCPtr(OdGeMatrix3d obj)
Definition: OdGeMatrix3d.cs:26
static HandleRef getCPtr(OdGeTol obj)
Definition: OdGeTol.cs:26
Volume(OdGePoint3d origin, OdGeVector3d zAxis, OdGeVector3d yAxis, OdGeVector3d xAxis, double xFov, double yFov, bool xFovAsAspect, bool yFovAsAspect, bool bNearPlane, double fNearPlane, bool bFarPlane, double fFarPlane)
Definition: Volume.cs:88
Volume(OdGePoint3d origin, OdGeVector3d zAxis, OdGeVector3d yAxis, OdGeVector3d xAxis, double xFov, double yFov, bool xFovAsAspect, bool yFovAsAspect, bool bNearPlane, double fNearPlane)
Definition: Volume.cs:96
static HandleRef getCPtr(Volume obj)
Definition: Volume.cs:26
Volume(OdGePoint3d origin, OdGeVector3d zAxis, OdGeVector3d yAxis, OdGeVector3d xAxis, double xFov, double yFov, bool xFovAsAspect)
Definition: Volume.cs:108
Volume(OdGePoint3d origin, OdGeVector3d zAxis, OdGeVector3d yAxis, OdGeVector3d xAxis, double xFov, double yFov, bool xFovAsAspect, bool yFovAsAspect)
Definition: Volume.cs:104
Volume(OdGePoint3d origin, OdGeVector3d zAxis, OdGeVector3d yAxis, OdGeVector3d xAxis, double xFov, double yFov)
Definition: Volume.cs:112
virtual void transform(OdGeMatrix3d mtx)
Definition: Volume.cs:128
static bool isNoSpace(OdSiShape ptr)
Definition: Volume.cs:151
static bool isOverallSpace(OdSiShape ptr)
Definition: Volume.cs:145
virtual bool contains(OdGeExtents3d extents, bool planar, OdGeTol tol)
Definition: Volume.cs:116
static OdSiShape kNoSpace
Definition: Volume.cs:165
void Dispose()
Definition: Volume.cs:34
Volume(IntPtr cPtr, bool cMemoryOwn)
Definition: Volume.cs:21
Volume(OdGePoint3d origin, OdGeVector3d zAxis, OdGeVector3d yAxis, OdGeVector3d xAxis, double xFov, double yFov, bool xFovAsAspect, bool yFovAsAspect, bool bNearPlane)
Definition: Volume.cs:100
static OdSiShape kOverallSpace
Definition: Volume.cs:157
virtual OdSiShape clone()
Definition: Volume.cs:56
Volume(Volume source)
Definition: Volume.cs:84
static double fovFromPlane(double plane, double len)
Definition: Volume.cs:139
static double fovToPlane(double fov, double len)
Definition: Volume.cs:133
virtual void Dispose(bool disposing)
Definition: Volume.cs:39
bool swigCMemOwn
Definition: Volume.cs:19
virtual bool intersects(OdGeExtents3d extents, bool planar, OdGeTol tol)
Definition: Volume.cs:122
Volume(OdGePoint3d origin, OdGeVector3d zAxis, OdGeVector3d yAxis, OdGeVector3d xAxis, double xFov, double yFov, bool xFovAsAspect, bool yFovAsAspect, bool bNearPlane, double fNearPlane, bool bFarPlane)
Definition: Volume.cs:92
global::System.Runtime.InteropServices.HandleRef GetInterfaceCPtr()