Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGiMaterialTextureManager.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 OdGiMaterialTextureManager(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiMaterialTextureManager_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGiMaterialTextureManager 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 static OdGiMaterialTextureManager cast(OdRxObject pObj) {// OdSmartPtr<OdGiMaterialTextureManager>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdGiMaterialTextureManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureManager),ptr, true));
51 ret = (OdGiMaterialTextureManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureManager),ptr, false);
52 }
53 else
54 {
55 ret = (OdGiMaterialTextureManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureManager),ptr, true);
56 }
57
59 return ret;
60}
61
62 public new static OdRxClass desc() {
63 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiMaterialTextureManager_desc(),false); /*createInt 3_2*/
64
66 return ret;
67}
68
69 public override OdRxClass isA() {
70 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiMaterialTextureManager_isA(swigCPtr),false); /*createInt 3_2*/
71
73 return ret;
74}
75
76 public override OdRxObject queryX(OdRxClass protocolClass) {
77 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdGiMaterialTextureManager_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdGiMaterialTextureManager createObject() {// OdSmartPtr<OdGiMaterialTextureManager>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdGiMaterialTextureManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureManager),ptr, true));
92 ret = (OdGiMaterialTextureManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureManager),ptr, false);
93 }
94 else
95 {
96 ret = (OdGiMaterialTextureManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureManager),ptr, true);
97 }
98
100 return ret;
101}
102
107
113
118
119 public virtual OdGiMaterialTextureLoaderExt materialLoaderExt() {// OdGiMaterialTextureLoaderExtPtr
120 MemoryManager mMan = MemoryManager.GetMemoryManager();
121 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
123
125 if (null != mTrans)
126 {
127 mTrans.AddObject((OdGiMaterialTextureLoaderExt)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureLoaderExt),ptr, true));
128 ret = (OdGiMaterialTextureLoaderExt)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureLoaderExt),ptr, false);
129 }
130 else
131 {
132 ret = (OdGiMaterialTextureLoaderExt)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureLoaderExt),ptr, true);
133 }
134
136 return ret;
137}
138
139 public virtual OdGiMaterialTextureData searchTexture(OdGiMaterialMap matMap) {// OdGiMaterialTextureDataPtr
140 MemoryManager mMan = MemoryManager.GetMemoryManager();
141 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
143
144 OdGiMaterialTextureData ret = null;
145 if (null != mTrans)
146 {
147 mTrans.AddObject((OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true));
148 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, false);
149 }
150 else
151 {
152 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true);
153 }
154
156 return ret;
157}
158
159 public virtual OdGiMaterialTextureData searchTexture(OdGiMaterialTexture pTexture) {// OdGiMaterialTextureDataPtr
160 MemoryManager mMan = MemoryManager.GetMemoryManager();
161 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
163
164 OdGiMaterialTextureData ret = null;
165 if (null != mTrans)
166 {
167 mTrans.AddObject((OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true));
168 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, false);
169 }
170 else
171 {
172 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true);
173 }
174
176 return ret;
177}
178
179 public virtual OdGiMaterialTextureData searchTexture(String fileName) {// OdGiMaterialTextureDataPtr
180 MemoryManager mMan = MemoryManager.GetMemoryManager();
181 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
183
184 OdGiMaterialTextureData ret = null;
185 if (null != mTrans)
186 {
187 mTrans.AddObject((OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true));
188 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, false);
189 }
190 else
191 {
192 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true);
193 }
194
196 return ret;
197}
198
199 public virtual OdGiMaterialTextureData tryToLoad(OdGiMaterialTextureData.DevDataVariant pDeviceInfo, OdRxClass pTexDataImpl, OdGiContext giCtx, OdGiMaterialTextureEntry pEntry, OdGiMaterialMap matMap) {// OdGiMaterialTextureDataPtr
200 MemoryManager mMan = MemoryManager.GetMemoryManager();
201 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
203
204 OdGiMaterialTextureData ret = null;
205 if (null != mTrans)
206 {
207 mTrans.AddObject((OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true));
208 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, false);
209 }
210 else
211 {
212 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true);
213 }
214
216 return ret;
217}
218
219 public virtual OdGiMaterialTextureData tryToLoad(OdGiMaterialTextureData.DevDataVariant pDeviceInfo, OdRxClass pTexDataImpl, OdGiContext giCtx, OdGiMaterialTextureEntry pEntry, OdGiMaterialTexture pTexture) {// OdGiMaterialTextureDataPtr
220 MemoryManager mMan = MemoryManager.GetMemoryManager();
221 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
223
224 OdGiMaterialTextureData ret = null;
225 if (null != mTrans)
226 {
227 mTrans.AddObject((OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true));
228 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, false);
229 }
230 else
231 {
232 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true);
233 }
234
236 return ret;
237}
238
239 public virtual OdGiMaterialTextureData tryToLoad(OdGiMaterialTextureData.DevDataVariant pDeviceInfo, OdRxClass pTexDataImpl, OdGiContext giCtx, OdGiMaterialTextureEntry pEntry, String fileName) {// OdGiMaterialTextureDataPtr
240 MemoryManager mMan = MemoryManager.GetMemoryManager();
241 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
243
244 OdGiMaterialTextureData ret = null;
245 if (null != mTrans)
246 {
247 mTrans.AddObject((OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true));
248 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, false);
249 }
250 else
251 {
252 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true);
253 }
254
256 return ret;
257}
258
263
268
273
279
285
290
291 public virtual UInt32 numTextureEntries() {
292// test csout
293 /*SIMPLETYPE*/
296 return ret;
297 }
298
299 public virtual OdGiMaterialTexture textureEntryKey(UInt32 nIndex) {// OdGiMaterialTexturePtr
300 MemoryManager mMan = MemoryManager.GetMemoryManager();
301 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
302 IntPtr ptr = GlobalsPINVOKE.OdGiMaterialTextureManager_textureEntryKey(swigCPtr, nIndex /*SIMPLETYPE*/);
303
304 OdGiMaterialTexture ret = null;
305 if (null != mTrans)
306 {
307 mTrans.AddObject((OdGiMaterialTexture)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTexture),ptr, true));
308 ret = (OdGiMaterialTexture)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTexture),ptr, false);
309 }
310 else
311 {
312 ret = (OdGiMaterialTexture)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTexture),ptr, true);
313 }
314
316 return ret;
317}
318
319 public virtual OdGiMaterialTextureData textureEntryData(UInt32 nIndex) {// OdGiMaterialTextureDataPtr
320 MemoryManager mMan = MemoryManager.GetMemoryManager();
321 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
322 IntPtr ptr = GlobalsPINVOKE.OdGiMaterialTextureManager_textureEntryData(swigCPtr, nIndex /*SIMPLETYPE*/);
323
324 OdGiMaterialTextureData ret = null;
325 if (null != mTrans)
326 {
327 mTrans.AddObject((OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true));
328 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, false);
329 }
330 else
331 {
332 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true);
333 }
334
336 return ret;
337}
338
339 protected static string getRealClassName(IntPtr ptr) {
340 string ret = GlobalsPINVOKE.OdGiMaterialTextureManager_getRealClassName(ptr /*SIMPLETYPE*/);
342 return ret;
343 }
344
350
356
357}
358
359}
static global::System.Exception Retrieve()
static IntPtr OdGiMaterialTextureManager_materialLoaderExt(HandleRef jarg1)
static void delete_OdGiMaterialTextureManager(HandleRef jarg1)
static IntPtr OdGiMaterialTextureManager_cast(HandleRef jarg1)
static IntPtr OdGiMaterialTextureManager_searchTexture__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGiMaterialTextureManager_isAvailable(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGiMaterialTextureManager_isA(HandleRef jarg1)
static void OdGiMaterialTextureManager_clear(HandleRef jarg1)
static IntPtr OdGiMaterialTextureManager_textureEntryKey(HandleRef jarg1, UInt32 jarg2)
static void OdGiMaterialTextureManager_linkTexture__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3)
static IntPtr OdGiMaterialTextureManager_searchTexture__SWIG_1(HandleRef jarg1, HandleRef jarg2)
static int OdGiMaterialTextureManager_manageType(HandleRef jarg1)
static UInt32 OdGiMaterialTextureManager_numTextureEntries(HandleRef jarg1)
static void OdGiMaterialTextureManager_setManageType(HandleRef jarg1, int jarg2)
static IntPtr OdGiMaterialTextureManager_tryToLoad__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6)
static bool OdGiMaterialTextureManager_unlinkTexture(HandleRef jarg1, HandleRef jarg2)
static void OdGiMaterialTextureManager_setMaterialLoaderExt(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGiMaterialTextureManager_queryX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdGiMaterialTextureManager_desc()
static string OdGiMaterialTextureManager_getRealClassName(IntPtr jarg1)
static IntPtr OdGiMaterialTextureManager_searchTexture__SWIG_2(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static IntPtr OdGiMaterialTextureManager_tryToLoad__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, HandleRef jarg6)
static IntPtr OdGiMaterialTextureManager_tryToLoad__SWIG_2(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, [MarshalAs(UnmanagedType.LPWStr)]String jarg6)
static void OdGiMaterialTextureManager_linkTexture__SWIG_1(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3)
static void OdGiMaterialTextureManager_linkTexture__SWIG_2(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, HandleRef jarg3)
static IntPtr OdGiMaterialTextureManager_textureEntryData(HandleRef jarg1, UInt32 jarg2)
static IntPtr OdGiMaterialTextureManager_createObject()
static HandleRef getCPtr(OdGiContext obj)
static HandleRef getCPtr(OdGiMaterialMap obj)
static HandleRef getCPtr(OdGiMaterialTextureData obj)
static HandleRef getCPtr(OdGiMaterialTextureEntry obj)
static HandleRef getCPtr(OdGiMaterialTexture obj)
static HandleRef getCPtr(OdGiMaterialTextureLoaderExt obj)
virtual void linkTexture(OdGiMaterialTexture pTexture, OdGiMaterialTextureData pData)
virtual bool unlinkTexture(OdGiMaterialTextureData pData)
static OdGiMaterialTextureManager cast(OdRxObject pObj)
virtual void linkTexture(String fileName, OdGiMaterialTextureData pData)
virtual OdGiMaterialTextureData searchTexture(OdGiMaterialTexture pTexture)
virtual OdGiMaterialTextureData tryToLoad(OdGiMaterialTextureData.DevDataVariant pDeviceInfo, OdRxClass pTexDataImpl, OdGiContext giCtx, OdGiMaterialTextureEntry pEntry, OdGiMaterialMap matMap)
virtual OdGiMaterialTextureData tryToLoad(OdGiMaterialTextureData.DevDataVariant pDeviceInfo, OdRxClass pTexDataImpl, OdGiContext giCtx, OdGiMaterialTextureEntry pEntry, OdGiMaterialTexture pTexture)
virtual Teigha.Core.OdGiMaterialTextureManager.ManageType vb_manageType()
virtual void setMaterialLoaderExt(OdGiMaterialTextureLoaderExt pExt)
OdGiMaterialTextureManager(IntPtr cPtr, bool cMemoryOwn)
static OdGiMaterialTextureManager createObject()
virtual void setManageType(OdGiMaterialTextureManager.ManageType type)
virtual OdGiMaterialTextureLoaderExt materialLoaderExt()
virtual OdGiMaterialTextureData tryToLoad(OdGiMaterialTextureData.DevDataVariant pDeviceInfo, OdRxClass pTexDataImpl, OdGiContext giCtx, OdGiMaterialTextureEntry pEntry, String fileName)
virtual OdGiMaterialTextureManager.ManageType manageType()
virtual void linkTexture(OdGiMaterialMap matMap, OdGiMaterialTextureData pData)
static HandleRef getCPtr(OdGiMaterialTextureManager obj)
virtual OdGiMaterialTexture textureEntryKey(UInt32 nIndex)
virtual OdGiMaterialTextureData textureEntryData(UInt32 nIndex)
virtual bool isAvailable(OdGiMaterialTextureData pData)
virtual OdGiMaterialTextureData searchTexture(OdGiMaterialMap matMap)
override OdRxObject queryX(OdRxClass protocolClass)
virtual OdGiMaterialTextureData searchTexture(String fileName)
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