Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CFxDeviceReactor.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
18public class CFxDeviceReactor : global::System.IDisposable {
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 protected bool swigCMemOwn;
22 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
23 public CFxDeviceReactor(IntPtr cPtr, bool cMemoryOwn) {
24 swigCMemOwn = cMemoryOwn;
25 swigCPtr = new HandleRef(this, cPtr);
26 }
27 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
28 public static HandleRef getCPtr(CFxDeviceReactor obj) {
29 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30 }
31
33 Dispose(false);
34 }
35
36 public void Dispose() {
37 Dispose(true);
38 global::System.GC.SuppressFinalize(this);
39 }
40
41 protected virtual void Dispose(bool disposing) {
42 lock(this) {
43 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
44 if (swigCMemOwn) {
45 swigCMemOwn = false;
47 }
48 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
49 }
50 }
51 }
52
53 public virtual void ViewCreated(CFxView pView) {
54 if (SwigDerivedClassHasMethod("ViewCreated", swigMethodTypes0)) PCADGlobalsPINVOKE.CFxDeviceReactor_ViewCreatedSwigExplicitCFxDeviceReactor(swigCPtr, CFxView.getCPtr(pView)); else PCADGlobalsPINVOKE.CFxDeviceReactor_ViewCreated(swigCPtr, CFxView.getCPtr(pView));
56 }
57
58 public virtual void ViewAdded(CFxView pView) {
59 if (SwigDerivedClassHasMethod("ViewAdded", swigMethodTypes1)) PCADGlobalsPINVOKE.CFxDeviceReactor_ViewAddedSwigExplicitCFxDeviceReactor(swigCPtr, CFxView.getCPtr(pView)); else PCADGlobalsPINVOKE.CFxDeviceReactor_ViewAdded(swigCPtr, CFxView.getCPtr(pView));
61 }
62
63 public virtual void ViewRemoved(CFxView pView) {
64 if (SwigDerivedClassHasMethod("ViewRemoved", swigMethodTypes2)) PCADGlobalsPINVOKE.CFxDeviceReactor_ViewRemovedSwigExplicitCFxDeviceReactor(swigCPtr, CFxView.getCPtr(pView)); else PCADGlobalsPINVOKE.CFxDeviceReactor_ViewRemoved(swigCPtr, CFxView.getCPtr(pView));
66 }
67
68 public virtual void ViewDestroyed(CFxView pView) {
69 if (SwigDerivedClassHasMethod("ViewDestroyed", swigMethodTypes3)) PCADGlobalsPINVOKE.CFxDeviceReactor_ViewDestroyedSwigExplicitCFxDeviceReactor(swigCPtr, CFxView.getCPtr(pView)); else PCADGlobalsPINVOKE.CFxDeviceReactor_ViewDestroyed(swigCPtr, CFxView.getCPtr(pView));
71 }
72
73 public virtual void RedrawStarted() {
74 if (SwigDerivedClassHasMethod("RedrawStarted", swigMethodTypes4)) PCADGlobalsPINVOKE.CFxDeviceReactor_RedrawStartedSwigExplicitCFxDeviceReactor(swigCPtr); else PCADGlobalsPINVOKE.CFxDeviceReactor_RedrawStarted(swigCPtr);
76 }
77
82
83 public virtual void RegenStarted() {
84 if (SwigDerivedClassHasMethod("RegenStarted", swigMethodTypes6)) PCADGlobalsPINVOKE.CFxDeviceReactor_RegenStartedSwigExplicitCFxDeviceReactor(swigCPtr); else PCADGlobalsPINVOKE.CFxDeviceReactor_RegenStarted(swigCPtr);
86 }
87
88 public virtual void RegenFinished() {
89 if (SwigDerivedClassHasMethod("RegenFinished", swigMethodTypes7)) PCADGlobalsPINVOKE.CFxDeviceReactor_RegenFinishedSwigExplicitCFxDeviceReactor(swigCPtr); else PCADGlobalsPINVOKE.CFxDeviceReactor_RegenFinished(swigCPtr);
91 }
92
93 public virtual void UpdateStarted() {
94 if (SwigDerivedClassHasMethod("UpdateStarted", swigMethodTypes8)) PCADGlobalsPINVOKE.CFxDeviceReactor_UpdateStartedSwigExplicitCFxDeviceReactor(swigCPtr); else PCADGlobalsPINVOKE.CFxDeviceReactor_UpdateStarted(swigCPtr);
96 }
97
98 public virtual void UpdateFinished() {
99 if (SwigDerivedClassHasMethod("UpdateFinished", swigMethodTypes9)) PCADGlobalsPINVOKE.CFxDeviceReactor_UpdateFinishedSwigExplicitCFxDeviceReactor(swigCPtr); else PCADGlobalsPINVOKE.CFxDeviceReactor_UpdateFinished(swigCPtr);
101 }
102
103 public virtual void ViewModified(CFxView pView) {
104 if (SwigDerivedClassHasMethod("ViewModified", swigMethodTypes10)) PCADGlobalsPINVOKE.CFxDeviceReactor_ViewModifiedSwigExplicitCFxDeviceReactor(swigCPtr, CFxView.getCPtr(pView)); else PCADGlobalsPINVOKE.CFxDeviceReactor_ViewModified(swigCPtr, CFxView.getCPtr(pView));
106 }
107
108 public virtual void SizeChanged(int iOverallWidth, int iOverallHeight) {
109 if (SwigDerivedClassHasMethod("SizeChanged", swigMethodTypes11)) PCADGlobalsPINVOKE.CFxDeviceReactor_SizeChangedSwigExplicitCFxDeviceReactor(swigCPtr, iOverallWidth, iOverallHeight); else PCADGlobalsPINVOKE.CFxDeviceReactor_SizeChanged(swigCPtr, iOverallWidth, iOverallHeight);
111 }
112
113 public CFxDeviceReactor() : this(PCADGlobalsPINVOKE.new_CFxDeviceReactor(), true) {
115 SwigDirectorConnect();
116 DelegateHolder.OnHoldSwigDirectorDelegates(this);
117 if(this is OdRxObject)
118 {
119 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
120 if (null != mTr)
121 {
122 mTr.AddObject(new CFxDeviceReactor(swigCPtr.Handle, true));
123 this.swigCMemOwn = false;
124 }
125}
126 }
127
128 private void SwigDirectorConnect() {
129 if (SwigDerivedClassHasMethod("ViewCreated", swigMethodTypes0))
130 swigDelegate0 = new SwigDelegateCFxDeviceReactor_0(SwigDirectorMethodViewCreated);
131 if (SwigDerivedClassHasMethod("ViewAdded", swigMethodTypes1))
132 swigDelegate1 = new SwigDelegateCFxDeviceReactor_1(SwigDirectorMethodViewAdded);
133 if (SwigDerivedClassHasMethod("ViewRemoved", swigMethodTypes2))
134 swigDelegate2 = new SwigDelegateCFxDeviceReactor_2(SwigDirectorMethodViewRemoved);
135 if (SwigDerivedClassHasMethod("ViewDestroyed", swigMethodTypes3))
136 swigDelegate3 = new SwigDelegateCFxDeviceReactor_3(SwigDirectorMethodViewDestroyed);
137 if (SwigDerivedClassHasMethod("RedrawStarted", swigMethodTypes4))
138 swigDelegate4 = new SwigDelegateCFxDeviceReactor_4(SwigDirectorMethodRedrawStarted);
139 if (SwigDerivedClassHasMethod("RedrawFinished", swigMethodTypes5))
140 swigDelegate5 = new SwigDelegateCFxDeviceReactor_5(SwigDirectorMethodRedrawFinished);
141 if (SwigDerivedClassHasMethod("RegenStarted", swigMethodTypes6))
142 swigDelegate6 = new SwigDelegateCFxDeviceReactor_6(SwigDirectorMethodRegenStarted);
143 if (SwigDerivedClassHasMethod("RegenFinished", swigMethodTypes7))
144 swigDelegate7 = new SwigDelegateCFxDeviceReactor_7(SwigDirectorMethodRegenFinished);
145 if (SwigDerivedClassHasMethod("UpdateStarted", swigMethodTypes8))
146 swigDelegate8 = new SwigDelegateCFxDeviceReactor_8(SwigDirectorMethodUpdateStarted);
147 if (SwigDerivedClassHasMethod("UpdateFinished", swigMethodTypes9))
148 swigDelegate9 = new SwigDelegateCFxDeviceReactor_9(SwigDirectorMethodUpdateFinished);
149 if (SwigDerivedClassHasMethod("ViewModified", swigMethodTypes10))
150 swigDelegate10 = new SwigDelegateCFxDeviceReactor_10(SwigDirectorMethodViewModified);
151 if (SwigDerivedClassHasMethod("SizeChanged", swigMethodTypes11))
152 swigDelegate11 = new SwigDelegateCFxDeviceReactor_11(SwigDirectorMethodSizeChanged);
153 PCADGlobalsPINVOKE.CFxDeviceReactor_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11);
154 }
155
156 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
157 global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance, null, methodTypes, null);
158 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(CFxDeviceReactor));
159 return hasDerivedMethod;
160 }
161
162 private void SwigDirectorMethodViewCreated(global::System.IntPtr pView) {
163 ViewCreated((pView == global::System.IntPtr.Zero) ? null : new CFxView(pView, false));
164 }
165
166 private void SwigDirectorMethodViewAdded(global::System.IntPtr pView) {
167 ViewAdded((pView == global::System.IntPtr.Zero) ? null : new CFxView(pView, false));
168 }
169
170 private void SwigDirectorMethodViewRemoved(global::System.IntPtr pView) {
171 ViewRemoved((pView == global::System.IntPtr.Zero) ? null : new CFxView(pView, false));
172 }
173
174 private void SwigDirectorMethodViewDestroyed(global::System.IntPtr pView) {
175 ViewDestroyed((pView == global::System.IntPtr.Zero) ? null : new CFxView(pView, false));
176 }
177
178 private void SwigDirectorMethodRedrawStarted() {
180 }
181
182 private void SwigDirectorMethodRedrawFinished() {
184 }
185
186 private void SwigDirectorMethodRegenStarted() {
187 RegenStarted();
188 }
189
190 private void SwigDirectorMethodRegenFinished() {
192 }
193
194 private void SwigDirectorMethodUpdateStarted() {
196 }
197
198 private void SwigDirectorMethodUpdateFinished() {
200 }
201
202 private void SwigDirectorMethodViewModified(global::System.IntPtr pView) {
203 ViewModified((pView == global::System.IntPtr.Zero) ? null : new CFxView(pView, false));
204 }
205
206 private void SwigDirectorMethodSizeChanged(int iOverallWidth, int iOverallHeight) {
207 SizeChanged(iOverallWidth, iOverallHeight);
208 }
209
210 public delegate void SwigDelegateCFxDeviceReactor_0(global::System.IntPtr pView);
211 public delegate void SwigDelegateCFxDeviceReactor_1(global::System.IntPtr pView);
212 public delegate void SwigDelegateCFxDeviceReactor_2(global::System.IntPtr pView);
213 public delegate void SwigDelegateCFxDeviceReactor_3(global::System.IntPtr pView);
214 public delegate void SwigDelegateCFxDeviceReactor_4();
215 public delegate void SwigDelegateCFxDeviceReactor_5();
216 public delegate void SwigDelegateCFxDeviceReactor_6();
217 public delegate void SwigDelegateCFxDeviceReactor_7();
218 public delegate void SwigDelegateCFxDeviceReactor_8();
219 public delegate void SwigDelegateCFxDeviceReactor_9();
220 public delegate void SwigDelegateCFxDeviceReactor_10(global::System.IntPtr pView);
221 public delegate void SwigDelegateCFxDeviceReactor_11(int iOverallWidth, int iOverallHeight);
222
223 private SwigDelegateCFxDeviceReactor_0 swigDelegate0;
224 private SwigDelegateCFxDeviceReactor_1 swigDelegate1;
225 private SwigDelegateCFxDeviceReactor_2 swigDelegate2;
226 private SwigDelegateCFxDeviceReactor_3 swigDelegate3;
227 private SwigDelegateCFxDeviceReactor_4 swigDelegate4;
228 private SwigDelegateCFxDeviceReactor_5 swigDelegate5;
229 private SwigDelegateCFxDeviceReactor_6 swigDelegate6;
230 private SwigDelegateCFxDeviceReactor_7 swigDelegate7;
231 private SwigDelegateCFxDeviceReactor_8 swigDelegate8;
232 private SwigDelegateCFxDeviceReactor_9 swigDelegate9;
233 private SwigDelegateCFxDeviceReactor_10 swigDelegate10;
234 private SwigDelegateCFxDeviceReactor_11 swigDelegate11;
235
236 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(CFxView) };
237 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { typeof(CFxView) };
238 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(CFxView) };
239 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { typeof(CFxView) };
240 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
241 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { };
242 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { };
243 private static global::System.Type[] swigMethodTypes7 = new global::System.Type[] { };
244 private static global::System.Type[] swigMethodTypes8 = new global::System.Type[] { };
245 private static global::System.Type[] swigMethodTypes9 = new global::System.Type[] { };
246 private static global::System.Type[] swigMethodTypes10 = new global::System.Type[] { typeof(CFxView) };
247 private static global::System.Type[] swigMethodTypes11 = new global::System.Type[] { typeof(int), typeof(int) };
248}
249
250}
delegate void SwigDelegateCFxDeviceReactor_8()
virtual void ViewRemoved(CFxView pView)
delegate void SwigDelegateCFxDeviceReactor_2(global::System.IntPtr pView)
delegate void SwigDelegateCFxDeviceReactor_0(global::System.IntPtr pView)
virtual void ViewModified(CFxView pView)
virtual void ViewDestroyed(CFxView pView)
delegate void SwigDelegateCFxDeviceReactor_9()
delegate void SwigDelegateCFxDeviceReactor_7()
CFxDeviceReactor(IntPtr cPtr, bool cMemoryOwn)
delegate void SwigDelegateCFxDeviceReactor_6()
virtual void ViewCreated(CFxView pView)
static HandleRef getCPtr(CFxDeviceReactor obj)
virtual void Dispose(bool disposing)
virtual void ViewAdded(CFxView pView)
delegate void SwigDelegateCFxDeviceReactor_10(global::System.IntPtr pView)
delegate void SwigDelegateCFxDeviceReactor_5()
virtual void SizeChanged(int iOverallWidth, int iOverallHeight)
delegate void SwigDelegateCFxDeviceReactor_3(global::System.IntPtr pView)
delegate void SwigDelegateCFxDeviceReactor_4()
delegate void SwigDelegateCFxDeviceReactor_11(int iOverallWidth, int iOverallHeight)
delegate void SwigDelegateCFxDeviceReactor_1(global::System.IntPtr pView)
static HandleRef getCPtr(CFxView obj)
Definition CFxView.cs:27
static void CFxDeviceReactor_RegenFinishedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_ViewCreated(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_ViewModifiedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_ViewRemovedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_ViewAdded(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_ViewDestroyed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_CFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_RegenStartedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_ViewAddedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_RedrawFinished(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_RegenFinished(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_UpdateFinishedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_UpdateStarted(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_SizeChanged(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void CFxDeviceReactor_ViewDestroyedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_ViewModified(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_SizeChangedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3)
static void CFxDeviceReactor_RedrawFinishedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_RegenStarted(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_RedrawStarted(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_RedrawStartedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_UpdateFinished(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDeviceReactor_ViewRemoved(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_ViewCreatedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDeviceReactor_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_0 delegate0, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_1 delegate1, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_2 delegate2, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_3 delegate3, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_4 delegate4, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_5 delegate5, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_6 delegate6, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_7 delegate7, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_8 delegate8, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_9 delegate9, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_10 delegate10, CFxDeviceReactor.SwigDelegateCFxDeviceReactor_11 delegate11)
static void CFxDeviceReactor_UpdateStartedSwigExplicitCFxDeviceReactor(global::System.Runtime.InteropServices.HandleRef jarg1)