Extended .NET SDK Documentation 2024 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
55 public void setEnable(bool bEnable) {
58 }
59
60 public bool enable() {
63 return ret;
64 }
65
66 public void setIsBackground(bool bEnable) {
69 }
70
71 public bool isBackground() {
74 return ret;
75 }
76
77 public void setFogColor(OdCmEntityColor color) {
80 }
81
85 return ret;
86 }
87
88 public void setNearDistance(double nearDist) {
91 }
92
93 public double nearDistance() {
96 return ret;
97 }
98
99 public void setFarDistance(double farDist) {
102 }
103
104 public double farDistance() {
107 return ret;
108 }
109
110 public void setNearPercentage(double nearPct) {
113 }
114
115 public double nearPercentage() {
118 return ret;
119 }
120
121 public void setFarPercentage(double farPct) {
124 }
125
126 public double farPercentage() {
129 return ret;
130 }
131
135 }
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
160 return ret;
161 }
162
166 return ret;
167 }
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)