Extended .NET SDK Documentation 2024 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 }
62
63 private void SwigDirectorConnect() {
64 if (SwigDerivedClassHasMethod("OnWorldToEyeChanged", swigMethodTypes0))
65 swigDelegate0 = new SwigDelegateCFxViewReactor_0(SwigDirectorMethodOnWorldToEyeChanged);
67 }
68
69 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
70 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);
71 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(CFxViewReactor));
72 return hasDerivedMethod;
73 }
74
75 private void SwigDirectorMethodOnWorldToEyeChanged(global::System.IntPtr pView) {
76 OnWorldToEyeChanged((pView == global::System.IntPtr.Zero) ? null : new CFxView(pView, false));
77 }
78
79 public delegate void SwigDelegateCFxViewReactor_0(global::System.IntPtr pView);
80
81 private SwigDelegateCFxViewReactor_0 swigDelegate0;
82
83 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(CFxView) };
84 public enum ReactorEvent {
86 }
87
88}
89
90}
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)