Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGsSpatialQuery.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 OdGsSpatialQuery : 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 OdGsSpatialQuery(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(OdGsSpatialQuery 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 public OdGsSpatialQuery() : this(GlobalsPINVOKE.new_OdGsSpatialQuery(), true) {
53 }
54
55 public OdSiShape build(OdGsViewImpl view, OdGeExtents3d sceneExtents, int numPoints, OdGePoint2d[] /*ENDPOINTS2D_OVERRIDES*/ points) {
56IntPtr p_points=Teigha.Core.Helpers.MarshalPoint2dPair(points);
57 try {
58 OdSiShapeImpl ret = new OdSiShapeImpl(GlobalsPINVOKE.OdGsSpatialQuery_build__SWIG_0(swigCPtr, OdGsViewImpl.getCPtr(view), OdGeExtents3d.getCPtr(sceneExtents), numPoints, p_points),false);
59
61 return (OdSiShape)ret;
62} finally {
63if (p_points != IntPtr.Zero) Marshal.FreeCoTaskMem(p_points);
64 }
65 }
66
67 public OdSiShape build(OdGsViewImpl view, OdGeExtents3d sceneExtents, int numPoints, OdGsDCPoint points) {
69
71 return (OdSiShape)ret;
72}
73
74 public OdSiShape build(OdGsViewImpl view, OdGeExtents3d sceneExtents, int numPoints) {
75 OdSiShapeImpl ret = new OdSiShapeImpl(GlobalsPINVOKE.OdGsSpatialQuery_build__SWIG_2(swigCPtr, OdGsViewImpl.getCPtr(view), OdGeExtents3d.getCPtr(sceneExtents), numPoints),false);
76
78 return (OdSiShape)ret;
79}
80
81 public OdSiShape build(OdGsViewImpl view, OdGeExtents3d sceneExtents) {
83
85 return (OdSiShape)ret;
86}
87
88 public OdSiShape build(OdGsViewImpl view, OdGsBaseModel pModel, OdGeExtents3d sceneExtents, int numPoints, OdGePoint2d[] /*ENDPOINTS2D_OVERRIDES*/ points) {
89IntPtr p_points=Teigha.Core.Helpers.MarshalPoint2dPair(points);
90 try {
91 OdSiShapeImpl ret = new OdSiShapeImpl(GlobalsPINVOKE.OdGsSpatialQuery_build__SWIG_4(swigCPtr, OdGsViewImpl.getCPtr(view), OdGsBaseModel.getCPtr(pModel), OdGeExtents3d.getCPtr(sceneExtents), numPoints, p_points),false);
92
94 return (OdSiShape)ret;
95} finally {
96if (p_points != IntPtr.Zero) Marshal.FreeCoTaskMem(p_points);
97 }
98 }
99
100 public OdSiShape build(OdGsViewImpl view, OdGsBaseModel pModel, OdGeExtents3d sceneExtents, int numPoints, OdGsDCPoint points) {
102
104 return (OdSiShape)ret;
105}
106
107 public OdSiShape build(OdGsViewImpl view, OdGsBaseModel pModel, OdGeExtents3d sceneExtents, int numPoints) {
109
111 return (OdSiShape)ret;
112}
113
114 public OdSiShape build(OdGsViewImpl view, OdGsBaseModel pModel, OdGeExtents3d sceneExtents) {
116
118 return (OdSiShape)ret;
119}
120
121 public BBox getBBox() {
122 BBox ret = new BBox(GlobalsPINVOKE.OdGsSpatialQuery_getBBox(swigCPtr), false);
124 return ret;
125 }
126
127}
128
129}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGsSpatialQuery_getBBox(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGsSpatialQuery_build__SWIG_5(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, int jarg5, global::System.Runtime.InteropServices.HandleRef jarg6)
static global::System.IntPtr OdGsSpatialQuery_build__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, int jarg4, global::System.Runtime.InteropServices.HandleRef jarg5)
static global::System.IntPtr OdGsSpatialQuery_build__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, int jarg4, IntPtr jarg5)
static global::System.IntPtr OdGsSpatialQuery_build__SWIG_7(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static global::System.IntPtr OdGsSpatialQuery_build__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, int jarg4)
static global::System.IntPtr OdGsSpatialQuery_build__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void delete_OdGsSpatialQuery(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGsSpatialQuery_build__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, int jarg5, IntPtr jarg6)
static global::System.IntPtr OdGsSpatialQuery_build__SWIG_6(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, int jarg5)
static HandleRef getCPtr(OdGeExtents3d obj)
static HandleRef getCPtr(OdGsBaseModel obj)
static HandleRef getCPtr(OdGsDCPoint obj)
Definition: OdGsDCPoint.cs:26
OdSiShape build(OdGsViewImpl view, OdGeExtents3d sceneExtents, int numPoints, OdGePoint2d[] points)
OdSiShape build(OdGsViewImpl view, OdGsBaseModel pModel, OdGeExtents3d sceneExtents, int numPoints, OdGsDCPoint points)
OdSiShape build(OdGsViewImpl view, OdGsBaseModel pModel, OdGeExtents3d sceneExtents, int numPoints)
OdSiShape build(OdGsViewImpl view, OdGeExtents3d sceneExtents, int numPoints)
virtual void Dispose(bool disposing)
OdGsSpatialQuery(IntPtr cPtr, bool cMemoryOwn)
OdSiShape build(OdGsViewImpl view, OdGeExtents3d sceneExtents)
OdSiShape build(OdGsViewImpl view, OdGsBaseModel pModel, OdGeExtents3d sceneExtents, int numPoints, OdGePoint2d[] points)
OdSiShape build(OdGsViewImpl view, OdGsBaseModel pModel, OdGeExtents3d sceneExtents)
OdSiShape build(OdGsViewImpl view, OdGeExtents3d sceneExtents, int numPoints, OdGsDCPoint points)
static HandleRef getCPtr(OdGsSpatialQuery obj)
static HandleRef getCPtr(OdGsViewImpl obj)
Definition: OdGsViewImpl.cs:26