Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CFxModule.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 CFxModule : OdRxModule {
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public CFxModule(IntPtr cPtr, bool cMemoryOwn) : base(PCADGlobalsPINVOKE.CFxModule_SWIGUpcast(cPtr), cMemoryOwn) {
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(CFxModule 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
49
50 public new static OdRxClass desc() {
51 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),PCADGlobalsPINVOKE.CFxModule_desc(),false); /*createInt 3_2*/
52
54 return ret;
55}
56
57 public override OdRxClass isA() {
58 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),(SwigDerivedClassHasMethod("isA", swigMethodTypes1) ? PCADGlobalsPINVOKE.CFxModule_isASwigExplicitCFxModule(swigCPtr) : PCADGlobalsPINVOKE.CFxModule_isA(swigCPtr)),false); /*createInt 3_2*/
59
61 return ret;
62}
63
64 public override OdRxObject queryX(OdRxClass protocolClass) {
65 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),(SwigDerivedClassHasMethod("queryX", swigMethodTypes0) ? PCADGlobalsPINVOKE.CFxModule_queryXSwigExplicitCFxModule(swigCPtr, OdRxClass.getCPtr(protocolClass)) : PCADGlobalsPINVOKE.CFxModule_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass))),false); /*createInt 3_2*/
66
68 return ret;
69}
70
76
77 public class CFxEventData : global::System.IDisposable {
78 private Object locker = new Object();
79 private HandleRef swigCPtr;
80 protected bool swigCMemOwn;
81 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
82 public CFxEventData(IntPtr cPtr, bool cMemoryOwn) {
83 swigCMemOwn = cMemoryOwn;
84 swigCPtr = new HandleRef(this, cPtr);
85 }
86 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
87 public static HandleRef getCPtr(CFxEventData obj) {
88 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
89 }
90
92 Dispose(false);
93 }
94
95 public void Dispose() {
96 Dispose(true);
97 global::System.GC.SuppressFinalize(this);
98 }
99
100 protected virtual void Dispose(bool disposing) {
101 lock(this) {
102 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
103 if (swigCMemOwn) {
104 swigCMemOwn = false;
105 PCADGlobalsPINVOKE.delete_CFxModule_CFxEventData(swigCPtr); // NESTED_DTOR_CSHARP
106 }
107 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
108 }
109 }
110 }
111
112 public CFxEventData(CFxDatabase pDatabase, int defunCode) : this(PCADGlobalsPINVOKE.new_CFxModule_CFxEventData__SWIG_0(CFxDatabase.getCPtr(pDatabase), defunCode), true) {
114 }
115
116 public CFxEventData(CFxDatabase pDatabase) : this(PCADGlobalsPINVOKE.new_CFxModule_CFxEventData__SWIG_1(CFxDatabase.getCPtr(pDatabase)), true) {
118 }
119
120 public CFxEventData() : this(PCADGlobalsPINVOKE.new_CFxModule_CFxEventData__SWIG_2(), true) {
122 }
123
125 set {
128 }
129 get {
130 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxModule_CFxEventData_m_pDatabase_get(swigCPtr);
131 CFxDatabase ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDatabase(cPtr, false);
133 return ret;
134 }
135 }
136
148
149 }
150
156
157 public virtual int event_(CFxModule.ModuleEvent e) {
158 int ret = PCADGlobalsPINVOKE.CFxModule_event___SWIG_1(swigCPtr, (int)e);
160 return ret;
161 }
162
163 public CFxModule() : this(PCADGlobalsPINVOKE.new_CFxModule(), true) {
165 SwigDirectorConnect();
166 DelegateHolder.OnHoldSwigDirectorDelegates(this);
167 if(this is OdRxObject)
168 {
169 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
170 if (null != mTr)
171 {
172 mTr.AddObject(new CFxModule(swigCPtr.Handle, true));
173 this.swigCMemOwn = false;
174 }
175}
176 }
177
178 private void SwigDirectorConnect() {
179 if (SwigDerivedClassHasMethod("queryX", swigMethodTypes0))
180 swigDelegate0 = new SwigDelegateCFxModule_0(SwigDirectorMethodqueryX);
181 if (SwigDerivedClassHasMethod("isA", swigMethodTypes1))
182 swigDelegate1 = new SwigDelegateCFxModule_1(SwigDirectorMethodisA);
183 if (SwigDerivedClassHasMethod("copyFrom", swigMethodTypes2))
184 swigDelegate2 = new SwigDelegateCFxModule_2(SwigDirectorMethodcopyFrom);
185 if (SwigDerivedClassHasMethod("sysData", swigMethodTypes3))
186 swigDelegate3 = new SwigDelegateCFxModule_3(SwigDirectorMethodsysData);
187 if (SwigDerivedClassHasMethod("deleteModule", swigMethodTypes4))
188 swigDelegate4 = new SwigDelegateCFxModule_4(SwigDirectorMethoddeleteModule);
189 if (SwigDerivedClassHasMethod("initApp", swigMethodTypes5))
190 swigDelegate5 = new SwigDelegateCFxModule_5(SwigDirectorMethodinitApp);
191 if (SwigDerivedClassHasMethod("uninitApp", swigMethodTypes6))
192 swigDelegate6 = new SwigDelegateCFxModule_6(SwigDirectorMethoduninitApp);
193 if (SwigDerivedClassHasMethod("moduleName", swigMethodTypes7))
194 swigDelegate7 = new SwigDelegateCFxModule_7(SwigDirectorMethodmoduleName);
195 if (SwigDerivedClassHasMethod("event_", swigMethodTypes8))
196 swigDelegate8 = new SwigDelegateCFxModule_8(SwigDirectorMethodevent___SWIG_0);
197 if (SwigDerivedClassHasMethod("event_", swigMethodTypes9))
198 swigDelegate9 = new SwigDelegateCFxModule_9(SwigDirectorMethodevent___SWIG_1);
199 PCADGlobalsPINVOKE.CFxModule_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9);
200 }
201
202 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
203 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);
204 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(CFxModule));
205 return hasDerivedMethod;
206 }
207
208 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
209 return
210 // csdirectorout for OdRxObject*, OdRxObject&
212 (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,false) /*createInt 6_2*/ // csdirectorin for smart pointer
213)).Handle
214;
215 }
216
217 private IntPtr SwigDirectorMethodisA() {
218 return
219 // csdirectorout for OdRxClass*, OdRxClass&
220 OdRxClass.getCPtr(isA()).Handle
221;
222 }
223
224 private void SwigDirectorMethodcopyFrom(IntPtr pSource) {
225 copyFrom(
226 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),pSource,false) /*createInt 6_2*/ // csdirectorin for smart pointer
227);
228 }
229
230 private IntPtr /*SIMPLETYPE*/ SwigDirectorMethodsysData() {
231 return sysData() /*SIMPLETYPE*/;
232 }
233
234 private void SwigDirectorMethoddeleteModule() {
235 deleteModule();
236 }
237
238 private void SwigDirectorMethodinitApp() {
239 initApp();
240 }
241
242 private void SwigDirectorMethoduninitApp() {
243 uninitApp();
244 }
245
246 [return: MarshalAs(UnmanagedType.LPWStr)]
247 private String SwigDirectorMethodmoduleName() {
248 return moduleName();
249 }
250
251 private int SwigDirectorMethodevent___SWIG_0(int e, global::System.IntPtr pData) {
252 return event_((CFxModule.ModuleEvent)e, (pData == global::System.IntPtr.Zero) ? null : new CFxModule.CFxEventData(pData, false));
253 }
254
255 private int SwigDirectorMethodevent___SWIG_1(int e) {
256 return event_((CFxModule.ModuleEvent)e);
257 }
258
259 public delegate IntPtr SwigDelegateCFxModule_0(IntPtr protocolClass);
260 public delegate IntPtr SwigDelegateCFxModule_1();
261 public delegate void SwigDelegateCFxModule_2(IntPtr pSource);
262 public delegate IntPtr /*SIMPLETYPE*/ SwigDelegateCFxModule_3();
263 public delegate void SwigDelegateCFxModule_4();
264 public delegate void SwigDelegateCFxModule_5();
265 public delegate void SwigDelegateCFxModule_6();
266 [return: MarshalAs(UnmanagedType.LPWStr)]
268 public delegate int SwigDelegateCFxModule_8(int e, global::System.IntPtr pData);
269 public delegate int SwigDelegateCFxModule_9(int e);
270
271 private SwigDelegateCFxModule_0 swigDelegate0;
272 private SwigDelegateCFxModule_1 swigDelegate1;
273 private SwigDelegateCFxModule_2 swigDelegate2;
274 private SwigDelegateCFxModule_3 swigDelegate3;
275 private SwigDelegateCFxModule_4 swigDelegate4;
276 private SwigDelegateCFxModule_5 swigDelegate5;
277 private SwigDelegateCFxModule_6 swigDelegate6;
278 private SwigDelegateCFxModule_7 swigDelegate7;
279 private SwigDelegateCFxModule_8 swigDelegate8;
280 private SwigDelegateCFxModule_9 swigDelegate9;
281
282 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdRxClass) };
283 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
284 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(OdRxObject) };
285 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { };
286 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
287 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { };
288 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { };
289 private static global::System.Type[] swigMethodTypes7 = new global::System.Type[] { };
290 private static global::System.Type[] swigMethodTypes8 = new global::System.Type[] { typeof(CFxModule.ModuleEvent), typeof(CFxModule.CFxEventData) };
291 private static global::System.Type[] swigMethodTypes9 = new global::System.Type[] { typeof(CFxModule.ModuleEvent) };
292 public enum ModuleEvent {
293 kNone = 0,
294 kInitApp = 1,
295 kUnloadApp = 2,
296 kLoadDwg = 3,
297 kUnloadDwg = 4,
298 kInvkSubr = 5,
299 kCfg = 6,
300 kEnd = 7,
301 kQuit = 8,
302 kSave = 9,
303 kDependency = 10,
304 kNoDependency = 11,
305 kOleUnloadApp = 12,
306 kPreQuit = 13,
307 kInitDialog = 14,
308 kEndDialog = 15,
309 kSuspend = 16
310 }
311
312}
313
314}
static HandleRef getCPtr(CFxDatabase obj)
CFxEventData(CFxDatabase pDatabase, int defunCode)
Definition CFxModule.cs:112
static HandleRef getCPtr(CFxEventData obj)
Definition CFxModule.cs:87
CFxEventData(CFxDatabase pDatabase)
Definition CFxModule.cs:116
CFxEventData(IntPtr cPtr, bool cMemoryOwn)
Definition CFxModule.cs:82
virtual void Dispose(bool disposing)
Definition CFxModule.cs:100
delegate int SwigDelegateCFxModule_8(int e, global::System.IntPtr pData)
static SWIGTYPE_p_OdSmartPtrT_CFxModule_t createObject()
Definition CFxModule.cs:71
static SWIGTYPE_p_OdSmartPtrT_CFxModule_t cast(OdRxObject pObj)
Definition CFxModule.cs:44
static HandleRef getCPtr(CFxModule obj)
Definition CFxModule.cs:27
delegate void SwigDelegateCFxModule_6()
delegate IntPtr SwigDelegateCFxModule_0(IntPtr protocolClass)
delegate IntPtr SwigDelegateCFxModule_1()
override OdRxClass isA()
Definition CFxModule.cs:57
virtual int event_(CFxModule.ModuleEvent e)
Definition CFxModule.cs:157
delegate int SwigDelegateCFxModule_9(int e)
CFxModule(IntPtr cPtr, bool cMemoryOwn)
Definition CFxModule.cs:22
delegate void SwigDelegateCFxModule_5()
virtual int event_(CFxModule.ModuleEvent e, CFxModule.CFxEventData pData)
Definition CFxModule.cs:151
static new OdRxClass desc()
Definition CFxModule.cs:50
override OdRxObject queryX(OdRxClass protocolClass)
Definition CFxModule.cs:64
delegate IntPtr SwigDelegateCFxModule_3()
delegate void SwigDelegateCFxModule_2(IntPtr pSource)
override void Dispose(bool disposing)
Definition CFxModule.cs:31
delegate void SwigDelegateCFxModule_4()
delegate String SwigDelegateCFxModule_7()
static int CFxModule_event___SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static IntPtr CFxModule_queryX(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void delete_CFxModule(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxModule_CFxEventData_m_pDatabase_set(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static global::System.IntPtr CFxModule_cast(HandleRef jarg1)
static void CFxModule_CFxEventData_m_DefunCode_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static IntPtr CFxModule_CFxEventData_m_pDatabase_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_CFxModule_CFxEventData(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxModule_CFxEventData_m_DefunCode_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxModule_createObject()
static IntPtr CFxModule_isA(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr CFxModule_isASwigExplicitCFxModule(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr CFxModule_queryXSwigExplicitCFxModule(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static int CFxModule_event___SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void CFxModule_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, CFxModule.SwigDelegateCFxModule_0 delegate0, CFxModule.SwigDelegateCFxModule_1 delegate1, CFxModule.SwigDelegateCFxModule_2 delegate2, CFxModule.SwigDelegateCFxModule_3 delegate3, CFxModule.SwigDelegateCFxModule_4 delegate4, CFxModule.SwigDelegateCFxModule_5 delegate5, CFxModule.SwigDelegateCFxModule_6 delegate6, CFxModule.SwigDelegateCFxModule_7 delegate7, CFxModule.SwigDelegateCFxModule_8 delegate8, CFxModule.SwigDelegateCFxModule_9 delegate9)
static HandleRef getCPtr(OdRxClass obj)
Definition OdRxClass.cs:25
virtual IntPtr sysData()
virtual String moduleName()
virtual void initApp()
virtual void uninitApp()
virtual void deleteModule()
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition OdRxObject.cs:21
virtual void copyFrom(OdRxObject pSource)
static HandleRef getCPtr(OdRxObject obj)
Definition OdRxObject.cs:26