14using System.Runtime.InteropServices;
18 private Object locker =
new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 swigCPtr =
new HandleRef(
this, cPtr);
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
30 protected override void Dispose(
bool disposing) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
37 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
39 base.Dispose(disposing);
44 : this(
TD_DbPINVOKE.new_OdDbOsnapOverrule(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
46 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
52 SwigDirectorConnect();
56 MemoryManager mMan = MemoryManager.GetMemoryManager();
57 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
97 MemoryManager mMan = MemoryManager.GetMemoryManager();
98 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
117 OdResult ret = (
OdResult)(SwigDerivedClassHasMethod(
"getOsnapPoints", swigMethodTypes3) ?
TD_DbPINVOKE.
OdDbOsnapOverrule_getOsnapPointsSwigExplicitOdDbOsnapOverrule__SWIG_0(swigCPtr,
OdDbEntity.
getCPtr(pSubject), (
int)osnapMode, gsSelectionMark ,
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 ,
OdGePoint3d.
getCPtr(pickPoint),
OdGePoint3d.
getCPtr(lastPoint),
OdGeMatrix3d.
getCPtr(xWorldToEye),
OdGePoint3dArray.
getCPtr(snapPoints)));
123 OdResult ret = (
OdResult)(SwigDerivedClassHasMethod(
"getOsnapPoints", swigMethodTypes4) ?
TD_DbPINVOKE.
OdDbOsnapOverrule_getOsnapPointsSwigExplicitOdDbOsnapOverrule__SWIG_1(swigCPtr,
OdDbEntity.
getCPtr(pSubject), (
int)osnapMode, gsSelectionMark ,
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 ,
OdGePoint3d.
getCPtr(pickPoint),
OdGePoint3d.
getCPtr(lastPoint),
OdGeMatrix3d.
getCPtr(xWorldToEye),
OdGePoint3dArray.
getCPtr(snapPoints),
OdGeMatrix3d.
getCPtr(insertionMat)));
140 private void SwigDirectorConnect() {
141 if (SwigDerivedClassHasMethod(
"queryX", swigMethodTypes0))
143 if (SwigDerivedClassHasMethod(
"isA", swigMethodTypes1))
145 if (SwigDerivedClassHasMethod(
"isApplicable", swigMethodTypes2))
147 if (SwigDerivedClassHasMethod(
"getOsnapPoints", swigMethodTypes3))
149 if (SwigDerivedClassHasMethod(
"getOsnapPoints", swigMethodTypes4))
151 if (SwigDerivedClassHasMethod(
"isContentSnappable", swigMethodTypes5))
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;
162 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
171 private IntPtr SwigDirectorMethodisA() {
178 private bool SwigDirectorMethodisApplicable(IntPtr pOverruledSubject) {
184 private int SwigDirectorMethodgetOsnapPoints__SWIG_0(IntPtr pSubject,
int osnapMode, IntPtr gsSelectionMark, global::System.IntPtr pickPoint, global::System.IntPtr lastPoint, global::System.IntPtr xWorldToEye, global::System.IntPtr snapPoints) {
186 (OdDbEntity)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),pSubject,
false)
187, (
OsnapMode)osnapMode, gsSelectionMark ,
new OdGePoint3d(pickPoint,
false),
new OdGePoint3d(lastPoint,
false),
new OdGeMatrix3d(xWorldToEye,
false),
new OdGePoint3dArray(snapPoints,
false));
190 private int SwigDirectorMethodgetOsnapPoints__SWIG_1(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) {
192 (OdDbEntity)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),pSubject,
false)
193, (
OsnapMode)osnapMode, gsSelectionMark ,
new OdGePoint3d(pickPoint,
false),
new OdGePoint3d(lastPoint,
false),
new OdGeMatrix3d(xWorldToEye,
false),
new OdGePoint3dArray(snapPoints,
false),
new OdGeMatrix3d(insertionMat,
false));
196 private bool SwigDirectorMethodisContentSnappable(IntPtr pSubject) {
198 (OdDbEntity)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),pSubject,
false)
205 public 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);
206 public 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);
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) };
221 private static global::System.Type[] swigMethodTypes5 =
new global::System.Type[] { typeof(OdDbEntity) };
static HandleRef getCPtr(OdGeMatrix3d obj)
static HandleRef getCPtr(OdGePoint3dArray obj)
static HandleRef getCPtr(OdGePoint3d obj)
static HandleRef getCPtr(OdRxClass obj)
static HandleRef getCPtr(OdRxObject obj)
virtual bool isApplicable(OdRxObject pOverruledSubject)
static HandleRef getCPtr(OdDbEntity obj)
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)
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)