Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxVectorizeDevice.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 PCAD_DOT_NET {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16using Teigha.TD;
17
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public CFxVectorizeDevice(IntPtr cPtr, bool cMemoryOwn) : base(PCADGlobalsPINVOKE.CFxVectorizeDevice_SWIGUpcast(cPtr), cMemoryOwn) {
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(CFxVectorizeDevice obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
31 protected override void Dispose(bool disposing) {
32 lock(this) {
33 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
34 if (swigCMemOwn) {
35 swigCMemOwn = false;
37 }
38 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
39 }
40 base.Dispose(disposing);
41 }
42 }
43
44 public virtual CFxViewDrawContext CreateDrawContext(int iRenderEngine, int iRenderMode) {
45 IntPtr cPtr = PCADGlobalsPINVOKE.CFxVectorizeDevice_CreateDrawContext(swigCPtr, iRenderEngine, iRenderMode);
46 CFxViewDrawContext ret = (cPtr == IntPtr.Zero) ? null : new CFxViewDrawContext(cPtr, false);
48 return ret;
49 }
50
54 return ret;
55 }
56
57 public new static OdRxClass desc() {
58 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),PCADGlobalsPINVOKE.CFxVectorizeDevice_desc(),false); /*createInt 3_2*/
59
61 return ret;
62}
63
64 public override OdRxClass isA() {
65 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),PCADGlobalsPINVOKE.CFxVectorizeDevice_isA(swigCPtr),false); /*createInt 3_2*/
66
68 return ret;
69}
70
71 public override OdRxObject queryX(OdRxClass protocolClass) {
72 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),PCADGlobalsPINVOKE.CFxVectorizeDevice_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
73
75 return ret;
76}
77
81 return ret;
82 }
83
84 public virtual void DestroyDrawContext(CFxViewDrawContext arg0) {
87 }
88
89 public virtual double GetDeviceWidth() {
92 return ret;
93 }
94
95 public virtual double GetDeviceHeight() {
98 return ret;
99 }
100
101 public virtual bool InitializeLayout(OdDbObjectId idLayout) {
104 return ret;
105 }
106
107 public virtual void DestroyLayout() {
110 }
111
112 public virtual void Update(double width, double height, bool bAttachDatabase) {
113 PCADGlobalsPINVOKE.CFxVectorizeDevice_Update(swigCPtr, width, height, bAttachDatabase);
115 }
116
117 public virtual CFxDatabase GetFxDatabase() {
118 CFxDatabase ret = (CFxDatabase)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(CFxDatabase),PCADGlobalsPINVOKE.CFxVectorizeDevice_GetFxDatabase__SWIG_0(swigCPtr),false); /*createInt 3_2*/
119
121 return ret;
122}
123
124 public virtual void AddDeviceReactor(CFxDeviceReactor pReactor) {
127 }
128
129 public virtual void RemoveDeviceReactor(CFxDeviceReactor pReactor) {
132 }
133
134 public virtual int GetCurrentRenderEngine() {
137 return ret;
138 }
139
140 public virtual OdDbObjectId GetLayoutId() {
141 MemoryManager mMan = MemoryManager.GetMemoryManager();
142 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #27
144
145 OdDbObjectId ret = null;
146 if (null != mTrans)
147 {
148 mTrans.AddObject(new OdDbObjectId(ptr, true));
149 ret = new OdDbObjectId(ptr, false);
150 }
151 else
152 {
153 ret = new OdDbObjectId(ptr, true);
154 }
155
157 return ret;
158}
159
160 public virtual void SetPalette(UInt32[] /*array applied*/ pPalette) {
163 }
164
166 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxVectorizeDevice_GetPalette(swigCPtr);
167 SWIGTYPE_p_ODCOLORREF ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_ODCOLORREF(cPtr, false);
169 return ret;
170 }
171
172 public virtual void SetBackground(UInt32 /*SIMPLETYPE*/ color) {
173 PCADGlobalsPINVOKE.CFxVectorizeDevice_SetBackground__SWIG_0(swigCPtr, color /*SIMPLETYPE*/);
175 }
176
177 public virtual void SetBackground(UInt32 /*SIMPLETYPE*/ color, bool usePlotPalette) {
178 PCADGlobalsPINVOKE.CFxVectorizeDevice_SetBackground__SWIG_1(swigCPtr, color /*SIMPLETYPE*/, usePlotPalette);
180 }
181
182 public virtual UInt32 GetBackground() {
183// test csout
184 /*SIMPLETYPE*/
187 return ret;
188 }
189
190 public virtual UInt32 GetForeground() {
191// test csout
192 /*SIMPLETYPE*/
195 return ret;
196 }
197
198 public virtual CFxView GetActiveFxView() {
199 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxVectorizeDevice_GetActiveFxView__SWIG_0(swigCPtr);
200 CFxView ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxView(cPtr, false);
202 return ret;
203 }
204
205 public virtual CFxView GetFxViewByCadWindowId(Int16 /*SIMPLETYPE*/ number) {
206 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxVectorizeDevice_GetFxViewByCadWindowId(swigCPtr, number /*SIMPLETYPE*/);
207 CFxView ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxView(cPtr, false);
209 return ret;
210 }
211
213 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxVectorizeDevice_GetPaperSpaceOverallView(swigCPtr);
214 CFxView ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxView(cPtr, false);
216 return ret;
217 }
218
219 public virtual CFxView HitTest(OdGsDCPoint ptInput) {
220 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxVectorizeDevice_HitTest(swigCPtr, OdGsDCPoint.getCPtr(ptInput));
221 CFxView ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxView(cPtr, false);
223 return ret;
224 }
225
226 public virtual bool IsRegeneration() {
229 return ret;
230 }
231
232 public virtual void SetRegeneration(bool bRegen) {
235 }
236
237 public virtual void InvalidateGeometry() {
240 }
241
242 public virtual double GetPixelPerMM() {
245 return ret;
246 }
247
248 public virtual void AdjustBeforeUpdate(CFxViewDrawContext ctx, CFxViewDrawInfo rDrawInfo, CFxView view) {
251 }
252
253 public static void GetModelLineWeights(OdUInt8Array lweights, double scale) {
256 }
257
258 public virtual bool GetPlotArea(OdGsDCRectDouble out_) {
261 return ret;
262 }
263
264 public virtual bool GetPlotArea() {
267 return ret;
268 }
269
270 public virtual void SetPlotArea(OdGsDCRectDouble area) {
273 }
274
275 public virtual void SetUsePlotTransparency(bool value) {
278 }
279
280 public virtual bool UsePlotTransparency() {
283 return ret;
284 }
285
286 public virtual bool IsInitialUpdate() {
289 return ret;
290 }
291
292}
293
294}
static HandleRef getCPtr(CFxDeviceReactor obj)
virtual void SetBackground(UInt32 color, bool usePlotPalette)
virtual void SetUsePlotTransparency(bool value)
virtual SWIGTYPE_p_ODCOLORREF GetPalette()
static HandleRef getCPtr(CFxVectorizeDevice obj)
CFxVectorizeDevice(IntPtr cPtr, bool cMemoryOwn)
virtual void SetPalette(UInt32[] pPalette)
virtual CFxDatabase GetFxDatabase()
virtual void Update(double width, double height, bool bAttachDatabase)
virtual OdDbObjectId GetLayoutId()
static SWIGTYPE_p_OdSmartPtrT_CFxVectorizeDevice_t createObject()
virtual void SetRegeneration(bool bRegen)
override void Dispose(bool disposing)
virtual void SetBackground(UInt32 color)
override OdRxObject queryX(OdRxClass protocolClass)
virtual void DestroyDrawContext(CFxViewDrawContext arg0)
static void GetModelLineWeights(OdUInt8Array lweights, double scale)
virtual void SetPlotArea(OdGsDCRectDouble area)
virtual CFxViewDrawContext CreateDrawContext(int iRenderEngine, int iRenderMode)
virtual void AdjustBeforeUpdate(CFxViewDrawContext ctx, CFxViewDrawInfo rDrawInfo, CFxView view)
virtual void RemoveDeviceReactor(CFxDeviceReactor pReactor)
virtual CFxView HitTest(OdGsDCPoint ptInput)
virtual bool InitializeLayout(OdDbObjectId idLayout)
virtual CFxView GetPaperSpaceOverallView()
virtual void AddDeviceReactor(CFxDeviceReactor pReactor)
virtual CFxView GetFxViewByCadWindowId(Int16 number)
virtual bool GetPlotArea(OdGsDCRectDouble out_)
static SWIGTYPE_p_OdSmartPtrT_CFxVectorizeDevice_t cast(OdRxObject pObj)
static HandleRef getCPtr(CFxViewDrawContext obj)
static HandleRef getCPtr(CFxViewDrawInfo obj)
static HandleRef getCPtr(CFxView obj)
Definition: CFxView.cs:27
static IntPtr CFxVectorizeDevice_desc()
static void CFxVectorizeDevice_GetModelLineWeights(IntPtr jarg1, double jarg2)
static void CFxVectorizeDevice_SetBackground__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, bool jarg3)
static int CFxVectorizeDevice_GetCurrentRenderEngine(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxVectorizeDevice_GetLayoutId(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr CFxVectorizeDevice_isA(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxVectorizeDevice_DestroyDrawContext(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr CFxVectorizeDevice_GetFxDatabase__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxVectorizeDevice_SetPalette(global::System.Runtime.InteropServices.HandleRef jarg1, [In, MarshalAs(UnmanagedType.LPArray)]UInt32[] jarg2)
static UInt32 CFxVectorizeDevice_GetForeground(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxVectorizeDevice_SetUsePlotTransparency(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void delete_CFxVectorizeDevice(global::System.Runtime.InteropServices.HandleRef jarg1)
static double CFxVectorizeDevice_GetDeviceWidth(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 CFxVectorizeDevice_GetBackground(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr CFxVectorizeDevice_CreateDrawContext(HandleRef jarg1, int jarg2, int jarg3)
static double CFxVectorizeDevice_GetDeviceHeight(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxVectorizeDevice_IsInitialUpdate(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxVectorizeDevice_InitializeLayout(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxVectorizeDevice_SetBackground__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static double CFxVectorizeDevice_GetPixelPerMM(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxVectorizeDevice_UsePlotTransparency(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxVectorizeDevice_DestroyLayout(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxVectorizeDevice_GetPlotArea__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxVectorizeDevice_Update(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, bool jarg4)
static bool CFxVectorizeDevice_IsRegeneration(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxVectorizeDevice_InvalidateGeometry(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxVectorizeDevice_GetPlotArea__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxVectorizeDevice_createObject()
static global::System.IntPtr CFxVectorizeDevice_GetPalette(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxVectorizeDevice_SetPlotArea(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxVectorizeDevice_GetActiveFxView__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxVectorizeDevice_AddDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxVectorizeDevice_GetFxViewByCadWindowId(global::System.Runtime.InteropServices.HandleRef jarg1, Int16 jarg2)
static void CFxVectorizeDevice_RemoveDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxVectorizeDevice_HitTest(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxVectorizeDevice_AdjustBeforeUpdate(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static global::System.IntPtr CFxVectorizeDevice_cast(HandleRef jarg1)
static void CFxVectorizeDevice_SetRegeneration(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static IntPtr CFxVectorizeDevice_queryX(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static global::System.IntPtr CFxVectorizeDevice_GetPaperSpaceOverallView(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGsDCPoint obj)
Definition: OdGsDCPoint.cs:26
static HandleRef getCPtr(OdGsDCRectDouble obj)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdUInt8Array obj)
Definition: OdUInt8Array.cs:28
static HandleRef getCPtr(OdDbObjectId obj)
Definition: OdDbObjectId.cs:27