Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDbDataCell.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.TD {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
17public class OdDbDataCell : OdRxObject {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDbDataCell(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbDataCell_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDbDataCell obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 protected override void Dispose(bool disposing) {
31 lock(this) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 if (swigCMemOwn) {
34 swigCMemOwn = false;
36 }
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 }
39 base.Dispose(disposing);
40 }
41 }
42
43 public static OdDbDataCell cast(OdRxObject pObj) {// OdSmartPtr<OdDbDataCell>
44 MemoryManager mMan = MemoryManager.GetMemoryManager();
45 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
47
48 OdDbDataCell ret = null;
49 if (null != mTrans)
50 {
51 mTrans.AddObject((OdDbDataCell)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbDataCell),ptr, true));
52 ret = (OdDbDataCell)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbDataCell),ptr, false);
53 }
54 else
55 {
56 ret = (OdDbDataCell)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbDataCell),ptr, true);
57 }
58
60 return ret;
61}
62
63 public new static OdRxClass desc() {
64 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdDbDataCell_desc(),false); /*createInt 3_2*/
65
67 return ret;
68}
69
70 public override OdRxClass isA() {
71 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdDbDataCell_isA(swigCPtr),false); /*createInt 3_2*/
72
74 return ret;
75}
76
77 public override OdRxObject queryX(OdRxClass protocolClass) {
78 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),TD_DbPINVOKE.OdDbDataCell_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public static OdDbDataCell createObject() {// OdSmartPtr<OdDbDataCell>
85 MemoryManager mMan = MemoryManager.GetMemoryManager();
86 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
88
89 OdDbDataCell ret = null;
90 if (null != mTrans)
91 {
92 mTrans.AddObject((OdDbDataCell)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbDataCell),ptr, true));
93 ret = (OdDbDataCell)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbDataCell),ptr, false);
94 }
95 else
96 {
97 ret = (OdDbDataCell)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbDataCell),ptr, true);
98 }
99
101 return ret;
102}
103
104 public virtual void init() {
107 }
108
109 public virtual void set(OdDbDataCell cell) {
112 }
113
114 public virtual void set(bool b) {
117 }
118
119 public virtual void set(Int32 /*SIMPLETYPE*/ i) {
120 TD_DbPINVOKE.OdDbDataCell_set__SWIG_2(swigCPtr, i /*SIMPLETYPE*/);
122 }
123
124 public virtual void set(double d) {
127 }
128
129 public virtual void set(String str) {
132 }
133
134 public virtual void set(OdGePoint3d pt) {
137 }
138
139 public virtual void set(OdGeVector3d vec) {
142 }
143
144 public virtual void set(OdDbObjectId id) {
147 }
148
149 public virtual void set(OdDbHardOwnershipId id) {
152 }
153
154 public virtual void set(OdDbSoftOwnershipId id) {
157 }
158
159 public virtual void set(OdDbHardPointerId id) {
162 }
163
164 public virtual void set(OdDbSoftPointerId id) {
167 }
168
169 public virtual void get(OdDbDataCell cell) {
172 }
173
174 public virtual void get(out bool b) {
175 TD_DbPINVOKE.OdDbDataCell_get__SWIG_1(swigCPtr, out b);
177 }
178
179 public virtual void get(out Int32 /*SIMPLETYPE*/ i) {
180 TD_DbPINVOKE.OdDbDataCell_get__SWIG_2(swigCPtr, out i);
182 }
183
184 public virtual void get(out double d) {
185 TD_DbPINVOKE.OdDbDataCell_get__SWIG_3(swigCPtr, out d);
187 }
188
189 public virtual void get(ref string str) {
190IntPtr tmp_str = Marshal.StringToCoTaskMemUni(str);
191 IntPtr saved_str = tmp_str;
192 try {
193 TD_DbPINVOKE.OdDbDataCell_get__SWIG_4(swigCPtr, ref tmp_str);
195 } finally {
196if (tmp_str != saved_str) str = Marshal.PtrToStringUni(tmp_str);
197 }
198 }
199
200 public virtual void get(OdGePoint3d pt) {
203 }
204
205 public virtual void get(OdGeVector3d vec) {
208 }
209
210 public virtual void get(OdDbObjectId id) {
213 }
214
215 public virtual void get(OdDbHardOwnershipId id) {
218 }
219
220 public virtual void get(OdDbSoftOwnershipId id) {
223 }
224
225 public virtual void get(OdDbHardPointerId id) {
228 }
229
230 public virtual void get(OdDbSoftPointerId id) {
233 }
234
235 public virtual OdDbDataCell.CellType type() {
238 return ret;
239 }
240
241 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
242 string ret = TD_DbPINVOKE.OdDbDataCell_getRealClassName(ptr /*SIMPLETYPE*/);
244 return ret;
245 }
246
251 public virtual Teigha.TD.OdDbDataCell.CellType vb_type() { return this.type(); }
252
253 public enum CellType {
254 kUnknown = 0,
255 kInteger = 1,
256 kDouble = 2,
257 kCharPtr = 3,
258 kPoint = 4,
259 kObjectId = 5,
260 kHardOwnerId = 6,
261 kSoftOwnerId = 7,
262 kHardPtrId = 8,
263 kSoftPtrId = 9,
264 kBool = 10,
265 kVector = 11
266 }
267
268}
269
270}
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdGeVector3d obj)
Definition: OdGeVector3d.cs:26
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static new OdRxClass desc()
Definition: OdDbDataCell.cs:63
static OdDbDataCell cast(OdRxObject pObj)
Definition: OdDbDataCell.cs:43
virtual void init()
static OdDbDataCell createObject()
Definition: OdDbDataCell.cs:84
static string getRealClassName(IntPtr ptr)
virtual OdDbDataCell.CellType type()
virtual Teigha.TD.OdDbDataCell.CellType vb_type()
override OdRxObject queryX(OdRxClass protocolClass)
Definition: OdDbDataCell.cs:77
static HandleRef getCPtr(OdDbDataCell obj)
Definition: OdDbDataCell.cs:26
override OdRxClass isA()
Definition: OdDbDataCell.cs:70
OdDbDataCell(IntPtr cPtr, bool cMemoryOwn)
Definition: OdDbDataCell.cs:21
override void Dispose(bool disposing)
Definition: OdDbDataCell.cs:30
static HandleRef getCPtr(OdDbHardOwnershipId obj)
static HandleRef getCPtr(OdDbHardPointerId obj)
static HandleRef getCPtr(OdDbObjectId obj)
Definition: OdDbObjectId.cs:27
static HandleRef getCPtr(OdDbSoftOwnershipId obj)
static HandleRef getCPtr(OdDbSoftPointerId obj)
static global::System.Exception Retrieve()
static void OdDbDataCell_init(HandleRef jarg1)
static IntPtr OdDbDataCell_desc()
static void OdDbDataCell_set__SWIG_10(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_get__SWIG_7(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDbDataCell_createObject()
static string OdDbDataCell_getRealClassName(IntPtr jarg1)
static void OdDbDataCell_get__SWIG_0(HandleRef jarg1, HandleRef jarg2)
static void OdDbDataCell_get__SWIG_9(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_get__SWIG_10(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_set__SWIG_0(HandleRef jarg1, HandleRef jarg2)
static void OdDbDataCell_set__SWIG_11(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_get__SWIG_3(HandleRef jarg1, out double jarg2)
static void OdDbDataCell_get__SWIG_8(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_set__SWIG_9(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDbDataCell_queryX(HandleRef jarg1, HandleRef jarg2)
static void OdDbDataCell_set__SWIG_5(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDbDataCell_type(HandleRef jarg1)
static IntPtr OdDbDataCell_cast(HandleRef jarg1)
static void OdDbDataCell_set__SWIG_8(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_set__SWIG_7(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_get__SWIG_6(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_get__SWIG_11(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdDbDataCell(HandleRef jarg1)
static void OdDbDataCell_get__SWIG_4(HandleRef jarg1, ref IntPtr jarg2)
static void OdDbDataCell_set__SWIG_1(HandleRef jarg1, bool jarg2)
static void OdDbDataCell_get__SWIG_1(HandleRef jarg1, out bool jarg2)
static void OdDbDataCell_get__SWIG_2(HandleRef jarg1, out Int32 jarg2)
static IntPtr OdDbDataCell_isA(HandleRef jarg1)
static void OdDbDataCell_set__SWIG_6(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_get__SWIG_5(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_set__SWIG_2(HandleRef jarg1, Int32 jarg2)
static void OdDbDataCell_set__SWIG_3(HandleRef jarg1, double jarg2)
static void OdDbDataCell_set__SWIG_4(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)