Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGiMaterialTextureData.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
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGiMaterialTextureData(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiMaterialTextureData_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGiMaterialTextureData obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public class DevDataVariant : global::System.IDisposable {
43 private Object locker = new Object();
44 private HandleRef swigCPtr;
45 protected bool swigCMemOwn;
46 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
47 public DevDataVariant(IntPtr cPtr, bool cMemoryOwn) {
48 swigCMemOwn = cMemoryOwn;
49 swigCPtr = new HandleRef(this, cPtr);
50 }
51 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
52 public static HandleRef getCPtr(DevDataVariant obj) {
53 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
54 }
55
57 Dispose(false);
58 }
59
60 public void Dispose() {
61 Dispose(true);
62 global::System.GC.SuppressFinalize(this);
63 }
64
65 protected virtual void Dispose(bool disposing) {
66 lock(this) {
67 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
68 if (swigCMemOwn) {
69 swigCMemOwn = false;
71 }
72 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
73 }
74 }
75 }
76
77 public DevDataVariant() : this(GlobalsPINVOKE.new_OdGiMaterialTextureData_DevDataVariant__SWIG_0(), true) {
79 }
80
81 public DevDataVariant(IntPtr ptr) : this(GlobalsPINVOKE.new_OdGiMaterialTextureData_DevDataVariant__SWIG_1(ptr /*SIMPLETYPE*/), true) {
83 }
84
85 public DevDataVariant(OdRxObject ptr) : this(GlobalsPINVOKE.new_OdGiMaterialTextureData_DevDataVariant__SWIG_2(OdRxObject.getCPtr(ptr)), true) {
87 }
88
94
95 public IntPtr getPtr() {
96 // test csout
97 /*SIMPLETYPE*/
100 return ret;
101 }
102
103 public OdRxObject getRxObject() {// OdRxObjectPtr
104 MemoryManager mMan = MemoryManager.GetMemoryManager();
105 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
107
108 OdRxObject ret = null;
109 if (null != mTrans)
110 {
111 mTrans.AddObject((OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true));
112 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, false);
113 }
114 else
115 {
116 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true);
117 }
118
120 return ret;
121 }
122
128
134
140
146
151
157
163
164 }
165
166 public static OdGiMaterialTextureData cast(OdRxObject pObj) {// OdSmartPtr<OdGiMaterialTextureData>
167 MemoryManager mMan = MemoryManager.GetMemoryManager();
168 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
170
171 OdGiMaterialTextureData ret = null;
172 if (null != mTrans)
173 {
174 mTrans.AddObject((OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true));
175 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, false);
176 }
177 else
178 {
179 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true);
180 }
181
183 return ret;
184}
185
186 public new static OdRxClass desc() {
187 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiMaterialTextureData_desc(),false); /*createInt 3_2*/
188
190 return ret;
191}
192
193 public override OdRxClass isA() {
194 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiMaterialTextureData_isA(swigCPtr),false); /*createInt 3_2*/
195
197 return ret;
198}
199
200 public override OdRxObject queryX(OdRxClass protocolClass) {
201 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdGiMaterialTextureData_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
202
204 return ret;
205}
206
207 public static OdGiMaterialTextureData createObject() {// OdSmartPtr<OdGiMaterialTextureData>
208 MemoryManager mMan = MemoryManager.GetMemoryManager();
209 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
211
212 OdGiMaterialTextureData ret = null;
213 if (null != mTrans)
214 {
215 mTrans.AddObject((OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true));
216 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, false);
217 }
218 else
219 {
220 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true);
221 }
222
224 return ret;
225}
226
231
236
241
242 public virtual void textureData(OdGiPixelBGRA32Array data, out UInt32 width, out UInt32 height) {
245 }
246
247 public virtual bool haveData() {
250 return ret;
251 }
252
253 public static OdGiMaterialTextureData createDefaultTextureDataImplementation() {// OdSmartPtr<OdGiMaterialTextureData>
254 MemoryManager mMan = MemoryManager.GetMemoryManager();
255 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
257
258 OdGiMaterialTextureData ret = null;
259 if (null != mTrans)
260 {
261 mTrans.AddObject((OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true));
262 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, false);
263 }
264 else
265 {
266 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true);
267 }
268
270 return ret;
271}
272
274 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiMaterialTextureData_defaultTextureDataImplementationDesc(),false); /*createInt 3_2*/
275
277 return ret;
278}
279
280 protected static string getRealClassName(IntPtr ptr) {
281 string ret = GlobalsPINVOKE.OdGiMaterialTextureData_getRealClassName(ptr /*SIMPLETYPE*/);
283 return ret;
284 }
285
286}
287
288}
static global::System.Exception Retrieve()
static void OdGiMaterialTextureData_textureDataUnlinked__SWIG_1(HandleRef jarg1)
static void OdGiMaterialTextureData_textureData(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, out UInt32 jarg3, out UInt32 jarg4)
static IntPtr OdGiMaterialTextureData_createObject()
static void delete_OdGiMaterialTextureData_DevDataVariant(global::System.Runtime.InteropServices.HandleRef jarg1)
static string OdGiMaterialTextureData_getRealClassName(IntPtr jarg1)
static IntPtr OdGiMaterialTextureData_DevDataVariant_getPtr(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGiMaterialTextureData_DevDataVariant_Assign__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static bool OdGiMaterialTextureData_haveData(HandleRef jarg1)
static global::System.IntPtr OdGiMaterialTextureData_DevDataVariant_Assign__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static void OdGiMaterialTextureData_textureDataUnlinked__SWIG_0(HandleRef jarg1, bool jarg2)
static IntPtr OdGiMaterialTextureData_cast(HandleRef jarg1)
static IntPtr OdGiMaterialTextureData_createDefaultTextureDataImplementation()
static IntPtr OdGiMaterialTextureData_defaultTextureDataImplementationDesc()
static int OdGiMaterialTextureData_DevDataVariant_type(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdGiMaterialTextureData_DevDataVariant_getRxObject(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdGiMaterialTextureData_queryX(HandleRef jarg1, HandleRef jarg2)
static global::System.IntPtr OdGiMaterialTextureData_DevDataVariant_setRxObject(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void delete_OdGiMaterialTextureData(HandleRef jarg1)
static IntPtr OdGiMaterialTextureData_isA(HandleRef jarg1)
static global::System.IntPtr OdGiMaterialTextureData_DevDataVariant_setPtr(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static void OdGiMaterialTextureData_DevDataVariant_clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdGiMaterialTextureData_desc()
static void OdGiMaterialTextureData_setTextureData(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static HandleRef getCPtr(OdGiImageBGRA32 obj)
OdGiMaterialTextureData.DevDataVariant setPtr(IntPtr ptr)
Teigha.Core.OdGiMaterialTextureData.DevDataVariant.DevDataVariantType vb_type()
OdGiMaterialTextureData.DevDataVariant Assign(IntPtr ptr)
OdGiMaterialTextureData.DevDataVariant setRxObject(OdRxObject ptr)
OdGiMaterialTextureData.DevDataVariant Assign(OdRxObject ptr)
OdGiMaterialTextureData.DevDataVariant.DevDataVariantType type()
virtual void setTextureData(OdGiMaterialTextureData.DevDataVariant pDeviceInfo, OdGiImageBGRA32 image)
static HandleRef getCPtr(OdGiMaterialTextureData obj)
virtual void textureDataUnlinked(bool bReason)
OdGiMaterialTextureData(IntPtr cPtr, bool cMemoryOwn)
virtual void textureData(OdGiPixelBGRA32Array data, out UInt32 width, out UInt32 height)
override OdRxObject queryX(OdRxClass protocolClass)
override void Dispose(bool disposing)
static OdGiMaterialTextureData createObject()
static OdGiMaterialTextureData cast(OdRxObject pObj)
static OdGiMaterialTextureData createDefaultTextureDataImplementation()
static HandleRef getCPtr(OdGiPixelBGRA32Array obj)
static HandleRef getCPtr(OdRxClass obj)
Definition OdRxClass.cs:25
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition OdRxObject.cs:21
static HandleRef getCPtr(OdRxObject obj)
Definition OdRxObject.cs:26