Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxGeomUtils.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 PCAD_DOT_NET {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16using Teigha.TD;
17
18public class CFxGeomUtils : global::System.IDisposable {
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 protected bool swigCMemOwn;
22 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
23 public CFxGeomUtils(IntPtr cPtr, bool cMemoryOwn) {
24 swigCMemOwn = cMemoryOwn;
25 swigCPtr = new HandleRef(this, cPtr);
26 }
27 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
28 public static HandleRef getCPtr(CFxGeomUtils obj) {
29 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30 }
31
33 Dispose(false);
34 }
35
36 public void Dispose() {
37 Dispose(true);
38 global::System.GC.SuppressFinalize(this);
39 }
40
41 protected virtual void Dispose(bool disposing) {
42 lock(this) {
43 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
44 if (swigCMemOwn) {
45 swigCMemOwn = false;
47 }
48 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
49 }
50 }
51 }
52
53 public virtual void SelectSubentsByPoint(CFxView pView, SWIGTYPE_p_CFxGsNode p3dSolidGsNode, OdGePoint3d ptPickPoint, OdGsMarkerArray aMarkers) {
56 }
57
58 public virtual bool GetNormalOfPlanarFace(OdDb3dSolid pSolid, OdDbFullSubentPath face, OdGeVector3d normal) {
61 return ret;
62 }
63
64 public virtual bool GetClosestPointInFace(OdGePoint3d pt, OdDbEntity pObj, OdDbFullSubentPath face, OdGePoint3d closest, OdGeVector3d Utangent, OdGeVector3d Vtangent) {
67 return ret;
68 }
69
70 public virtual bool shootRayAgainstObject(OdDbEntity pObj, double tol, OdGePoint3d base_, OdGeVector3d viewDir, OdDbSubentIdArraySt subEntIds, OdGeDoubleArray parameters) {
73 return ret;
74 }
75
76 public virtual bool shootRayAgainstObject(OdDbEntity pObj, double tol, OdGePoint3d base_, OdGeVector3d viewDir, OdDbSubentIdArraySt subEntIds, OdGePoint3d pickPoint) {
79 return ret;
80 }
81
82 public virtual bool shootRayAgainstArrayObjects(SWIGTYPE_p_std__vectorT_OdSmartPtrT_OdDbEntity_t_t pObjs, double tol, OdGePoint3d base_, OdGeVector3d viewDir, out int index, OdDbSubentIdArraySt subEntIds, OdGeDoubleArray parameters) {
85 return ret;
86 }
87
88 public virtual bool shootRayAgainstArrayObjects(SWIGTYPE_p_std__vectorT_OdSmartPtrT_OdDbEntity_t_t pObjs, double tol, OdGePoint3d base_, OdGeVector3d viewDir, out int index, OdDbSubentIdArraySt subEntIds, OdGePoint3d pickPoint) {
91 return ret;
92 }
93
94 public virtual bool shootRayToGetMultipleSubEntities(SWIGTYPE_p_std__vectorT_OdSmartPtrT_OdDbEntity_t_t pObjs, double tol, OdGePoint3d base_, OdGeVector3d viewDir, out int index, OdDbSubentIdArraySt subEntIds, OdGePoint3dArraySt pickPoints) {
97 return ret;
98 }
99
100 public virtual bool shootRayToGetMultipleSubEntities(SWIGTYPE_p_std__vectorT_OdSmartPtrT_OdDbEntity_t_t pObjs, double tol, OdGePoint3d base_, OdGeVector3d viewDir, out int index, OdDbSubentIdArraySt subEntIds, OdGeDoubleArray parameters) {
103 return ret;
104 }
105
106 public virtual bool SelectEdgeOnFace(CFxView pView, SWIGTYPE_p_CFxGsNode p3dSolidGsNode, OdGePoint3d ptPickPoint, ref IntPtr faceId, ref IntPtr edgeId) {
107 bool ret = PCADGlobalsPINVOKE.CFxGeomUtils_SelectEdgeOnFace(swigCPtr, CFxView.getCPtr(pView), SWIGTYPE_p_CFxGsNode.getCPtr(p3dSolidGsNode), OdGePoint3d.getCPtr(ptPickPoint), ref faceId, ref edgeId);
109 return ret;
110 }
111
112 public virtual bool GetEdgesFromFace(OdDb3dSolid p3dSolid, OdDbFullSubentPath face, OdDbFullSubentPathArray edgePaths) {
115 return ret;
116 }
117
121 return ret;
122 }
123
127 return ret;
128 }
129
130 public static OdGePoint3dArray GetImageBoundary(OdGeMatrix3d mPixelToModel, OdGePoint2d[] /*POINTARRAY2D_TYPEMAP_REV*/ uvBoundary) {
131IntPtr p_uvBoundary=Teigha.Core.Helpers.MarshalPoint2dArray(uvBoundary);
132 try {
133// csout array
135
137 return res;
138} finally {
139Marshal.FreeCoTaskMem(p_uvBoundary);
140 }
141 }
142
146 return ret;
147 }
148
149 public static OdDbEntity GetPolySegment(OdDbEntity pPoly, OdGePoint3d pickPoint) {// OdDbEntityPtr
150 MemoryManager mMan = MemoryManager.GetMemoryManager();
151 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
153
154 OdDbEntity ret = null;
155 if (null != mTrans)
156 {
157 mTrans.AddObject((OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),ptr, true));
158 ret = (OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),ptr, false);
159 }
160 else
161 {
162 ret = (OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),ptr, true);
163 }
164
166 return ret;
167}
168
169 public static bool GetSegmentAtPoint(OdDbCurve pPLine, OdGePoint3d pointOnPLine, OdGeCircArc3d circ, OdGeLineSeg3d line, out bool isArc, out bool isLine) {
170 bool ret = PCADGlobalsPINVOKE.CFxGeomUtils_GetSegmentAtPoint(OdDbCurve.getCPtr(pPLine), OdGePoint3d.getCPtr(pointOnPLine), OdGeCircArc3d.getCPtr(circ), OdGeLineSeg3d.getCPtr(line), out isArc, out isLine);
172 return ret;
173 }
174
175 public static OdDbPolyline ConvertToStdPolyline(OdDbCurve pCurve) {// OdDbPolylinePtr
176 MemoryManager mMan = MemoryManager.GetMemoryManager();
177 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
179
180 OdDbPolyline ret = null;
181 if (null != mTrans)
182 {
183 mTrans.AddObject((OdDbPolyline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbPolyline),ptr, true));
184 ret = (OdDbPolyline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbPolyline),ptr, false);
185 }
186 else
187 {
188 ret = (OdDbPolyline)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbPolyline),ptr, true);
189 }
190
192 return ret;
193}
194
195}
196
197}
static OdGePoint3dArray GetImageBoundary(OdGeMatrix3d mPixelToModel, OdGePoint2d[] uvBoundary)
static OdGeMatrix3d GetTransform(OdDbFullSubentPath path)
virtual void SelectSubentsByPoint(CFxView pView, SWIGTYPE_p_CFxGsNode p3dSolidGsNode, OdGePoint3d ptPickPoint, OdGsMarkerArray aMarkers)
Definition: CFxGeomUtils.cs:53
static bool GetSegmentAtPoint(OdDbCurve pPLine, OdGePoint3d pointOnPLine, OdGeCircArc3d circ, OdGeLineSeg3d line, out bool isArc, out bool isLine)
virtual bool SelectEdgeOnFace(CFxView pView, SWIGTYPE_p_CFxGsNode p3dSolidGsNode, OdGePoint3d ptPickPoint, ref IntPtr faceId, ref IntPtr edgeId)
virtual bool shootRayAgainstArrayObjects(SWIGTYPE_p_std__vectorT_OdSmartPtrT_OdDbEntity_t_t pObjs, double tol, OdGePoint3d base_, OdGeVector3d viewDir, out int index, OdDbSubentIdArraySt subEntIds, OdGeDoubleArray parameters)
Definition: CFxGeomUtils.cs:82
virtual bool GetNormalOfPlanarFace(OdDb3dSolid pSolid, OdDbFullSubentPath face, OdGeVector3d normal)
Definition: CFxGeomUtils.cs:58
static OdDbPolyline ConvertToStdPolyline(OdDbCurve pCurve)
virtual bool shootRayToGetMultipleSubEntities(SWIGTYPE_p_std__vectorT_OdSmartPtrT_OdDbEntity_t_t pObjs, double tol, OdGePoint3d base_, OdGeVector3d viewDir, out int index, OdDbSubentIdArraySt subEntIds, OdGeDoubleArray parameters)
CFxGeomUtils(IntPtr cPtr, bool cMemoryOwn)
Definition: CFxGeomUtils.cs:23
static OdGeMatrix3d GetTransform(OdDbObjectIdArray idArray)
virtual bool shootRayAgainstArrayObjects(SWIGTYPE_p_std__vectorT_OdSmartPtrT_OdDbEntity_t_t pObjs, double tol, OdGePoint3d base_, OdGeVector3d viewDir, out int index, OdDbSubentIdArraySt subEntIds, OdGePoint3d pickPoint)
Definition: CFxGeomUtils.cs:88
static HandleRef getCPtr(CFxGeomUtils obj)
Definition: CFxGeomUtils.cs:28
static OdDbEntity GetPolySegment(OdDbEntity pPoly, OdGePoint3d pickPoint)
virtual bool shootRayAgainstObject(OdDbEntity pObj, double tol, OdGePoint3d base_, OdGeVector3d viewDir, OdDbSubentIdArraySt subEntIds, OdGeDoubleArray parameters)
Definition: CFxGeomUtils.cs:70
static OdGeMatrix3d GetPixelToModelTransform(OdGePoint3d origin, OdGeVector3d u, OdGeVector3d v, double ySize)
virtual void Dispose(bool disposing)
Definition: CFxGeomUtils.cs:41
virtual bool shootRayToGetMultipleSubEntities(SWIGTYPE_p_std__vectorT_OdSmartPtrT_OdDbEntity_t_t pObjs, double tol, OdGePoint3d base_, OdGeVector3d viewDir, out int index, OdDbSubentIdArraySt subEntIds, OdGePoint3dArraySt pickPoints)
Definition: CFxGeomUtils.cs:94
virtual bool shootRayAgainstObject(OdDbEntity pObj, double tol, OdGePoint3d base_, OdGeVector3d viewDir, OdDbSubentIdArraySt subEntIds, OdGePoint3d pickPoint)
Definition: CFxGeomUtils.cs:76
virtual bool GetClosestPointInFace(OdGePoint3d pt, OdDbEntity pObj, OdDbFullSubentPath face, OdGePoint3d closest, OdGeVector3d Utangent, OdGeVector3d Vtangent)
Definition: CFxGeomUtils.cs:64
virtual bool GetEdgesFromFace(OdDb3dSolid p3dSolid, OdDbFullSubentPath face, OdDbFullSubentPathArray edgePaths)
static HandleRef getCPtr(CFxView obj)
Definition: CFxView.cs:27
static bool CFxGeomUtils_GetNormalOfPlanarFace(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static IntPtr CFxGeomUtils_ConvertToStdPolyline(HandleRef jarg1)
static void delete_CFxGeomUtils(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxGeomUtils_shootRayAgainstObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7)
static bool CFxGeomUtils_SelectEdgeOnFace(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, ref IntPtr jarg5, ref IntPtr jarg6)
static bool CFxGeomUtils_shootRayAgainstArrayObjects__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, out int jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8)
static global::System.IntPtr CFxGeomUtils_GetImageBoundary(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static global::System.IntPtr CFxGeomUtils_GetPixelToModelTransform(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, double jarg4)
static IntPtr CFxGeomUtils_GetPolySegment(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool CFxGeomUtils_GetClosestPointInFace(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7)
static global::System.IntPtr CFxGeomUtils_GetTransform__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxGeomUtils_shootRayAgainstArrayObjects__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, out int jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8)
static bool CFxGeomUtils_shootRayToGetMultipleSubEntities__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, out int jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8)
static bool CFxGeomUtils_shootRayToGetMultipleSubEntities__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, out int jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8)
static bool CFxGeomUtils_GetSegmentAtPoint(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, out bool jarg5, out bool jarg6)
static global::System.IntPtr CFxGeomUtils_GetTransform__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxGeomUtils_GetEdgesFromFace(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void CFxGeomUtils_SelectSubentsByPoint(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5)
static bool CFxGeomUtils_shootRayAgainstObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7)
static HandleRef getCPtr(OdGeCircArc3d obj)
static HandleRef getCPtr(OdGeDoubleArray obj)
static HandleRef getCPtr(OdGeLineSeg3d obj)
static HandleRef getCPtr(OdGeMatrix3d obj)
Definition: OdGeMatrix3d.cs:26
static HandleRef getCPtr(OdGePoint3dArraySt obj)
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdGeVector3d obj)
Definition: OdGeVector3d.cs:26
static HandleRef getCPtr(OdGsMarkerArray obj)
static HandleRef getCPtr(OdDb3dSolid obj)
Definition: OdDb3dSolid.cs:26
static HandleRef getCPtr(OdDbCurve obj)
Definition: OdDbCurve.cs:26
static HandleRef getCPtr(OdDbEntity obj)
Definition: OdDbEntity.cs:26
static HandleRef getCPtr(OdDbFullSubentPathArray obj)
static HandleRef getCPtr(OdDbFullSubentPath obj)
static HandleRef getCPtr(OdDbObjectIdArray obj)
static HandleRef getCPtr(OdDbSubentIdArraySt obj)