Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxDisplayDevice.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 CFxDisplayDevice(IntPtr cPtr, bool cMemoryOwn) : base(PCADGlobalsPINVOKE.CFxDisplayDevice_SWIGUpcast(cPtr), cMemoryOwn) {
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(CFxDisplayDevice 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 CFxDocument GetFxDocument() {
45 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDisplayDevice_GetFxDocument(swigCPtr);
46 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
48 return ret;
49 }
50
54 }
55
59 }
60
61 public virtual void Regen(CFxView pView) {
64 }
65
66 public virtual void Redraw() {
69 }
70
71 public virtual void InvalidateAllViewports() {
74 }
75
76 public virtual CFxView GetMaximizedView() {
77 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDisplayDevice_GetMaximizedView(swigCPtr);
78 CFxView ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxView(cPtr, false);
80 return ret;
81 }
82
83 public virtual void SetMaximizedView(CFxView pView) {
86 }
87
88 public virtual OdGiRasterImage GetSlideImage(CFxView pView) {// OdGiRasterImagePtr
89 MemoryManager mMan = MemoryManager.GetMemoryManager();
90 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
91 IntPtr ptr = PCADGlobalsPINVOKE.CFxDisplayDevice_GetSlideImage(swigCPtr, pView);
92
93 OdGiRasterImage ret = null;
94 if (null != mTrans)
95 {
96 mTrans.AddObject((OdGiRasterImage)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiRasterImage),ptr, true));
97 ret = (OdGiRasterImage)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiRasterImage),ptr, false);
98 }
99 else
100 {
101 ret = (OdGiRasterImage)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiRasterImage),ptr, true);
102 }
103
105 return ret;
106}
107
108 public virtual void SetSlideImage(OdGiRasterImage slide, CFxView pView) {
111 }
112
113 public virtual UInt32 GetEffectiveBackgroundColor() {
114// test csout
115 /*SIMPLETYPE*/
118 return ret;
119 }
120
121 public virtual bool IsSceneUpdatingActive() {
124 return ret;
125 }
126
127 public virtual void SetSceneUpdatingActive(bool bVal) {
130 }
131
132 public virtual void ShrinkMemory() {
135 }
136
138 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDisplayDevice_GetDisplayContext(swigCPtr);
139 SWIGTYPE_p_CFxDisplayContext ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_CFxDisplayContext(cPtr, false);
141 return ret;
142 }
143
144}
145
146}
virtual OdGiRasterImage GetSlideImage(CFxView pView)
virtual void RemoveDrawHook(SWIGTYPE_p_f_p_q_const__CFxView__void arg0)
override void Dispose(bool disposing)
virtual SWIGTYPE_p_CFxDisplayContext GetDisplayContext()
virtual void SetSlideImage(OdGiRasterImage slide, CFxView pView)
virtual void SetSceneUpdatingActive(bool bVal)
virtual void Regen(CFxView pView)
virtual UInt32 GetEffectiveBackgroundColor()
virtual CFxView GetMaximizedView()
virtual CFxDocument GetFxDocument()
virtual void AddDrawHook(SWIGTYPE_p_f_p_q_const__CFxView__void arg0)
CFxDisplayDevice(IntPtr cPtr, bool cMemoryOwn)
virtual void SetMaximizedView(CFxView pView)
static HandleRef getCPtr(CFxDisplayDevice obj)
static HandleRef getCPtr(CFxView obj)
Definition: CFxView.cs:27
static void CFxDisplayDevice_SetMaximizedView(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static UInt32 CFxDisplayDevice_GetEffectiveBackgroundColor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDisplayDevice_Regen(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxDisplayDevice_GetMaximizedView(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDisplayDevice_RemoveDrawHook(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDisplayDevice_Redraw(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDisplayDevice_SetSlideImage(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void CFxDisplayDevice_SetSceneUpdatingActive(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void CFxDisplayDevice_ShrinkMemory(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDisplayDevice_GetDisplayContext(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDisplayDevice_InvalidateAllViewports(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxDisplayDevice_IsSceneUpdatingActive(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDisplayDevice_GetFxDocument(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDisplayDevice_AddDrawHook(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr CFxDisplayDevice_GetSlideImage(global::System.Runtime.InteropServices.HandleRef jarg1, CFxView jarg2)
static void delete_CFxDisplayDevice(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGiRasterImage obj)