Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CFxViewReactor.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 CFxViewReactor : 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 CFxViewReactor(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(CFxViewReactor 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 OnWorldToEyeChanged(CFxView pView) {
54 if (SwigDerivedClassHasMethod("OnWorldToEyeChanged", swigMethodTypes0)) PCADGlobalsPINVOKE.CFxViewReactor_OnWorldToEyeChangedSwigExplicitCFxViewReactor(swigCPtr, CFxView.getCPtr(pView)); else PCADGlobalsPINVOKE.CFxViewReactor_OnWorldToEyeChanged(swigCPtr, CFxView.getCPtr(pView));
56 }
57
58 public CFxViewReactor() : this(PCADGlobalsPINVOKE.new_CFxViewReactor(), true) {
60 SwigDirectorConnect();
61 DelegateHolder.OnHoldSwigDirectorDelegates(this);
62 if(this is OdRxObject)
63 {
64 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
65 if (null != mTr)
66 {
67 mTr.AddObject(new CFxViewReactor(swigCPtr.Handle, true));
68 this.swigCMemOwn = false;
69 }
70}
71 }
72
73 private void SwigDirectorConnect() {
74 if (SwigDerivedClassHasMethod("OnWorldToEyeChanged", swigMethodTypes0))
75 swigDelegate0 = new SwigDelegateCFxViewReactor_0(SwigDirectorMethodOnWorldToEyeChanged);
77 }
78
79 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
80 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);
81 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(CFxViewReactor));
82 return hasDerivedMethod;
83 }
84
85 private void SwigDirectorMethodOnWorldToEyeChanged(global::System.IntPtr pView) {
86 OnWorldToEyeChanged((pView == global::System.IntPtr.Zero) ? null : new CFxView(pView, false));
87 }
88
89 public delegate void SwigDelegateCFxViewReactor_0(global::System.IntPtr pView);
90
91 private SwigDelegateCFxViewReactor_0 swigDelegate0;
92
93 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(CFxView) };
94 public enum ReactorEvent {
96 }
97
98}
99
100}
static HandleRef getCPtr(CFxView obj)
Definition CFxView.cs:27
delegate void SwigDelegateCFxViewReactor_0(global::System.IntPtr pView)
CFxViewReactor(IntPtr cPtr, bool cMemoryOwn)
virtual void OnWorldToEyeChanged(CFxView pView)
static HandleRef getCPtr(CFxViewReactor obj)
virtual void Dispose(bool disposing)
static void CFxViewReactor_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, CFxViewReactor.SwigDelegateCFxViewReactor_0 delegate0)
static void delete_CFxViewReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxViewReactor_OnWorldToEyeChanged(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxViewReactor_OnWorldToEyeChangedSwigExplicitCFxViewReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)