Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdRxObject.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.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class OdRxObject : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdRxObject(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdRxObject obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~OdRxObject() {
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public virtual OdRxObject queryX(OdRxClass pClass) {
52 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdRxObject_queryX(swigCPtr, OdRxClass.getCPtr(pClass)),false); /*createInt 3_2*/
53
55 return ret;
56}
57
58 public static OdRxObject cast(OdRxObject pointer) {// OdRxObjectPtr
59 MemoryManager mMan = MemoryManager.GetMemoryManager();
60 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
61 IntPtr ptr = GlobalsPINVOKE.OdRxObject_cast(OdRxObject.getCPtr(pointer));
62
63 OdRxObject ret = null;
64 if (null != mTrans)
65 {
66 mTrans.AddObject((OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true));
67 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, false);
68 }
69 else
70 {
71 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true);
72 }
73
75 return ret;
76}
77
78 public static OdRxClass desc() {
79 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdRxObject_desc(),false); /*createInt 3_2*/
80
82 return ret;
83}
84
85 public virtual OdRxClass isA() {
86 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdRxObject_isA(swigCPtr),false); /*createInt 3_2*/
87
89 return ret;
90}
91
92 public bool isKindOf(OdRxClass pClass) {
93 bool ret = GlobalsPINVOKE.OdRxObject_isKindOf(swigCPtr, OdRxClass.getCPtr(pClass));
95 return ret;
96 }
97
98 public virtual OdRxObject clone() {// OdRxObjectPtr
99 MemoryManager mMan = MemoryManager.GetMemoryManager();
100 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
101 IntPtr ptr = GlobalsPINVOKE.OdRxObject_clone(swigCPtr);
102
103 OdRxObject ret = null;
104 if (null != mTrans)
105 {
106 mTrans.AddObject((OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true));
107 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, false);
108 }
109 else
110 {
111 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true);
112 }
113
115 return ret;
116}
117
118 public virtual void copyFrom(OdRxObject pSource) {
121 }
122
123 public virtual Ordering comparedTo(OdRxObject pOther) {
126 return ret;
127 }
128
129 public virtual bool isEqualTo(OdRxObject pOther) {
130 bool ret = GlobalsPINVOKE.OdRxObject_isEqualTo(swigCPtr, OdRxObject.getCPtr(pOther));
132 return ret;
133 }
134
135 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
136 string ret = GlobalsPINVOKE.OdRxObject_getRealClassName(ptr /*SIMPLETYPE*/);
138 return ret;
139 }
140
141}
142
143}
static global::System.Exception Retrieve()
static IntPtr OdRxObject_isA(HandleRef jarg1)
static bool OdRxObject_isKindOf(HandleRef jarg1, HandleRef jarg2)
static int OdRxObject_comparedTo(HandleRef jarg1, HandleRef jarg2)
static bool OdRxObject_isEqualTo(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdRxObject_cast(HandleRef jarg1)
static void delete_OdRxObject(HandleRef jarg1)
static IntPtr OdRxObject_clone(HandleRef jarg1)
static void OdRxObject_copyFrom(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdRxObject_desc()
static IntPtr OdRxObject_queryX(HandleRef jarg1, HandleRef jarg2)
static string OdRxObject_getRealClassName(IntPtr jarg1)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
virtual Ordering comparedTo(OdRxObject pOther)
Definition: OdRxObject.cs:123
virtual OdRxClass isA()
Definition: OdRxObject.cs:85
static string getRealClassName(IntPtr ptr)
Definition: OdRxObject.cs:135
virtual OdRxObject clone()
Definition: OdRxObject.cs:98
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition: OdRxObject.cs:21
virtual void copyFrom(OdRxObject pSource)
Definition: OdRxObject.cs:118
virtual bool isEqualTo(OdRxObject pOther)
Definition: OdRxObject.cs:129
virtual void Dispose(bool disposing)
Definition: OdRxObject.cs:39
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static OdRxObject cast(OdRxObject pointer)
Definition: OdRxObject.cs:58
virtual OdRxObject queryX(OdRxClass pClass)
Definition: OdRxObject.cs:51
bool isKindOf(OdRxClass pClass)
Definition: OdRxObject.cs:92
static OdRxClass desc()
Definition: OdRxObject.cs:78