Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGsBackgroundProperties.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
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGsBackgroundProperties(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGsBackgroundProperties_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGsBackgroundProperties obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public static OdGsBackgroundProperties cast(OdRxObject pObj) {// OdSmartPtr<OdGsBackgroundProperties>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdGsBackgroundProperties ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdGsBackgroundProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsBackgroundProperties),ptr, true));
51 ret = (OdGsBackgroundProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsBackgroundProperties),ptr, false);
52 }
53 else
54 {
55 ret = (OdGsBackgroundProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsBackgroundProperties),ptr, true);
56 }
57
59 return ret;
60}
61
62 public new static OdRxClass desc() {
63 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGsBackgroundProperties_desc(),false); /*createInt 3_2*/
64
66 return ret;
67}
68
69 public override OdRxClass isA() {
70 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGsBackgroundProperties_isA(swigCPtr),false); /*createInt 3_2*/
71
73 return ret;
74}
75
76 public override OdRxObject queryX(OdRxClass protocolClass) {
77 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdGsBackgroundProperties_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdGsBackgroundProperties createObject() {// OdSmartPtr<OdGsBackgroundProperties>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
88 OdGsBackgroundProperties ret = null;
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdGsBackgroundProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsBackgroundProperties),ptr, true));
92 ret = (OdGsBackgroundProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsBackgroundProperties),ptr, false);
93 }
94 else
95 {
96 ret = (OdGsBackgroundProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsBackgroundProperties),ptr, true);
97 }
98
100 return ret;
101}
102
104 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGsBackgroundProperties_solidBackgroundTraitsData(swigCPtr);
105 OdGiSolidBackgroundTraitsData ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGiSolidBackgroundTraitsData(cPtr, false);
107 return ret;
108 }
109
116
118 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGsBackgroundProperties_imageBackgroundTraitsData(swigCPtr);
119 OdGiImageBackgroundTraitsData ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGiImageBackgroundTraitsData(cPtr, false);
121 return ret;
122 }
123
130
132 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGsBackgroundProperties_skyBackgroundTraitsData(swigCPtr);
133 OdGiSkyBackgroundTraitsData ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGiSkyBackgroundTraitsData(cPtr, false);
135 return ret;
136 }
137
139 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGsBackgroundProperties_iblBackgroundTraitsData(swigCPtr);
140 OdGiIBLBackgroundTraitsData ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGiIBLBackgroundTraitsData(cPtr, false);
142 return ret;
143 }
144
151
153 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGsBackgroundProperties_customBackgroundTraitsData(swigCPtr);
154 OdGiCustomBackgroundTraitsData ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGiCustomBackgroundTraitsData(cPtr, false);
156 return ret;
157 }
158
160 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGsBackgroundProperties_backgroundTraitsData(swigCPtr);
161 OdGiBackgroundTraitsData ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGiBackgroundTraitsData(cPtr, false);
163 return ret;
164 }
165
171
178
184
189
195
196 public override OdGsProperties propertiesForType(OdGsProperties.PropertiesType type) {// OdSmartPtr<OdGsProperties>
197 MemoryManager mMan = MemoryManager.GetMemoryManager();
198 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
199 IntPtr ptr = GlobalsPINVOKE.OdGsBackgroundProperties_propertiesForType(swigCPtr, (int)type);
200
201 OdGsProperties ret = null;
202 if (null != mTrans)
203 {
204 mTrans.AddObject((OdGsProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsProperties),ptr, true));
205 ret = (OdGsProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsProperties),ptr, false);
206 }
207 else
208 {
209 ret = (OdGsProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsProperties),ptr, true);
210 }
211
213 return ret;
214}
215
216 public override void update(OdGiDrawable pUnderlyingDrawable, OdGsViewImpl view, UInt32 incFlags) {
217 GlobalsPINVOKE.OdGsBackgroundProperties_update__SWIG_0(swigCPtr, OdGiDrawable.getCPtr(pUnderlyingDrawable), OdGsViewImpl.getCPtr(view), incFlags /*SIMPLETYPE*/);
219 }
220
225
230
235
240
241 protected static string getRealClassName(IntPtr ptr) {
242 string ret = GlobalsPINVOKE.OdGsBackgroundProperties_getRealClassName(ptr /*SIMPLETYPE*/);
244 return ret;
245 }
246
251 public override void vb_display(Teigha.Core.OdGsBaseVectorizer view, Teigha.Core.OdGsPropertiesDirectRenderOutput pdro, uint incFlags) { this.display(view, pdro, incFlags); }
252
257 public override void vb_display(Teigha.Core.OdGsBaseVectorizer view, Teigha.Core.OdGsPropertiesDirectRenderOutput pdro) { this.display(view, pdro); }
258
263 public override void vb_display(Teigha.Core.OdGsBaseVectorizer view) { this.display(view); }
264
270
276
277}
278
279}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGsBackgroundProperties_gradientBackgroundTraitsData(HandleRef jarg1)
static void OdGsBackgroundProperties_update__SWIG_1(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3)
static void OdGsBackgroundProperties_display__SWIG_2(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static string OdGsBackgroundProperties_getRealClassName(IntPtr jarg1)
static void OdGsBackgroundProperties_display__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, UInt32 jarg4)
static IntPtr OdGsBackgroundProperties_propertiesForType(HandleRef jarg1, int jarg2)
static global::System.IntPtr OdGsBackgroundProperties_solidBackgroundTraitsData(HandleRef jarg1)
static global::System.IntPtr OdGsBackgroundProperties_customBackgroundTraitsData(HandleRef jarg1)
static bool OdGsBackgroundProperties_isTraitsModified(HandleRef jarg1)
static int OdGsBackgroundProperties_propertiesType(HandleRef jarg1)
static void OdGsBackgroundProperties_update__SWIG_0(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, UInt32 jarg4)
static IntPtr OdGsBackgroundProperties_cast(HandleRef jarg1)
static global::System.IntPtr OdGsBackgroundProperties_groundPlaneBackgroundTraitsData(HandleRef jarg1)
static IntPtr OdGsBackgroundProperties_isA(HandleRef jarg1)
static void delete_OdGsBackgroundProperties(HandleRef jarg1)
static IntPtr OdGsBackgroundProperties_desc()
static global::System.IntPtr OdGsBackgroundProperties_skyBackgroundTraitsData(HandleRef jarg1)
static void OdGsBackgroundProperties_clearTraits(HandleRef jarg1)
static global::System.IntPtr OdGsBackgroundProperties_environmentBackgroundTraitsData(HandleRef jarg1)
static void OdGsBackgroundProperties_display__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static IntPtr OdGsBackgroundProperties_queryX(HandleRef jarg1, HandleRef jarg2)
static global::System.IntPtr OdGsBackgroundProperties_iblBackgroundTraitsData(HandleRef jarg1)
static global::System.IntPtr OdGsBackgroundProperties_backgroundTraitsData(HandleRef jarg1)
static IntPtr OdGsBackgroundProperties_createObject()
static global::System.IntPtr OdGsBackgroundProperties_imageBackgroundTraitsData(HandleRef jarg1)
static IntPtr OdGsBackgroundProperties_secondaryBackground__SWIG_0(HandleRef jarg1)
static int OdGsBackgroundProperties_backgroundType(HandleRef jarg1)
static HandleRef getCPtr(OdGiDrawable obj)
OdGiSkyBackgroundTraitsData skyBackgroundTraitsData()
override void vb_display(Teigha.Core.OdGsBaseVectorizer view)
override void vb_display(Teigha.Core.OdGsBaseVectorizer view, Teigha.Core.OdGsPropertiesDirectRenderOutput pdro, uint incFlags)
override OdRxObject queryX(OdRxClass protocolClass)
override OdGsProperties.PropertiesType propertiesType()
override Teigha.Core.OdGsProperties.PropertiesType vb_propertiesType()
OdGiEnvironmentBackgroundTraitsData environmentBackgroundTraitsData()
OdGiGroundPlaneBackgroundTraitsData groundPlaneBackgroundTraitsData()
static HandleRef getCPtr(OdGsBackgroundProperties obj)
override void update(OdGiDrawable pUnderlyingDrawable, OdGsViewImpl view)
static OdGsBackgroundProperties createObject()
OdGiSolidBackgroundTraitsData solidBackgroundTraitsData()
Teigha.Core.OdGiDrawable.DrawableType vb_backgroundType()
OdGsBackgroundProperties(IntPtr cPtr, bool cMemoryOwn)
OdGiCustomBackgroundTraitsData customBackgroundTraitsData()
override void display(OdGsBaseVectorizer view, OdGsPropertiesDirectRenderOutput pdro, UInt32 incFlags)
override void update(OdGiDrawable pUnderlyingDrawable, OdGsViewImpl view, UInt32 incFlags)
OdGiGradientBackgroundTraitsData gradientBackgroundTraitsData()
override void display(OdGsBaseVectorizer view, OdGsPropertiesDirectRenderOutput pdro)
OdGiImageBackgroundTraitsData imageBackgroundTraitsData()
override void vb_display(Teigha.Core.OdGsBaseVectorizer view, Teigha.Core.OdGsPropertiesDirectRenderOutput pdro)
override OdGsProperties propertiesForType(OdGsProperties.PropertiesType type)
static OdGsBackgroundProperties cast(OdRxObject pObj)
OdGiIBLBackgroundTraitsData iblBackgroundTraitsData()
override void display(OdGsBaseVectorizer view)
static HandleRef getCPtr(OdGsBaseVectorizer obj)
static HandleRef getCPtr(OdGsPropertiesDirectRenderOutput obj)
OdGsProperties(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(OdGsViewImpl obj)
static HandleRef getCPtr(OdRxClass obj)
Definition OdRxClass.cs:25
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition OdRxObject.cs:21
static HandleRef getCPtr(OdRxObject obj)
Definition OdRxObject.cs:26