Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdMaterialCallback.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.TG {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
17public class OdMaterialCallback : global::System.IDisposable {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 protected bool swigCMemOwn;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public OdMaterialCallback(IntPtr cPtr, bool cMemoryOwn) {
23 swigCMemOwn = cMemoryOwn;
24 swigCPtr = new HandleRef(this, cPtr);
25 }
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(OdMaterialCallback obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
32 Dispose(false);
33 }
34
35 public void Dispose() {
36 Dispose(true);
37 global::System.GC.SuppressFinalize(this);
38 }
39
40 protected virtual void Dispose(bool disposing) {
41 lock(this) {
42 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
43 if (swigCMemOwn) {
44 swigCMemOwn = false;
46 }
47 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
48 }
49 }
50 }
51
52 public virtual bool getMaterialMaper(String arg0, OdIBrFace arg1, OdGeMatrix3d arg2, out byte /*SIMPLETYPE*/ arg3, out byte /*SIMPLETYPE*/ arg4, out byte /*SIMPLETYPE*/ arg5) {
53 bool ret = TG_DbPINVOKE.OdMaterialCallback_getMaterialMaper__SWIG_0(swigCPtr, arg0, OdIBrFace.getCPtr(arg1), OdGeMatrix3d.getCPtr(arg2), out arg3, out arg4, out arg5);
55 return ret;
56 }
57
58 public virtual bool getMaterialMaper(UInt64 /*SIMPLETYPE*/ arg0, OdIBrFace arg1, OdGeMatrix3d arg2, out byte /*SIMPLETYPE*/ arg3, out byte /*SIMPLETYPE*/ arg4, out byte /*SIMPLETYPE*/ arg5) {
59 bool ret = TG_DbPINVOKE.OdMaterialCallback_getMaterialMaper__SWIG_1(swigCPtr, arg0 /*SIMPLETYPE*/, OdIBrFace.getCPtr(arg1), OdGeMatrix3d.getCPtr(arg2), out arg3, out arg4, out arg5);
61 return ret;
62 }
63
64 public virtual bool getMaterialIdByExternalFaceIndex(UInt32 /*SIMPLETYPE*/ uExternalFaceIndex, out UInt64 /*SIMPLETYPE*/ uMaterialId) {
65 bool ret = TG_DbPINVOKE.OdMaterialCallback_getMaterialIdByExternalFaceIndex(swigCPtr, uExternalFaceIndex /*SIMPLETYPE*/, out uMaterialId);
67 return ret;
68 }
69
70}
71
72}
static HandleRef getCPtr(OdGeMatrix3d obj)
Definition: OdGeMatrix3d.cs:26
static HandleRef getCPtr(OdIBrFace obj)
Definition: OdIBrFace.cs:25
OdMaterialCallback(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(OdMaterialCallback obj)
virtual void Dispose(bool disposing)
virtual bool getMaterialMaper(UInt64 arg0, OdIBrFace arg1, OdGeMatrix3d arg2, out byte arg3, out byte arg4, out byte arg5)
virtual bool getMaterialIdByExternalFaceIndex(UInt32 uExternalFaceIndex, out UInt64 uMaterialId)
virtual bool getMaterialMaper(String arg0, OdIBrFace arg1, OdGeMatrix3d arg2, out byte arg3, out byte arg4, out byte arg5)
static global::System.Exception Retrieve()
static bool OdMaterialCallback_getMaterialMaper__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, out byte jarg5, out byte jarg6, out byte jarg7)
static bool OdMaterialCallback_getMaterialIdByExternalFaceIndex(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, out UInt64 jarg3)
static bool OdMaterialCallback_getMaterialMaper__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, UInt64 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, out byte jarg5, out byte jarg6, out byte jarg7)
static void delete_OdMaterialCallback(global::System.Runtime.InteropServices.HandleRef jarg1)