Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDbOsnapOverrule.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.TD {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDbOsnapOverrule(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbOsnapOverrule_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDbOsnapOverrule obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 protected override void Dispose(bool disposing) {
31 lock(this) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 if (swigCMemOwn) {
34 swigCMemOwn = false;
36 }
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 }
39 base.Dispose(disposing);
40 }
41 }
42
44 : this(TD_DbPINVOKE.new_OdDbOsnapOverrule(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
45 {
46 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction(); // MemoryTransaction #1
47 if (null != mTr)
48 {
49 mTr.AddObject(new OdDbOsnapOverrule(swigCPtr.Handle, true));
50 }
52 SwigDirectorConnect();
53 }
54
55 public static OdDbOsnapOverrule cast(OdRxObject pObj) {// OdSmartPtr<OdDbOsnapOverrule>
56 MemoryManager mMan = MemoryManager.GetMemoryManager();
57 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
59
60 OdDbOsnapOverrule ret = null;
61 if (null != mTrans)
62 {
63 mTrans.AddObject((OdDbOsnapOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbOsnapOverrule),ptr, true));
64 ret = (OdDbOsnapOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbOsnapOverrule),ptr, false);
65 }
66 else
67 {
68 ret = (OdDbOsnapOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbOsnapOverrule),ptr, true);
69 }
70
72 return ret;
73}
74
75 public new static OdRxClass desc() {
76 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdDbOsnapOverrule_desc(),false); /*createInt 3_2*/
77
79 return ret;
80}
81
82 public override OdRxClass isA() {
83 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),(SwigDerivedClassHasMethod("isA", swigMethodTypes1) ? TD_DbPINVOKE.OdDbOsnapOverrule_isASwigExplicitOdDbOsnapOverrule(swigCPtr) : TD_DbPINVOKE.OdDbOsnapOverrule_isA(swigCPtr)),false); /*createInt 3_2*/
84
86 return ret;
87}
88
89 public override OdRxObject queryX(OdRxClass protocolClass) {
90 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),(SwigDerivedClassHasMethod("queryX", swigMethodTypes0) ? TD_DbPINVOKE.OdDbOsnapOverrule_queryXSwigExplicitOdDbOsnapOverrule(swigCPtr, OdRxClass.getCPtr(protocolClass)) : TD_DbPINVOKE.OdDbOsnapOverrule_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass))),false); /*createInt 3_2*/
91
93 return ret;
94}
95
96 public static OdDbOsnapOverrule createObject() {// OdSmartPtr<OdDbOsnapOverrule>
97 MemoryManager mMan = MemoryManager.GetMemoryManager();
98 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
100
101 OdDbOsnapOverrule ret = null;
102 if (null != mTrans)
103 {
104 mTrans.AddObject((OdDbOsnapOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbOsnapOverrule),ptr, true));
105 ret = (OdDbOsnapOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbOsnapOverrule),ptr, false);
106 }
107 else
108 {
109 ret = (OdDbOsnapOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbOsnapOverrule),ptr, true);
110 }
111
113 return ret;
114}
115
116 public virtual OdResult getOsnapPoints(OdDbEntity pSubject, OsnapMode osnapMode, IntPtr /*SIMPLETYPE*/ gsSelectionMark, OdGePoint3d pickPoint, OdGePoint3d lastPoint, OdGeMatrix3d xWorldToEye, OdGePoint3dArray snapPoints) {
117 OdResult ret = (OdResult)(SwigDerivedClassHasMethod("getOsnapPoints", swigMethodTypes3) ? TD_DbPINVOKE.OdDbOsnapOverrule_getOsnapPointsSwigExplicitOdDbOsnapOverrule__SWIG_0(swigCPtr, OdDbEntity.getCPtr(pSubject), (int)osnapMode, gsSelectionMark /*SIMPLETYPE*/, OdGePoint3d.getCPtr(pickPoint), OdGePoint3d.getCPtr(lastPoint), OdGeMatrix3d.getCPtr(xWorldToEye), OdGePoint3dArray.getCPtr(snapPoints)) : TD_DbPINVOKE.OdDbOsnapOverrule_getOsnapPoints__SWIG_0(swigCPtr, OdDbEntity.getCPtr(pSubject), (int)osnapMode, gsSelectionMark /*SIMPLETYPE*/, OdGePoint3d.getCPtr(pickPoint), OdGePoint3d.getCPtr(lastPoint), OdGeMatrix3d.getCPtr(xWorldToEye), OdGePoint3dArray.getCPtr(snapPoints)));
119 return ret;
120 }
121
122 public virtual OdResult getOsnapPoints(OdDbEntity pSubject, OsnapMode osnapMode, IntPtr /*SIMPLETYPE*/ gsSelectionMark, OdGePoint3d pickPoint, OdGePoint3d lastPoint, OdGeMatrix3d xWorldToEye, OdGePoint3dArray snapPoints, OdGeMatrix3d insertionMat) {
123 OdResult ret = (OdResult)(SwigDerivedClassHasMethod("getOsnapPoints", swigMethodTypes4) ? TD_DbPINVOKE.OdDbOsnapOverrule_getOsnapPointsSwigExplicitOdDbOsnapOverrule__SWIG_1(swigCPtr, OdDbEntity.getCPtr(pSubject), (int)osnapMode, gsSelectionMark /*SIMPLETYPE*/, OdGePoint3d.getCPtr(pickPoint), OdGePoint3d.getCPtr(lastPoint), OdGeMatrix3d.getCPtr(xWorldToEye), OdGePoint3dArray.getCPtr(snapPoints), OdGeMatrix3d.getCPtr(insertionMat)) : TD_DbPINVOKE.OdDbOsnapOverrule_getOsnapPoints__SWIG_1(swigCPtr, OdDbEntity.getCPtr(pSubject), (int)osnapMode, gsSelectionMark /*SIMPLETYPE*/, OdGePoint3d.getCPtr(pickPoint), OdGePoint3d.getCPtr(lastPoint), OdGeMatrix3d.getCPtr(xWorldToEye), OdGePoint3dArray.getCPtr(snapPoints), OdGeMatrix3d.getCPtr(insertionMat)));
125 return ret;
126 }
127
128 public virtual bool isContentSnappable(OdDbEntity pSubject) {
129 bool ret = (SwigDerivedClassHasMethod("isContentSnappable", swigMethodTypes5) ? TD_DbPINVOKE.OdDbOsnapOverrule_isContentSnappableSwigExplicitOdDbOsnapOverrule(swigCPtr, OdDbEntity.getCPtr(pSubject)) : TD_DbPINVOKE.OdDbOsnapOverrule_isContentSnappable(swigCPtr, OdDbEntity.getCPtr(pSubject)));
131 return ret;
132 }
133
134 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
135 string ret = TD_DbPINVOKE.OdDbOsnapOverrule_getRealClassName(ptr /*SIMPLETYPE*/);
137 return ret;
138 }
139
140 private void SwigDirectorConnect() {
141 if (SwigDerivedClassHasMethod("queryX", swigMethodTypes0))
142 swigDelegate0 = new SwigDelegateOdDbOsnapOverrule_0(SwigDirectorMethodqueryX);
143 if (SwigDerivedClassHasMethod("isA", swigMethodTypes1))
144 swigDelegate1 = new SwigDelegateOdDbOsnapOverrule_1(SwigDirectorMethodisA);
145 if (SwigDerivedClassHasMethod("isApplicable", swigMethodTypes2))
146 swigDelegate2 = new SwigDelegateOdDbOsnapOverrule_2(SwigDirectorMethodisApplicable);
147 if (SwigDerivedClassHasMethod("getOsnapPoints", swigMethodTypes3))
148 swigDelegate3 = new SwigDelegateOdDbOsnapOverrule_3(SwigDirectorMethodgetOsnapPoints__SWIG_0);
149 if (SwigDerivedClassHasMethod("getOsnapPoints", swigMethodTypes4))
150 swigDelegate4 = new SwigDelegateOdDbOsnapOverrule_4(SwigDirectorMethodgetOsnapPoints__SWIG_1);
151 if (SwigDerivedClassHasMethod("isContentSnappable", swigMethodTypes5))
152 swigDelegate5 = new SwigDelegateOdDbOsnapOverrule_5(SwigDirectorMethodisContentSnappable);
153 TD_DbPINVOKE.OdDbOsnapOverrule_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5);
154 }
155
156 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
157 global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance, null, methodTypes, null);
158 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdDbOsnapOverrule));
159 return hasDerivedMethod;
160 }
161
162 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
163 return
164 // csdirectorout for OdRxObject*, OdRxObject&
166 (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,false) /*createInt 6_2*/ // csdirectorin for smart pointer
167)).Handle
168;
169 }
170
171 private IntPtr SwigDirectorMethodisA() {
172 return
173 // csdirectorout for OdRxClass*, OdRxClass&
174 OdRxClass.getCPtr(isA()).Handle
175;
176 }
177
178 private bool SwigDirectorMethodisApplicable(IntPtr pOverruledSubject) {
179 return isApplicable(
180 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),pOverruledSubject,false) /*createInt 6_2*/ // csdirectorin for smart pointer
181);
182 }
183
184 private int SwigDirectorMethodgetOsnapPoints__SWIG_0(IntPtr pSubject, int osnapMode, IntPtr /*SIMPLETYPE*/ gsSelectionMark, global::System.IntPtr pickPoint, global::System.IntPtr lastPoint, global::System.IntPtr xWorldToEye, global::System.IntPtr snapPoints) {
185 return (int)getOsnapPoints(
186 (OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),pSubject,false) /*createInt 6_2*/ // csdirectorin for smart pointer
187, (OsnapMode)osnapMode, gsSelectionMark /*SIMPLETYPE*/, new OdGePoint3d(pickPoint, false), new OdGePoint3d(lastPoint, false), new OdGeMatrix3d(xWorldToEye, false), new OdGePoint3dArray(snapPoints, false));
188 }
189
190 private int SwigDirectorMethodgetOsnapPoints__SWIG_1(IntPtr pSubject, int osnapMode, IntPtr /*SIMPLETYPE*/ gsSelectionMark, global::System.IntPtr pickPoint, global::System.IntPtr lastPoint, global::System.IntPtr xWorldToEye, global::System.IntPtr snapPoints, global::System.IntPtr insertionMat) {
191 return (int)getOsnapPoints(
192 (OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),pSubject,false) /*createInt 6_2*/ // csdirectorin for smart pointer
193, (OsnapMode)osnapMode, gsSelectionMark /*SIMPLETYPE*/, new OdGePoint3d(pickPoint, false), new OdGePoint3d(lastPoint, false), new OdGeMatrix3d(xWorldToEye, false), new OdGePoint3dArray(snapPoints, false), new OdGeMatrix3d(insertionMat, false));
194 }
195
196 private bool SwigDirectorMethodisContentSnappable(IntPtr pSubject) {
197 return isContentSnappable(
198 (OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),pSubject,false) /*createInt 6_2*/ // csdirectorin for smart pointer
199);
200 }
201
202 public delegate IntPtr SwigDelegateOdDbOsnapOverrule_0(IntPtr protocolClass);
203 public delegate IntPtr SwigDelegateOdDbOsnapOverrule_1();
204 public delegate bool SwigDelegateOdDbOsnapOverrule_2(IntPtr pOverruledSubject);
205 public delegate int SwigDelegateOdDbOsnapOverrule_3(IntPtr pSubject, int osnapMode, IntPtr /*SIMPLETYPE*/ gsSelectionMark, global::System.IntPtr pickPoint, global::System.IntPtr lastPoint, global::System.IntPtr xWorldToEye, global::System.IntPtr snapPoints);
206 public delegate int SwigDelegateOdDbOsnapOverrule_4(IntPtr pSubject, int osnapMode, IntPtr /*SIMPLETYPE*/ gsSelectionMark, global::System.IntPtr pickPoint, global::System.IntPtr lastPoint, global::System.IntPtr xWorldToEye, global::System.IntPtr snapPoints, global::System.IntPtr insertionMat);
207 public delegate bool SwigDelegateOdDbOsnapOverrule_5(IntPtr pSubject);
208
209 private SwigDelegateOdDbOsnapOverrule_0 swigDelegate0;
210 private SwigDelegateOdDbOsnapOverrule_1 swigDelegate1;
211 private SwigDelegateOdDbOsnapOverrule_2 swigDelegate2;
212 private SwigDelegateOdDbOsnapOverrule_3 swigDelegate3;
213 private SwigDelegateOdDbOsnapOverrule_4 swigDelegate4;
214 private SwigDelegateOdDbOsnapOverrule_5 swigDelegate5;
215
216 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdRxClass) };
217 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
218 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(OdRxObject) };
219 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { typeof(OdDbEntity), typeof(OsnapMode), typeof(IntPtr /*SIMPLETYPE*/), typeof(OdGePoint3d), typeof(OdGePoint3d), typeof(OdGeMatrix3d), typeof(OdGePoint3dArray) };
220 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { typeof(OdDbEntity), typeof(OsnapMode), typeof(IntPtr /*SIMPLETYPE*/), typeof(OdGePoint3d), typeof(OdGePoint3d), typeof(OdGeMatrix3d), typeof(OdGePoint3dArray), typeof(OdGeMatrix3d) };
221 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { typeof(OdDbEntity) };
222}
223
224}
static HandleRef getCPtr(OdGeMatrix3d obj)
Definition: OdGeMatrix3d.cs:26
static HandleRef getCPtr(OdGePoint3dArray obj)
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
virtual bool isApplicable(OdRxObject pOverruledSubject)
static HandleRef getCPtr(OdDbEntity obj)
Definition: OdDbEntity.cs:26
delegate bool SwigDelegateOdDbOsnapOverrule_5(IntPtr pSubject)
override void Dispose(bool disposing)
delegate int SwigDelegateOdDbOsnapOverrule_4(IntPtr pSubject, int osnapMode, IntPtr gsSelectionMark, global::System.IntPtr pickPoint, global::System.IntPtr lastPoint, global::System.IntPtr xWorldToEye, global::System.IntPtr snapPoints, global::System.IntPtr insertionMat)
override OdRxClass isA()
delegate IntPtr SwigDelegateOdDbOsnapOverrule_0(IntPtr protocolClass)
delegate int SwigDelegateOdDbOsnapOverrule_3(IntPtr pSubject, int osnapMode, IntPtr gsSelectionMark, global::System.IntPtr pickPoint, global::System.IntPtr lastPoint, global::System.IntPtr xWorldToEye, global::System.IntPtr snapPoints)
static OdDbOsnapOverrule cast(OdRxObject pObj)
virtual bool isContentSnappable(OdDbEntity pSubject)
static new OdRxClass desc()
virtual OdResult getOsnapPoints(OdDbEntity pSubject, OsnapMode osnapMode, IntPtr gsSelectionMark, OdGePoint3d pickPoint, OdGePoint3d lastPoint, OdGeMatrix3d xWorldToEye, OdGePoint3dArray snapPoints)
OdDbOsnapOverrule(IntPtr cPtr, bool cMemoryOwn)
delegate bool SwigDelegateOdDbOsnapOverrule_2(IntPtr pOverruledSubject)
override OdRxObject queryX(OdRxClass protocolClass)
static string getRealClassName(IntPtr ptr)
static OdDbOsnapOverrule createObject()
static HandleRef getCPtr(OdDbOsnapOverrule obj)
delegate IntPtr SwigDelegateOdDbOsnapOverrule_1()
virtual OdResult getOsnapPoints(OdDbEntity pSubject, OsnapMode osnapMode, IntPtr gsSelectionMark, OdGePoint3d pickPoint, OdGePoint3d lastPoint, OdGeMatrix3d xWorldToEye, OdGePoint3dArray snapPoints, OdGeMatrix3d insertionMat)
static global::System.Exception Retrieve()
static IntPtr OdDbOsnapOverrule_createObject()
static string OdDbOsnapOverrule_getRealClassName(IntPtr jarg1)
static void delete_OdDbOsnapOverrule(HandleRef jarg1)
static bool OdDbOsnapOverrule_isContentSnappable(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDbOsnapOverrule_queryXSwigExplicitOdDbOsnapOverrule(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDbOsnapOverrule_isA(HandleRef jarg1)
static bool OdDbOsnapOverrule_isContentSnappableSwigExplicitOdDbOsnapOverrule(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDbOsnapOverrule_cast(HandleRef jarg1)
static IntPtr OdDbOsnapOverrule_isASwigExplicitOdDbOsnapOverrule(HandleRef jarg1)
static int OdDbOsnapOverrule_getOsnapPointsSwigExplicitOdDbOsnapOverrule__SWIG_0(HandleRef jarg1, HandleRef jarg2, int jarg3, IntPtr jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8)
static IntPtr OdDbOsnapOverrule_queryX(HandleRef jarg1, HandleRef jarg2)
static int OdDbOsnapOverrule_getOsnapPointsSwigExplicitOdDbOsnapOverrule__SWIG_1(HandleRef jarg1, HandleRef jarg2, int jarg3, IntPtr jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8, global::System.Runtime.InteropServices.HandleRef jarg9)
static IntPtr OdDbOsnapOverrule_desc()
static void OdDbOsnapOverrule_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, OdDbOsnapOverrule.SwigDelegateOdDbOsnapOverrule_0 delegate0, OdDbOsnapOverrule.SwigDelegateOdDbOsnapOverrule_1 delegate1, OdDbOsnapOverrule.SwigDelegateOdDbOsnapOverrule_2 delegate2, OdDbOsnapOverrule.SwigDelegateOdDbOsnapOverrule_3 delegate3, OdDbOsnapOverrule.SwigDelegateOdDbOsnapOverrule_4 delegate4, OdDbOsnapOverrule.SwigDelegateOdDbOsnapOverrule_5 delegate5)
static int OdDbOsnapOverrule_getOsnapPoints__SWIG_0(HandleRef jarg1, HandleRef jarg2, int jarg3, IntPtr jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8)
static int OdDbOsnapOverrule_getOsnapPoints__SWIG_1(HandleRef jarg1, HandleRef jarg2, int jarg3, IntPtr jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, global::System.Runtime.InteropServices.HandleRef jarg8, global::System.Runtime.InteropServices.HandleRef jarg9)