14using System.Runtime.InteropServices;
17 private Object locker =
new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 swigCPtr =
new HandleRef(
this, cPtr);
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
29 protected override void Dispose(
bool disposing) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
36 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
38 base.Dispose(disposing);
43 : this(
GlobalsPINVOKE.new_OdRxClass(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
45 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
48 mTr.AddObject(
new OdRxClass(swigCPtr.Handle,
true));
51 SwigDirectorConnect();
52 DelegateHolder.OnHoldSwigDirectorDelegates(
this);
56 MemoryManager mMan = MemoryManager.GetMemoryManager();
57 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
97 MemoryManager mMan = MemoryManager.GetMemoryManager();
98 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
123 Globals.AppNameChangeFuncPtrDelegateNative appNameChangeFunc_inDelegate =
null;
124 if (appNameChangeFunc !=
null)
126 appNameChangeFunc_inDelegate = (IntPtr classObj,IntPtr newAppName,
int saveVer) =>
129 String newAppName_csharpTemp_old = newAppName_csharpTemp;
134 appNameChangeFunc(OdMarshalHelper.PtrToObject<
OdRxClass>(classObj),ref newAppName_csharpTemp,saveVer);
138 if (newAppName_csharpTemp_old != newAppName_csharpTemp)
145 IntPtr appNameChangeFunc_ptr = (appNameChangeFunc ==
null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(appNameChangeFunc_inDelegate);
146 Teigha.
Core.DelegateHolder.Add(appNameChangeFunc_inDelegate);
162 MemoryManager mMan = MemoryManager.GetMemoryManager();
163 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
182 MemoryManager mMan = MemoryManager.GetMemoryManager();
183 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
202 MemoryManager mMan = MemoryManager.GetMemoryManager();
203 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
222 MemoryManager mMan = MemoryManager.GetMemoryManager();
223 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
252 Globals.AppNameChangeFuncPtrDelegate outDelegate =
null;
253 if (nativeCallback != IntPtr.Zero)
255 outDelegate = (
OdRxClass classObj,ref
String newAppName,
int saveVer) =>
259 cPtr_NativeDelegate(OdMarshalHelper.ObjectToPtr<
OdRxClass>(classObj),newAppName_nativeTemp,saveVer);
356 if (ReferenceEquals(a, b))
373 private void SwigDirectorConnect() {
374 if (SwigDerivedClassHasMethod(
"queryX", swigMethodTypes0))
376 if (SwigDerivedClassHasMethod(
"isA", swigMethodTypes1))
378 if (SwigDerivedClassHasMethod(
"copyFrom", swigMethodTypes2))
380 if (SwigDerivedClassHasMethod(
"create", swigMethodTypes3))
382 if (SwigDerivedClassHasMethod(
"isDerivedFrom", swigMethodTypes4))
387 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
388 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);
389 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(
OdRxClass));
390 return hasDerivedMethod;
393 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
402 private IntPtr SwigDirectorMethodisA() {
409 private void SwigDirectorMethodcopyFrom(IntPtr pSource) {
415 private IntPtr SwigDirectorMethodcreate() {
419 private bool SwigDirectorMethodisDerivedFrom(IntPtr pClass) {
437 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { typeof(
OdRxClass) };
438 private static global::System.Type[] swigMethodTypes1 =
new global::System.Type[] { };
439 private static global::System.Type[] swigMethodTypes2 =
new global::System.Type[] { typeof(
OdRxObject) };
440 private static global::System.Type[] swigMethodTypes3 =
new global::System.Type[] { };
441 private static global::System.Type[] swigMethodTypes4 =
new global::System.Type[] { typeof(
OdRxClass) };
delegate void AppNameChangeFuncPtrDelegate(OdRxClass classObj, ref String newAppName, int saveVer)
delegate void AppNameChangeFuncPtrDelegateNative(IntPtr classObj, IntPtr newAppName, int saveVer)
static global::System.Exception Retrieve()
static IntPtr OdRxClass_addX(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3)
static IntPtr OdRxClass_createObject()
static IntPtr OdRxClass_desc()
static int OdRxClass_getClassVersion__SWIG_0(HandleRef jarg1, out MaintReleaseVer jarg2)
static void OdRxClass_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, OdRxClass.SwigDelegateOdRxClass_0 delegate0, OdRxClass.SwigDelegateOdRxClass_1 delegate1, OdRxClass.SwigDelegateOdRxClass_2 delegate2, OdRxClass.SwigDelegateOdRxClass_3 delegate3, OdRxClass.SwigDelegateOdRxClass_4 delegate4)
static String OdRxClass_dxfName(HandleRef jarg1)
static IntPtr OdRxClass_queryX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdRxClass_queryXSwigExplicitOdRxClass(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdRxClass_appNameCallbackPtr(HandleRef jarg1)
static IntPtr OdRxClass_create(HandleRef jarg1)
static global::System.IntPtr OdRxClass_members(HandleRef jarg1)
static String OdRxClass_name(HandleRef jarg1)
static IntPtr OdRxClass_createSwigExplicitOdRxClass(HandleRef jarg1)
static IntPtr OdRxClass_delX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdRxClass_module(HandleRef jarg1)
static IntPtr OdRxClass_myParent(HandleRef jarg1)
static int OdRxClass_getClassVersion__SWIG_1(HandleRef jarg1)
static String OdRxClass_appName(HandleRef jarg1)
static IntPtr OdRxClass_isA(HandleRef jarg1)
static IntPtr OdRxClass_getX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdRxClass_cast(HandleRef jarg1)
static IntPtr OdRxClass_isASwigExplicitOdRxClass(HandleRef jarg1)
static global::System.IntPtr OdRxClass_attributes__SWIG_0(HandleRef jarg1)
static bool OdRxClass_isDerivedFromSwigExplicitOdRxClass(HandleRef jarg1, HandleRef jarg2)
static string OdRxClass_getRealClassName(IntPtr jarg1)
static void OdRxClass_rxInit__SWIG_1(IntPtr jarg1)
static void delete_OdRxClass(HandleRef jarg1)
static void OdRxClass_rxUninit()
static void OdRxClass_rxInit__SWIG_0()
static bool OdRxClass_isDerivedFrom(HandleRef jarg1, HandleRef jarg2)
static UInt32 OdRxClass_proxyFlags(HandleRef jarg1)
static UInt32 OdRxClass_customFlags(HandleRef jarg1)
OdRxObject addX(OdRxClass pProtocolClass, OdRxObject pProtocolObject)
virtual bool isDerivedFrom(OdRxClass pClass)
delegate IntPtr SwigDelegateOdRxClass_1()
OdRxMemberCollection members()
static HandleRef getCPtr(OdRxClass obj)
virtual OdRxObject create()
DwgVersion getClassVersion(out MaintReleaseVer pMaintReleaseVer)
static bool operator!=(OdRxClass a, OdRxClass b)
delegate void SwigDelegateOdRxClass_2(IntPtr pSource)
static new OdRxClass cast(OdRxObject pObj)
delegate IntPtr SwigDelegateOdRxClass_0(IntPtr protocolClass)
delegate bool SwigDelegateOdRxClass_4(IntPtr pClass)
static new void rxUninit()
static bool operator==(OdRxClass a, OdRxClass b)
override OdRxObject queryX(OdRxClass protocolClass)
static void rxInit(Globals.AppNameChangeFuncPtrDelegate appNameChangeFunc)
Globals.AppNameChangeFuncPtrDelegate appNameCallbackPtr()
static new OdRxClass desc()
DwgVersion getClassVersion()
OdRxAttributeCollection attributes()
override bool Equals(object obj)
static OdRxClass createObject()
override void Dispose(bool disposing)
delegate IntPtr SwigDelegateOdRxClass_3()
OdRxObject delX(OdRxClass pProtocolClass)
static string getRealClassName(IntPtr ptr)
OdRxClass(IntPtr cPtr, bool cMemoryOwn)
OdRxObject getX(OdRxClass pProtocolClass)
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
virtual void copyFrom(OdRxObject pSource)
virtual bool isEqualTo(OdRxObject pOther)
static HandleRef getCPtr(OdRxObject obj)
static IntPtr StringToOdString(string str)
static string OdStringToString(IntPtr str)
static void AssignStringToOdString(IntPtr pOdString, string str)