Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGsProperties.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 OdGsProperties : OdRxObject {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGsProperties(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGsProperties_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGsProperties 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 OdGsProperties cast(OdRxObject pObj) {// OdSmartPtr<OdGsProperties>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdGsProperties ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdGsProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsProperties),ptr, true));
51 ret = (OdGsProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsProperties),ptr, false);
52 }
53 else
54 {
55 ret = (OdGsProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsProperties),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.OdGsProperties_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.OdGsProperties_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.OdGsProperties_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdGsProperties createObject() {// OdSmartPtr<OdGsProperties>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
88 OdGsProperties ret = null;
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdGsProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsProperties),ptr, true));
92 ret = (OdGsProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsProperties),ptr, false);
93 }
94 else
95 {
96 ret = (OdGsProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsProperties),ptr, true);
97 }
98
100 return ret;
101}
102
103 public void setUnderlyingDrawable(OdGiDrawable pUnderlyingDrawable, OdGiContext ctx) {
106 }
107
108 public OdGiDrawable underlyingDrawable() {// OdGiDrawablePtr
109 MemoryManager mMan = MemoryManager.GetMemoryManager();
110 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
112
113 OdGiDrawable ret = null;
114 if (null != mTrans)
115 {
116 mTrans.AddObject((OdGiDrawable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDrawable),ptr, true));
117 ret = (OdGiDrawable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDrawable),ptr, false);
118 }
119 else
120 {
121 ret = (OdGiDrawable)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiDrawable),ptr, true);
122 }
123
125 return ret;
126}
127
128 public bool isUnderlyingDrawableChanged(OdGiDrawable pUnderlyingDrawable) {
129 bool ret = GlobalsPINVOKE.OdGsProperties_isUnderlyingDrawableChanged(swigCPtr, OdGiDrawable.getCPtr(pUnderlyingDrawable));
131 return ret;
132 }
133
134 public bool hasUnderlyingDrawable() {
137 return ret;
138 }
139
143 return ret;
144 }
145
147 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGsProperties_underlyingDrawableId(swigCPtr);
148 OdDbStub ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdDbStub(cPtr, false);
150 return ret;
151 }
152
156 return ret;
157 }
158
162 return ret;
163 }
164
165 public virtual OdGsProperties propertiesForType(OdGsProperties.PropertiesType arg0) {// OdSmartPtr<OdGsProperties>
166 MemoryManager mMan = MemoryManager.GetMemoryManager();
167 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
168 IntPtr ptr = GlobalsPINVOKE.OdGsProperties_propertiesForType(swigCPtr, (int)arg0);
169
170 OdGsProperties ret = null;
171 if (null != mTrans)
172 {
173 mTrans.AddObject((OdGsProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsProperties),ptr, true));
174 ret = (OdGsProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsProperties),ptr, false);
175 }
176 else
177 {
178 ret = (OdGsProperties)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGsProperties),ptr, true);
179 }
180
182 return ret;
183}
184
185 public virtual void update(OdGiDrawable pUnderlyingDrawable, OdGsViewImpl view, UInt32 /*SIMPLETYPE*/ incFlags) {
186 GlobalsPINVOKE.OdGsProperties_update__SWIG_0(swigCPtr, OdGiDrawable.getCPtr(pUnderlyingDrawable), OdGsViewImpl.getCPtr(view), incFlags /*SIMPLETYPE*/);
188 }
189
190 public virtual void update(OdGiDrawable pUnderlyingDrawable, OdGsViewImpl view) {
193 }
194
195 public virtual void display(OdGsBaseVectorizer view, OdGsPropertiesDirectRenderOutput pdro, UInt32 /*SIMPLETYPE*/ incFlags) {
198 }
199
203 }
204
205 public virtual void display(OdGsBaseVectorizer view) {
208 }
209
210 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
211 string ret = GlobalsPINVOKE.OdGsProperties_getRealClassName(ptr /*SIMPLETYPE*/);
213 return ret;
214 }
215
220 public virtual void vb_display(Teigha.Core.OdGsBaseVectorizer view, Teigha.Core.OdGsPropertiesDirectRenderOutput pdro, uint incFlags) { this.display(view, pdro, incFlags); }
221
226 public virtual void vb_display(Teigha.Core.OdGsBaseVectorizer view, Teigha.Core.OdGsPropertiesDirectRenderOutput pdro) { this.display(view, pdro); }
227
232 public virtual void vb_display(Teigha.Core.OdGsBaseVectorizer view) { this.display(view); }
233
239
240 public enum PropertiesType {
241 kViewport = 1,
242 kBackground = (1 << 1),
243 kVisualStyle = (1 << 2),
244 kRenderEnvironment = (1 << 3),
245 kRenderSettings = (1 << 4),
246 kDeviceSimple = 0,
248 kDeviceNormal = 7,
249 kDeviceRender = 31,
250 kAll = 31
251 }
252
253}
254
255}
static global::System.Exception Retrieve()
static void OdGsProperties_update__SWIG_1(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3)
static bool OdGsProperties_isUnderlyingDrawablePersistent(HandleRef jarg1)
static IntPtr OdGsProperties_queryX(HandleRef jarg1, HandleRef jarg2)
static int OdGsProperties_underlyingDrawableType(HandleRef jarg1)
static IntPtr OdGsProperties_createObject()
static IntPtr OdGsProperties_isA(HandleRef jarg1)
static void OdGsProperties_update__SWIG_0(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, UInt32 jarg4)
static int OdGsProperties_propertiesType(HandleRef jarg1)
static IntPtr OdGsProperties_underlyingDrawable(HandleRef jarg1)
static string OdGsProperties_getRealClassName(IntPtr jarg1)
static bool OdGsProperties_hasUnderlyingDrawable(HandleRef jarg1)
static IntPtr OdGsProperties_desc()
static void OdGsProperties_display__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, UInt32 jarg4)
static IntPtr OdGsProperties_cast(HandleRef jarg1)
static void delete_OdGsProperties(HandleRef jarg1)
static void OdGsProperties_setUnderlyingDrawable(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3)
static void OdGsProperties_display__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static IntPtr OdGsProperties_propertiesForType(HandleRef jarg1, int jarg2)
static global::System.IntPtr OdGsProperties_underlyingDrawableId(HandleRef jarg1)
static bool OdGsProperties_isUnderlyingDrawableChanged(HandleRef jarg1, HandleRef jarg2)
static void OdGsProperties_display__SWIG_2(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static HandleRef getCPtr(OdGiContext obj)
Definition: OdGiContext.cs:25
static HandleRef getCPtr(OdGiDrawable obj)
Definition: OdGiDrawable.cs:25
static HandleRef getCPtr(OdGsBaseVectorizer obj)
static HandleRef getCPtr(OdGsPropertiesDirectRenderOutput obj)
virtual void update(OdGiDrawable pUnderlyingDrawable, OdGsViewImpl view, UInt32 incFlags)
virtual Teigha.Core.OdGsProperties.PropertiesType vb_propertiesType()
virtual void display(OdGsBaseVectorizer view, OdGsPropertiesDirectRenderOutput pdro, UInt32 incFlags)
virtual void vb_display(Teigha.Core.OdGsBaseVectorizer view, Teigha.Core.OdGsPropertiesDirectRenderOutput pdro, uint incFlags)
static new OdRxClass desc()
virtual OdGsProperties.PropertiesType propertiesType()
override void Dispose(bool disposing)
virtual void display(OdGsBaseVectorizer view)
virtual OdGsProperties propertiesForType(OdGsProperties.PropertiesType arg0)
bool isUnderlyingDrawableChanged(OdGiDrawable pUnderlyingDrawable)
OdGiDrawable.DrawableType underlyingDrawableType()
virtual void vb_display(Teigha.Core.OdGsBaseVectorizer view, Teigha.Core.OdGsPropertiesDirectRenderOutput pdro)
virtual void update(OdGiDrawable pUnderlyingDrawable, OdGsViewImpl view)
static OdGsProperties cast(OdRxObject pObj)
static string getRealClassName(IntPtr ptr)
override OdRxObject queryX(OdRxClass protocolClass)
override OdRxClass isA()
static OdGsProperties createObject()
virtual void display(OdGsBaseVectorizer view, OdGsPropertiesDirectRenderOutput pdro)
static HandleRef getCPtr(OdGsProperties obj)
virtual void vb_display(Teigha.Core.OdGsBaseVectorizer view)
void setUnderlyingDrawable(OdGiDrawable pUnderlyingDrawable, OdGiContext ctx)
OdGsProperties(IntPtr cPtr, bool cMemoryOwn)
OdGiDrawable underlyingDrawable()
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