Extended .NET SDK Documentation 2024 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 /*SIMPLETYPE*/ 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
92 return ret;
93 }
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
123 public OdGiMaterialTextureData.DevDataVariant Assign(IntPtr /*SIMPLETYPE*/ ptr) {
126 return ret;
127 }
128
132 return ret;
133 }
134
135 public OdGiMaterialTextureData.DevDataVariant setPtr(IntPtr /*SIMPLETYPE*/ ptr) {
138 return ret;
139 }
140
144 return ret;
145 }
146
147 public void clear() {
150 }
151
157
158 public enum DevDataVariantType {
162 }
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
230 }
231
232 public virtual void textureData(OdGiPixelBGRA32Array data, out UInt32 /*SIMPLETYPE*/ width, out UInt32 /*SIMPLETYPE*/ height) {
235 }
236
237 public virtual bool haveData() {
240 return ret;
241 }
242
243 public static OdGiMaterialTextureData createDefaultTextureDataImplementation() {// OdSmartPtr<OdGiMaterialTextureData>
244 MemoryManager mMan = MemoryManager.GetMemoryManager();
245 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
247
248 OdGiMaterialTextureData ret = null;
249 if (null != mTrans)
250 {
251 mTrans.AddObject((OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true));
252 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, false);
253 }
254 else
255 {
256 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true);
257 }
258
260 return ret;
261}
262
264 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiMaterialTextureData_defaultTextureDataImplementationDesc(),false); /*createInt 3_2*/
265
267 return ret;
268}
269
270 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
271 string ret = GlobalsPINVOKE.OdGiMaterialTextureData_getRealClassName(ptr /*SIMPLETYPE*/);
273 return ret;
274 }
275
276}
277
278}
static global::System.Exception Retrieve()
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 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)
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
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26