Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGiRenderEnvironmentTraitsData.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 OdGiRenderEnvironmentTraitsData : 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 OdGiRenderEnvironmentTraitsData(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(OdGiRenderEnvironmentTraitsData 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 OdGiRenderEnvironmentTraitsData() : this(GlobalsPINVOKE.new_OdGiRenderEnvironmentTraitsData(), true) {
53 }
54
59
65
70
76
81
87
92
98
103
109
114
120
125
131
136
137 public OdGiMaterialTexture environmentMap() {// OdGiMaterialTexturePtr
138 MemoryManager mMan = MemoryManager.GetMemoryManager();
139 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
141
142 OdGiMaterialTexture ret = null;
143 if (null != mTrans)
144 {
145 mTrans.AddObject((OdGiMaterialTexture)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTexture),ptr, true));
146 ret = (OdGiMaterialTexture)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTexture),ptr, false);
147 }
148 else
149 {
150 ret = (OdGiMaterialTexture)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiMaterialTexture),ptr, true);
151 }
152
154 return ret;
155}
156
162
168
169}
170
171}
static global::System.Exception Retrieve()
static bool OdGiRenderEnvironmentTraitsData_isBackground(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiRenderEnvironmentTraitsData_setFarDistance(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void OdGiRenderEnvironmentTraitsData_setEnable(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static double OdGiRenderEnvironmentTraitsData_farDistance(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiRenderEnvironmentTraitsData_setEnvironmentMap(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void OdGiRenderEnvironmentTraitsData_setNearPercentage(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void delete_OdGiRenderEnvironmentTraitsData(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiRenderEnvironmentTraitsData_setFarPercentage(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static IntPtr OdGiRenderEnvironmentTraitsData_environmentMap(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGiRenderEnvironmentTraitsData_fogColor(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGiRenderEnvironmentTraitsData_enable(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGiRenderEnvironmentTraitsData_nearPercentage(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiRenderEnvironmentTraitsData_setFogColor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGiRenderEnvironmentTraitsData_setIsBackground(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static double OdGiRenderEnvironmentTraitsData_nearDistance(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGiRenderEnvironmentTraitsData_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGiRenderEnvironmentTraitsData_farPercentage(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiRenderEnvironmentTraitsData_setNearDistance(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGiRenderEnvironmentTraitsData_IsNotEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static HandleRef getCPtr(OdCmEntityColor obj)
static HandleRef getCPtr(OdGiMaterialTexture obj)
static HandleRef getCPtr(OdGiRenderEnvironmentTraitsData obj)
bool IsNotEqual(OdGiRenderEnvironmentTraitsData data2)
bool IsEqual(OdGiRenderEnvironmentTraitsData data2)