Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdMaterialResolver.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
16public class OdMaterialResolver : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdMaterialResolver(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdMaterialResolver obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public OdMaterialResolver() : this(GlobalsPINVOKE.new_OdMaterialResolver__SWIG_0(), true) {
53 }
54
55 public OdMaterialResolver(OdMaterialResolver resolver) : this(GlobalsPINVOKE.new_OdMaterialResolver__SWIG_1(OdMaterialResolver.getCPtr(resolver)), true) {
57 }
58
59 public OdMaterialResolver(OdRxObject pDb, OdIdIdMap map) : this(GlobalsPINVOKE.new_OdMaterialResolver__SWIG_2(OdRxObject.getCPtr(pDb), OdIdIdMap.getCPtr(map)), true) {
61 }
62
63 public OdRxObject database() {
64 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdMaterialResolver_database(swigCPtr),false); /*createInt 3_2*/
65
67 return ret;
68}
69
70 public void setDatabase(OdRxObject pDb) {
73 }
74
75 public OdIdIdMap map() {
78 return ret;
79 }
80
81 public void clear() {
84 }
85
86 public bool isEmpty() {
87 bool ret = GlobalsPINVOKE.OdMaterialResolver_isEmpty(swigCPtr);
89 return ret;
90 }
91
92 public bool getPair(UInt64 /*SIMPLETYPE*/ id, out UInt64 /*SIMPLETYPE*/ pair) {
93 bool ret = GlobalsPINVOKE.OdMaterialResolver_getPair(swigCPtr, id /*SIMPLETYPE*/, out pair);
95 return ret;
96 }
97
98}
99
100}
static global::System.Exception Retrieve()
static void delete_OdMaterialResolver(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdMaterialResolver_database(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdMaterialResolver_getPair(global::System.Runtime.InteropServices.HandleRef jarg1, UInt64 jarg2, out UInt64 jarg3)
static void OdMaterialResolver_setDatabase(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void OdMaterialResolver_clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdMaterialResolver_map__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdMaterialResolver_isEmpty(global::System.Runtime.InteropServices.HandleRef jarg1)
bool getPair(UInt64 id, out UInt64 pair)
OdMaterialResolver(OdMaterialResolver resolver)
OdMaterialResolver(OdRxObject pDb, OdIdIdMap map)
virtual void Dispose(bool disposing)
void setDatabase(OdRxObject pDb)
static HandleRef getCPtr(OdMaterialResolver obj)
OdMaterialResolver(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26