Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGiMaterialMap.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 OdGiMaterialMap : 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 OdGiMaterialMap(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(OdGiMaterialMap 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 static OdGiMaterialMap kNull {
52 get {
53 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiMaterialMap_kNull_get();
54 OdGiMaterialMap ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGiMaterialMap(cPtr, false);
56 return ret;
57 }
58 }
59
60 public OdGiMaterialMap() : this(GlobalsPINVOKE.new_OdGiMaterialMap(), true) {
62 }
63
67 }
68
69 public void setSourceFileName(String filename) {
72 }
73
74 public void setBlendFactor(double blendFactor) {
77 }
78
79 public void setTexture(OdGiMaterialTexture pTexture) {
82 }
83
84 public OdGiMapper mapper() {
87 return ret;
88 }
89
93 return ret;
94 }
95
99 return ret;
100}
101
102 public double blendFactor() {
103 double ret = GlobalsPINVOKE.OdGiMaterialMap_blendFactor(swigCPtr);
105 return ret;
106 }
107
111 }
112
113 public OdGiMaterialTexture texture() {// OdGiMaterialTexturePtr
114 MemoryManager mMan = MemoryManager.GetMemoryManager();
115 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
116 IntPtr ptr = GlobalsPINVOKE.OdGiMaterialMap_texture(swigCPtr);
117
118 OdGiMaterialTexture ret = null;
119 if (null != mTrans)
120 {
121 mTrans.AddObject((OdGiMaterialTexture)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTexture),ptr, true));
122 ret = (OdGiMaterialTexture)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTexture),ptr, false);
123 }
124 else
125 {
126 ret = (OdGiMaterialTexture)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTexture),ptr, true);
127 }
128
130 return ret;
131}
132
133 public bool IsEqual(OdGiMaterialMap other) {
136 return ret;
137 }
138
139 public bool IsNotEqual(OdGiMaterialMap other) {
142 return ret;
143 }
144
148 return ret;
149 }
150
156
157 public enum Source {
158 kScene = 0,
159 kFile = 1,
160 kProcedural = 2
161 }
162
163}
164
165}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGiMaterialMap_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGiMaterialMap_IsNotEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGiMaterialMap_setBlendFactor(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static int OdGiMaterialMap_source(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiMaterialMap_setTexture(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void OdGiMaterialMap_setSourceFileName(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static global::System.IntPtr OdGiMaterialMap_mapper__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiMaterialMap_setMapper(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static String OdGiMaterialMap_sourceFileName(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGiMaterialMap_blendFactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiMaterialMap_setSource(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void delete_OdGiMaterialMap(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGiMaterialMap_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdGiMaterialMap_texture(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGiMaterialMap_kNull_get()
static HandleRef getCPtr(OdGiMapper obj)
Definition: OdGiMapper.cs:26
void setMapper(OdGiMapper mapper)
static OdGiMaterialMap kNull
static HandleRef getCPtr(OdGiMaterialMap obj)
OdGiMaterialMap Assign(OdGiMaterialMap mmap)
OdGiMaterialMap.Source source()
OdGiMaterialTexture texture()
bool IsNotEqual(OdGiMaterialMap other)
void setTexture(OdGiMaterialTexture pTexture)
void setBlendFactor(double blendFactor)
bool IsEqual(OdGiMaterialMap other)
OdGiMaterialMap(IntPtr cPtr, bool cMemoryOwn)
Teigha.Core.OdGiMaterialMap.Source vb_source()
void setSourceFileName(String filename)
virtual void Dispose(bool disposing)
void setSource(OdGiMaterialMap.Source source)
static HandleRef getCPtr(OdGiMaterialTexture obj)