Extended .NET SDK Documentation 2024 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
106 }
107
111 return ret;
112 }
113
117 }
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
259 public virtual void linkTexture(OdGiMaterialMap matMap, OdGiMaterialTextureData pData) {
262 }
263
264 public virtual void linkTexture(OdGiMaterialTexture pTexture, OdGiMaterialTextureData pData) {
267 }
268
269 public virtual void linkTexture(String fileName, OdGiMaterialTextureData pData) {
272 }
273
274 public virtual bool isAvailable(OdGiMaterialTextureData pData) {
277 return ret;
278 }
279
280 public virtual void unlinkTexture(OdGiMaterialTextureData pData) {
283 }
284
285 public virtual void clear() {
288 }
289
290 public virtual UInt32 numTextureEntries() {
291// test csout
292 /*SIMPLETYPE*/
295 return ret;
296 }
297
298 public virtual OdGiMaterialTexture textureEntryKey(UInt32 /*SIMPLETYPE*/ nIndex) {// OdGiMaterialTexturePtr
299 MemoryManager mMan = MemoryManager.GetMemoryManager();
300 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
301 IntPtr ptr = GlobalsPINVOKE.OdGiMaterialTextureManager_textureEntryKey(swigCPtr, nIndex /*SIMPLETYPE*/);
302
303 OdGiMaterialTexture ret = null;
304 if (null != mTrans)
305 {
306 mTrans.AddObject((OdGiMaterialTexture)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTexture),ptr, true));
307 ret = (OdGiMaterialTexture)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTexture),ptr, false);
308 }
309 else
310 {
311 ret = (OdGiMaterialTexture)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTexture),ptr, true);
312 }
313
315 return ret;
316}
317
318 public virtual OdGiMaterialTextureData textureEntryData(UInt32 /*SIMPLETYPE*/ nIndex) {// OdGiMaterialTextureDataPtr
319 MemoryManager mMan = MemoryManager.GetMemoryManager();
320 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
321 IntPtr ptr = GlobalsPINVOKE.OdGiMaterialTextureManager_textureEntryData(swigCPtr, nIndex /*SIMPLETYPE*/);
322
323 OdGiMaterialTextureData ret = null;
324 if (null != mTrans)
325 {
326 mTrans.AddObject((OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true));
327 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, false);
328 }
329 else
330 {
331 ret = (OdGiMaterialTextureData)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTextureData),ptr, true);
332 }
333
335 return ret;
336}
337
338 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
339 string ret = GlobalsPINVOKE.OdGiMaterialTextureManager_getRealClassName(ptr /*SIMPLETYPE*/);
341 return ret;
342 }
343
349
350 public enum ManageType {
354 }
355
356}
357
358}
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 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 void OdGiMaterialTextureManager_unlinkTexture(HandleRef jarg1, HandleRef jarg2)
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)
Definition: OdGiContext.cs:25
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)
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 void unlinkTexture(OdGiMaterialTextureData pData)
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
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26