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();
53 DelegateHolder.OnHoldSwigDirectorDelegates(
this);
57 MemoryManager mMan = MemoryManager.GetMemoryManager();
58 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
98 MemoryManager mMan = MemoryManager.GetMemoryManager();
99 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
118 OdResult ret = (
OdResult)(SwigDerivedClassHasMethod(
"getOsnapPoints", swigMethodTypes4) ?
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)));
124 OdResult ret = (
OdResult)(SwigDerivedClassHasMethod(
"getOsnapPoints", swigMethodTypes5) ?
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)));
141 private void SwigDirectorConnect() {
142 if (SwigDerivedClassHasMethod(
"queryX", swigMethodTypes0))
144 if (SwigDerivedClassHasMethod(
"isA", swigMethodTypes1))
146 if (SwigDerivedClassHasMethod(
"copyFrom", swigMethodTypes2))
148 if (SwigDerivedClassHasMethod(
"isApplicable", swigMethodTypes3))
150 if (SwigDerivedClassHasMethod(
"getOsnapPoints", swigMethodTypes4))
152 if (SwigDerivedClassHasMethod(
"getOsnapPoints", swigMethodTypes5))
154 if (SwigDerivedClassHasMethod(
"isContentSnappable", swigMethodTypes6))
159 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
160 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);
161 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(
OdDbOsnapOverrule));
162 return hasDerivedMethod;
165 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
174 private IntPtr SwigDirectorMethodisA() {
181 private void SwigDirectorMethodcopyFrom(IntPtr pSource) {
187 private bool SwigDirectorMethodisApplicable(IntPtr pOverruledSubject) {
193 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) {
195 (OdDbEntity)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),pSubject,
false)
196, (
OsnapMode)osnapMode, gsSelectionMark ,
new OdGePoint3d(pickPoint,
false),
new OdGePoint3d(lastPoint,
false),
new OdGeMatrix3d(xWorldToEye,
false),
new OdGePoint3dArray(snapPoints,
false));
199 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) {
201 (OdDbEntity)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),pSubject,
false)
202, (
OsnapMode)osnapMode, gsSelectionMark ,
new OdGePoint3d(pickPoint,
false),
new OdGePoint3d(lastPoint,
false),
new OdGeMatrix3d(xWorldToEye,
false),
new OdGePoint3dArray(snapPoints,
false),
new OdGeMatrix3d(insertionMat,
false));
205 private bool SwigDirectorMethodisContentSnappable(IntPtr pSubject) {
207 (OdDbEntity)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),pSubject,
false)
215 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);
216 public delegate
int SwigDelegateOdDbOsnapOverrule_5(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);
227 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { typeof(
OdRxClass) };
228 private static global::System.Type[] swigMethodTypes1 =
new global::System.Type[] { };
229 private static global::System.Type[] swigMethodTypes2 =
new global::System.Type[] { typeof(
OdRxObject) };
230 private static global::System.Type[] swigMethodTypes3 =
new global::System.Type[] { typeof(
OdRxObject) };
233 private static global::System.Type[] swigMethodTypes6 =
new global::System.Type[] { typeof(OdDbEntity) };
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, OdDbOsnapOverrule.SwigDelegateOdDbOsnapOverrule_6 delegate6)
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 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)