Extended .NET SDK Documentation 2024 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
111 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGsBackgroundProperties_gradientBackgroundTraitsData(swigCPtr);
112 OdGiGradientBackgroundTraitsData ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGiGradientBackgroundTraitsData(cPtr, false);
114 return ret;
115 }
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
126 OdGiGroundPlaneBackgroundTraitsData ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGiGroundPlaneBackgroundTraitsData(cPtr, false);
128 return ret;
129 }
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
146 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGsBackgroundProperties_backgroundTraitsData(swigCPtr);
147 OdGiBackgroundTraitsData ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGiBackgroundTraitsData(cPtr, false);
149 return ret;
150 }
151
155 return ret;
156 }
157
159 OdGsBackgroundProperties ret = (OdGsBackgroundProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsBackgroundProperties),GlobalsPINVOKE.OdGsBackgroundProperties_secondaryBackground__SWIG_0(swigCPtr),false); /*createInt 3_2*/
160
162 return ret;
163}
164
165 public bool isTraitsModified() {
168 return ret;
169 }
170
171 public void clearTraits() {
174 }
175
179 return ret;
180 }
181
182 public override OdGsProperties propertiesForType(OdGsProperties.PropertiesType type) {// OdSmartPtr<OdGsProperties>
183 MemoryManager mMan = MemoryManager.GetMemoryManager();
184 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
185 IntPtr ptr = GlobalsPINVOKE.OdGsBackgroundProperties_propertiesForType(swigCPtr, (int)type);
186
187 OdGsProperties ret = null;
188 if (null != mTrans)
189 {
190 mTrans.AddObject((OdGsProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsProperties),ptr, true));
191 ret = (OdGsProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsProperties),ptr, false);
192 }
193 else
194 {
195 ret = (OdGsProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsProperties),ptr, true);
196 }
197
199 return ret;
200}
201
202 public override void update(OdGiDrawable pUnderlyingDrawable, OdGsViewImpl view, UInt32 /*SIMPLETYPE*/ incFlags) {
203 GlobalsPINVOKE.OdGsBackgroundProperties_update__SWIG_0(swigCPtr, OdGiDrawable.getCPtr(pUnderlyingDrawable), OdGsViewImpl.getCPtr(view), incFlags /*SIMPLETYPE*/);
205 }
206
207 public override void update(OdGiDrawable pUnderlyingDrawable, OdGsViewImpl view) {
210 }
211
212 public override void display(OdGsBaseVectorizer view, OdGsPropertiesDirectRenderOutput pdro, UInt32 /*SIMPLETYPE*/ incFlags) {
215 }
216
220 }
221
222 public override void display(OdGsBaseVectorizer view) {
225 }
226
227 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
228 string ret = GlobalsPINVOKE.OdGsBackgroundProperties_getRealClassName(ptr /*SIMPLETYPE*/);
230 return ret;
231 }
232
237 public override void vb_display(Teigha.Core.OdGsBaseVectorizer view, Teigha.Core.OdGsPropertiesDirectRenderOutput pdro, uint incFlags) { this.display(view, pdro, incFlags); }
238
243 public override void vb_display(Teigha.Core.OdGsBaseVectorizer view, Teigha.Core.OdGsPropertiesDirectRenderOutput pdro) { this.display(view, pdro); }
244
249 public override void vb_display(Teigha.Core.OdGsBaseVectorizer view) { this.display(view); }
250
256
262
263}
264
265}
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 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 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)
Definition: OdGiDrawable.cs:25
OdGiSkyBackgroundTraitsData skyBackgroundTraitsData()
override void vb_display(Teigha.Core.OdGsBaseVectorizer view)
OdGsBackgroundProperties secondaryBackground()
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()
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)
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)
OdGiBackgroundTraitsData backgroundTraitsData()
static HandleRef getCPtr(OdGsBaseVectorizer obj)
static HandleRef getCPtr(OdGsPropertiesDirectRenderOutput obj)
static HandleRef getCPtr(OdGsViewImpl obj)
Definition: OdGsViewImpl.cs:26
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26