Extended .NET SDK Documentation 2025 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
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 Volume buildPyramidInEyeCS(OdGeExtents2d baseProjecton, double viewDistance, bool bNearPnane, double dNearPlane, bool bFarPlane, double dFarPlane) {
146 Volume ret = new Volume(GlobalsPINVOKE.Volume_buildPyramidInEyeCS__SWIG_0(OdGeExtents2d.getCPtr(baseProjecton), viewDistance, bNearPnane, dNearPlane, bFarPlane, dFarPlane), true);
148 return ret;
149 }
150
151 public static Volume buildPyramidInEyeCS(OdGeExtents2d baseProjecton, double viewDistance, bool bNearPnane, double dNearPlane, bool bFarPlane) {
152 Volume ret = new Volume(GlobalsPINVOKE.Volume_buildPyramidInEyeCS__SWIG_1(OdGeExtents2d.getCPtr(baseProjecton), viewDistance, bNearPnane, dNearPlane, bFarPlane), true);
154 return ret;
155 }
156
157 public static Volume buildPyramidInEyeCS(OdGeExtents2d baseProjecton, double viewDistance, bool bNearPnane, double dNearPlane) {
158 Volume ret = new Volume(GlobalsPINVOKE.Volume_buildPyramidInEyeCS__SWIG_2(OdGeExtents2d.getCPtr(baseProjecton), viewDistance, bNearPnane, dNearPlane), true);
160 return ret;
161 }
162
163 public static Volume buildPyramidInEyeCS(OdGeExtents2d baseProjecton, double viewDistance, bool bNearPnane) {
164 Volume ret = new Volume(GlobalsPINVOKE.Volume_buildPyramidInEyeCS__SWIG_3(OdGeExtents2d.getCPtr(baseProjecton), viewDistance, bNearPnane), true);
166 return ret;
167 }
168
169 public static Volume buildPyramidInEyeCS(OdGeExtents2d baseProjecton, double viewDistance) {
170 Volume ret = new Volume(GlobalsPINVOKE.Volume_buildPyramidInEyeCS__SWIG_4(OdGeExtents2d.getCPtr(baseProjecton), viewDistance), true);
172 return ret;
173 }
174
180
181 public static bool isNoSpace(OdSiShape ptr) {
184 return ret;
185 }
186
194
195 public static OdSiShape kNoSpace {
196 get {
199 return ret;
200 }
201 }
202
203}
204
205}
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_buildPyramidInEyeCS__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, bool jarg3, double jarg4, bool jarg5, double jarg6)
static global::System.IntPtr Volume_kOverallSpace_get()
static IntPtr Volume_clone(HandleRef jarg1)
static global::System.IntPtr Volume_buildPyramidInEyeCS__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, bool jarg3, double jarg4, bool jarg5)
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 global::System.IntPtr Volume_buildPyramidInEyeCS__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, bool jarg3, double jarg4)
static bool Volume_isOverallSpace(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr Volume_buildPyramidInEyeCS__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, bool jarg3)
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 global::System.IntPtr Volume_buildPyramidInEyeCS__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static HandleRef getCPtr(OdGeExtents2d obj)
static HandleRef getCPtr(OdGeExtents3d obj)
static HandleRef getCPtr(OdGeMatrix3d obj)
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
static Volume buildPyramidInEyeCS(OdGeExtents2d baseProjecton, double viewDistance)
Definition Volume.cs:169
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:181
static bool isOverallSpace(OdSiShape ptr)
Definition Volume.cs:175
virtual bool contains(OdGeExtents3d extents, bool planar, OdGeTol tol)
Definition Volume.cs:116
static OdSiShape kNoSpace
Definition Volume.cs:195
static Volume buildPyramidInEyeCS(OdGeExtents2d baseProjecton, double viewDistance, bool bNearPnane, double dNearPlane)
Definition Volume.cs:157
Volume(IntPtr cPtr, bool cMemoryOwn)
Definition Volume.cs:21
static Volume buildPyramidInEyeCS(OdGeExtents2d baseProjecton, double viewDistance, bool bNearPnane)
Definition Volume.cs:163
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:187
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 Volume buildPyramidInEyeCS(OdGeExtents2d baseProjecton, double viewDistance, bool bNearPnane, double dNearPlane, bool bFarPlane)
Definition Volume.cs:151
static double fovToPlane(double fov, double len)
Definition Volume.cs:133
virtual void Dispose(bool disposing)
Definition Volume.cs:39
static Volume buildPyramidInEyeCS(OdGeExtents2d baseProjecton, double viewDistance, bool bNearPnane, double dNearPlane, bool bFarPlane, double dFarPlane)
Definition Volume.cs:145
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()