Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdSiShapeRay.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 OdSiShapeRay : 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 OdSiShapeRay(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(OdSiShapeRay 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.OdSiShapeRay_OdSiShape_GetInterfaceCPtr(swigCPtr.Handle));
54 }
55
57 set {
60 }
61 get {
62 global::System.IntPtr cPtr = GlobalsPINVOKE.OdSiShapeRay_m_pointStart_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.OdSiShapeRay_m_vecDir_get(swigCPtr);
76 OdGeVector3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeVector3d(cPtr, false);
78 return ret;
79 }
80 }
81
82 public OdSiShapeRay(OdGePoint3d pointStart, OdGeVector3d vecDir) : this(GlobalsPINVOKE.new_OdSiShapeRay__SWIG_0(OdGePoint3d.getCPtr(pointStart), OdGeVector3d.getCPtr(vecDir)), true) {
84 }
85
86 public OdSiShapeRay(OdGeRay3d ray) : this(GlobalsPINVOKE.new_OdSiShapeRay__SWIG_1(OdGeRay3d.getCPtr(ray)), true) {
88 }
89
90 public virtual bool contains(OdGeExtents3d extents, bool planar, OdGeTol tol) {
91 bool ret = GlobalsPINVOKE.OdSiShapeRay_contains(swigCPtr, OdGeExtents3d.getCPtr(extents), planar, OdGeTol.getCPtr(tol));
93 return ret;
94 }
95
96 public virtual bool intersects(OdGeExtents3d extents, bool planar, OdGeTol tol) {
97 bool ret = GlobalsPINVOKE.OdSiShapeRay_intersects(swigCPtr, OdGeExtents3d.getCPtr(extents), planar, OdGeTol.getCPtr(tol));
99 return ret;
100 }
101
108
113
119
125
133
141
142}
143
144}
static global::System.Exception Retrieve()
static bool OdSiShapeRay_isOverallSpace(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdSiShapeRay_OdSiShape_GetInterfaceCPtr(global::System.IntPtr jarg1)
static bool OdSiShapeRay_intersects(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static bool OdSiShapeRay_isNoSpace(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdSiShapeRay_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 OdSiShapeRay_m_vecDir_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdSiShapeRay_m_pointStart_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdSiShapeRay_transform(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdSiShapeRay_kNoSpace_get()
static global::System.IntPtr OdSiShapeRay_kOverallSpace_get()
static void delete_OdSiShapeRay(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdSiShapeRay_m_vecDir_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdSiShapeRay_clone(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdSiShapeRay_m_pointStart_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static HandleRef getCPtr(OdGeExtents3d obj)
static HandleRef getCPtr(OdGeMatrix3d obj)
static HandleRef getCPtr(OdGePoint3d obj)
static HandleRef getCPtr(OdGeTol obj)
Definition OdGeTol.cs:26
static HandleRef getCPtr(OdGeVector3d obj)
virtual void transform(OdGeMatrix3d tf)
static bool isOverallSpace(OdSiShape ptr)
static HandleRef getCPtr(OdSiShapeRay obj)
virtual void Dispose(bool disposing)
static OdSiShape kOverallSpace
virtual bool contains(OdGeExtents3d extents, bool planar, OdGeTol tol)
static bool isNoSpace(OdSiShape ptr)
virtual OdSiShape clone()
virtual bool intersects(OdGeExtents3d extents, bool planar, OdGeTol tol)
static OdSiShape kNoSpace
OdSiShapeRay(IntPtr cPtr, bool cMemoryOwn)
OdSiShapeRay(OdGeRay3d ray)
OdSiShapeRay(OdGePoint3d pointStart, OdGeVector3d vecDir)
global::System.Runtime.InteropServices.HandleRef GetInterfaceCPtr()