Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGiGrayRamp.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 OdGiGrayRamp : OdRxObject {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdGiGrayRamp(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiGrayRamp_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdGiGrayRamp 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 OdGiGrayRamp createDynamic(Int32 nGridDivs, float fIntensity, Int32 nBaseOffset) {// OdSmartPtr<OdGiGrayRamp>
52 MemoryManager mMan = MemoryManager.GetMemoryManager();
53 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
54 IntPtr ptr = GlobalsPINVOKE.OdGiGrayRamp_createDynamic__SWIG_0(nGridDivs /*SIMPLETYPE*/, fIntensity, nBaseOffset /*SIMPLETYPE*/);
55
56 OdGiGrayRamp ret = null;
57 if (null != mTrans)
58 {
59 mTrans.AddObject((OdGiGrayRamp)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGrayRamp),ptr, true));
60 ret = (OdGiGrayRamp)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGrayRamp),ptr, false);
61 }
62 else
63 {
64 ret = (OdGiGrayRamp)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGrayRamp),ptr, true);
65 }
66
68 return ret;
69}
70
71 public static OdGiGrayRamp createDynamic(Int32 nGridDivs, float fIntensity) {// OdSmartPtr<OdGiGrayRamp>
72 MemoryManager mMan = MemoryManager.GetMemoryManager();
73 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
74 IntPtr ptr = GlobalsPINVOKE.OdGiGrayRamp_createDynamic__SWIG_1(nGridDivs /*SIMPLETYPE*/, fIntensity);
75
76 OdGiGrayRamp ret = null;
77 if (null != mTrans)
78 {
79 mTrans.AddObject((OdGiGrayRamp)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGrayRamp),ptr, true));
80 ret = (OdGiGrayRamp)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGrayRamp),ptr, false);
81 }
82 else
83 {
84 ret = (OdGiGrayRamp)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGrayRamp),ptr, true);
85 }
86
88 return ret;
89}
90
91 public static OdGiGrayRamp createDynamic(Int32 nGridDivs) {// OdSmartPtr<OdGiGrayRamp>
92 MemoryManager mMan = MemoryManager.GetMemoryManager();
93 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
94 IntPtr ptr = GlobalsPINVOKE.OdGiGrayRamp_createDynamic__SWIG_2(nGridDivs /*SIMPLETYPE*/);
95
96 OdGiGrayRamp ret = null;
97 if (null != mTrans)
98 {
99 mTrans.AddObject((OdGiGrayRamp)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGrayRamp),ptr, true));
100 ret = (OdGiGrayRamp)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGrayRamp),ptr, false);
101 }
102 else
103 {
104 ret = (OdGiGrayRamp)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGrayRamp),ptr, true);
105 }
106
108 return ret;
109}
110
111 public static OdGiGrayRamp createDynamic() {// OdSmartPtr<OdGiGrayRamp>
112 MemoryManager mMan = MemoryManager.GetMemoryManager();
113 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
115
116 OdGiGrayRamp ret = null;
117 if (null != mTrans)
118 {
119 mTrans.AddObject((OdGiGrayRamp)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGrayRamp),ptr, true));
120 ret = (OdGiGrayRamp)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGrayRamp),ptr, false);
121 }
122 else
123 {
124 ret = (OdGiGrayRamp)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGrayRamp),ptr, true);
125 }
126
128 return ret;
129}
130
131 public virtual OdRxObject clone() {// OdRxObjectPtr
132 MemoryManager mMan = MemoryManager.GetMemoryManager();
133 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
134 IntPtr ptr = GlobalsPINVOKE.OdGiGrayRamp_clone(swigCPtr);
135
136 OdRxObject ret = null;
137 if (null != mTrans)
138 {
139 mTrans.AddObject((OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true));
140 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, false);
141 }
142 else
143 {
144 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true);
145 }
146
148 return ret;
149}
150
151 public OdGiGrayRamp cloneIfNeed() {// OdSmartPtr<OdGiGrayRamp>
152 MemoryManager mMan = MemoryManager.GetMemoryManager();
153 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
154 IntPtr ptr = GlobalsPINVOKE.OdGiGrayRamp_cloneIfNeed(swigCPtr);
155
156 OdGiGrayRamp ret = null;
157 if (null != mTrans)
158 {
159 mTrans.AddObject((OdGiGrayRamp)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGrayRamp),ptr, true));
160 ret = (OdGiGrayRamp)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGrayRamp),ptr, false);
161 }
162 else
163 {
164 ret = (OdGiGrayRamp)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiGrayRamp),ptr, true);
165 }
166
168 return ret;
169}
170
171 public Int32 baseOffset() {
172// test csout
173 /*SIMPLETYPE*/
174 Int32 ret = GlobalsPINVOKE.OdGiGrayRamp_baseOffset(swigCPtr);
176 return ret;
177 }
178
179 public Int32 gridDivisions() {
180// test csout
181 /*SIMPLETYPE*/
182 Int32 ret = GlobalsPINVOKE.OdGiGrayRamp_gridDivisions(swigCPtr);
184 return ret;
185 }
186
187 public float intensity() {
188 float ret = GlobalsPINVOKE.OdGiGrayRamp_intensity(swigCPtr);
190 return ret;
191 }
192
193 public Int32 dimension() {
194// test csout
195 /*SIMPLETYPE*/
196 Int32 ret = GlobalsPINVOKE.OdGiGrayRamp_dimension(swigCPtr);
198 return ret;
199 }
200
201 public UInt32 color(Int32 nColor) {
202// test csout
203 /*SIMPLETYPE*/
204 UInt32 ret = GlobalsPINVOKE.OdGiGrayRamp_color(swigCPtr, nColor /*SIMPLETYPE*/);
206 return ret;
207 }
208
209 public Int32 closestMatch(UInt32 cref) {
210// test csout
211 /*SIMPLETYPE*/
212 Int32 ret = GlobalsPINVOKE.OdGiGrayRamp_closestMatch(swigCPtr, cref /*SIMPLETYPE*/);
214 return ret;
215 }
216
217 protected static string getRealClassName(IntPtr ptr) {
218 string ret = GlobalsPINVOKE.OdGiGrayRamp_getRealClassName(ptr /*SIMPLETYPE*/);
220 return ret;
221 }
222
223}
224
225}
static global::System.Exception Retrieve()
static Int32 OdGiGrayRamp_gridDivisions(HandleRef jarg1)
static IntPtr OdGiGrayRamp_createDynamic__SWIG_2(Int32 jarg1)
static UInt32 OdGiGrayRamp_color(HandleRef jarg1, Int32 jarg2)
static Int32 OdGiGrayRamp_baseOffset(HandleRef jarg1)
static IntPtr OdGiGrayRamp_createDynamic__SWIG_1(Int32 jarg1, float jarg2)
static IntPtr OdGiGrayRamp_createDynamic__SWIG_3()
static Int32 OdGiGrayRamp_closestMatch(HandleRef jarg1, UInt32 jarg2)
static void delete_OdGiGrayRamp(HandleRef jarg1)
static float OdGiGrayRamp_intensity(HandleRef jarg1)
static IntPtr OdGiGrayRamp_cloneIfNeed(HandleRef jarg1)
static string OdGiGrayRamp_getRealClassName(IntPtr jarg1)
static IntPtr OdGiGrayRamp_clone(HandleRef jarg1)
static IntPtr OdGiGrayRamp_createDynamic__SWIG_0(Int32 jarg1, float jarg2, Int32 jarg3)
static Int32 OdGiGrayRamp_dimension(HandleRef jarg1)
static OdGiGrayRamp createDynamic(Int32 nGridDivs, float fIntensity)
static string getRealClassName(IntPtr ptr)
UInt32 color(Int32 nColor)
static HandleRef getCPtr(OdGiGrayRamp obj)
static OdGiGrayRamp createDynamic(Int32 nGridDivs)
OdGiGrayRamp(IntPtr cPtr, bool cMemoryOwn)
static OdGiGrayRamp createDynamic(Int32 nGridDivs, float fIntensity, Int32 nBaseOffset)
virtual OdRxObject clone()
OdGiGrayRamp cloneIfNeed()
virtual void Dispose(bool disposing)
static OdGiGrayRamp createDynamic()
Int32 closestMatch(UInt32 cref)
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition OdRxObject.cs:21