Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
IHLData.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 PCAD_DOT_NET {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16using Teigha.TD;
17
18public class IHLData : global::System.IDisposable {
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 protected bool swigCMemOwn;
22 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
23 public IHLData(IntPtr cPtr, bool cMemoryOwn) {
24 swigCMemOwn = cMemoryOwn;
25 swigCPtr = new HandleRef(this, cPtr);
26 }
27 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
28 public static HandleRef getCPtr(IHLData obj) {
29 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30 }
31
32 ~IHLData() {
33 Dispose(false);
34 }
35
36 public void Dispose() {
37 Dispose(true);
38 global::System.GC.SuppressFinalize(this);
39 }
40
41 protected virtual void Dispose(bool disposing) {
42 lock(this) {
43 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
44 if (swigCMemOwn) {
45 swigCMemOwn = false;
47 }
48 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
49 }
50 }
51 }
52
53 public virtual OdDbObject GetEntity() {// OdDbObjectPtr
54 MemoryManager mMan = MemoryManager.GetMemoryManager();
55 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
56 IntPtr ptr = PCADGlobalsPINVOKE.IHLData_GetEntity(swigCPtr);
57
58 OdDbObject ret = null;
59 if (null != mTrans)
60 {
61 mTrans.AddObject((OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbObject),ptr, true));
62 ret = (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbObject),ptr, false);
63 }
64 else
65 {
66 ret = (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbObject),ptr, true);
67 }
68
70 return ret;
71}
72
73 public virtual int GetFlags() {
74 int ret = PCADGlobalsPINVOKE.IHLData_GetFlags(swigCPtr);
76 return ret;
77 }
78
79 public class IHLOriginal : global::System.IDisposable {
80 private Object locker = new Object();
81 private HandleRef swigCPtr;
82 protected bool swigCMemOwn;
83 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
84 public IHLOriginal(IntPtr cPtr, bool cMemoryOwn) {
85 swigCMemOwn = cMemoryOwn;
86 swigCPtr = new HandleRef(this, cPtr);
87 }
88 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
89 public static HandleRef getCPtr(IHLOriginal obj) {
90 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
91 }
92
93 ~IHLOriginal() {
94 Dispose(false);
95 }
96
97 public void Dispose() {
98 Dispose(true);
99 global::System.GC.SuppressFinalize(this);
100 }
101
102 protected virtual void Dispose(bool disposing) {
103 lock(this) {
104 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
105 if (swigCMemOwn) {
106 swigCMemOwn = false;
107 PCADGlobalsPINVOKE.delete_IHLData_IHLOriginal(swigCPtr); // NESTED_DTOR_CSHARP
108 }
109 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
110 }
111 }
112 }
113
114 public virtual OdDbObject GetEntity() {// OdDbObjectPtr
115 MemoryManager mMan = MemoryManager.GetMemoryManager();
116 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
118
119 OdDbObject ret = null;
120 if (null != mTrans)
121 {
122 mTrans.AddObject((OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbObject),ptr, true));
123 ret = (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbObject),ptr, false);
124 }
125 else
126 {
127 ret = (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbObject),ptr, true);
128 }
129
131 return ret;
132 }
133
134 public virtual OdDbSubentId GetSubEntity() {
137 return ret;
138 }
139
140 }
141
145 return ret;
146 }
147
148}
149
150}
virtual void Dispose(bool disposing)
Definition: IHLData.cs:102
IHLOriginal(IntPtr cPtr, bool cMemoryOwn)
Definition: IHLData.cs:84
static HandleRef getCPtr(IHLOriginal obj)
Definition: IHLData.cs:89
virtual OdDbSubentId GetSubEntity()
Definition: IHLData.cs:134
virtual OdDbObject GetEntity()
Definition: IHLData.cs:114
static HandleRef getCPtr(IHLData obj)
Definition: IHLData.cs:28
IHLData(IntPtr cPtr, bool cMemoryOwn)
Definition: IHLData.cs:23
virtual void Dispose(bool disposing)
Definition: IHLData.cs:41
virtual SWIGTYPE_p_OdArrayT_OdSharedPtrT_FxHLR__IHLData__IHLOriginal_t_t GetOriginalEntities()
Definition: IHLData.cs:142
virtual int GetFlags()
Definition: IHLData.cs:73
virtual OdDbObject GetEntity()
Definition: IHLData.cs:53
static global::System.IntPtr IHLData_GetOriginalEntities(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr IHLData_IHLOriginal_GetEntity(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr IHLData_GetEntity(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_IHLData_IHLOriginal(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr IHLData_IHLOriginal_GetSubEntity(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_IHLData(global::System.Runtime.InteropServices.HandleRef jarg1)
static int IHLData_GetFlags(global::System.Runtime.InteropServices.HandleRef jarg1)