Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxTracker.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 CFxTracker : 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 CFxTracker(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(CFxTracker obj) {
29 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30 }
31
32 ~CFxTracker() {
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 CFxTracker() : this(PCADGlobalsPINVOKE.new_CFxTracker(), true) {
55 SwigDirectorConnect();
56 }
57
58 public virtual void Update(CFxTrackerContext pContext, CFxHitTestInfo pHitTestInfo) {
61 }
62
63 public virtual void DrawTracker(CFxTrackerContext pContext, CFxHitTestInfo pHitTestInfo) {
66 }
67
68 public virtual void DrawDDTracker(CFxTrackerContext pContext, CFxHitTestInfo pHitTestInfo) {
69 if (SwigDerivedClassHasMethod("DrawDDTracker", swigMethodTypes2)) PCADGlobalsPINVOKE.CFxTracker_DrawDDTrackerSwigExplicitCFxTracker(swigCPtr, CFxTrackerContext.getCPtr(pContext), CFxHitTestInfo.getCPtr(pHitTestInfo)); else PCADGlobalsPINVOKE.CFxTracker_DrawDDTracker(swigCPtr, CFxTrackerContext.getCPtr(pContext), CFxHitTestInfo.getCPtr(pHitTestInfo));
71 }
72
73 public virtual bool CheckRegenAbort(CFxInputPointManager pInputManager) {
74 bool ret = (SwigDerivedClassHasMethod("CheckRegenAbort", swigMethodTypes3) ? PCADGlobalsPINVOKE.CFxTracker_CheckRegenAbortSwigExplicitCFxTracker(swigCPtr, CFxInputPointManager.getCPtr(pInputManager)) : PCADGlobalsPINVOKE.CFxTracker_CheckRegenAbort(swigCPtr, CFxInputPointManager.getCPtr(pInputManager)));
76 return ret;
77 }
78
79 public virtual CFxString GetName() {
80 CFxString ret = new CFxString((SwigDerivedClassHasMethod("GetName", swigMethodTypes4) ? PCADGlobalsPINVOKE.CFxTracker_GetNameSwigExplicitCFxTracker(swigCPtr) : PCADGlobalsPINVOKE.CFxTracker_GetName(swigCPtr)), false);
82 return ret;
83 }
84
85 public virtual bool IsEager(CFxHitTestInfo pHitTestInfo) {
86 bool ret = (SwigDerivedClassHasMethod("IsEager", swigMethodTypes5) ? PCADGlobalsPINVOKE.CFxTracker_IsEagerSwigExplicitCFxTracker(swigCPtr, CFxHitTestInfo.getCPtr(pHitTestInfo)) : PCADGlobalsPINVOKE.CFxTracker_IsEager(swigCPtr, CFxHitTestInfo.getCPtr(pHitTestInfo)));
88 return ret;
89 }
90
91 public virtual bool DoAction(CFxHitTestInfo pHitTestInfo) {
92 bool ret = (SwigDerivedClassHasMethod("DoAction", swigMethodTypes6) ? PCADGlobalsPINVOKE.CFxTracker_DoActionSwigExplicitCFxTracker(swigCPtr, CFxHitTestInfo.getCPtr(pHitTestInfo)) : PCADGlobalsPINVOKE.CFxTracker_DoAction(swigCPtr, CFxHitTestInfo.getCPtr(pHitTestInfo)));
94 return ret;
95 }
96
97 public virtual void OnMainSelectionSetChanged(CFxHitTestInfo pHitTestInfo) {
98 if (SwigDerivedClassHasMethod("OnMainSelectionSetChanged", swigMethodTypes7)) PCADGlobalsPINVOKE.CFxTracker_OnMainSelectionSetChangedSwigExplicitCFxTracker(swigCPtr, CFxHitTestInfo.getCPtr(pHitTestInfo)); else PCADGlobalsPINVOKE.CFxTracker_OnMainSelectionSetChanged(swigCPtr, CFxHitTestInfo.getCPtr(pHitTestInfo));
100 }
101
102 public bool m_bAdded {
103 set {
106 }
107 get {
108 bool ret = PCADGlobalsPINVOKE.CFxTracker_m_bAdded_get(swigCPtr);
110 return ret;
111 }
112 }
113
114 private void SwigDirectorConnect() {
115 if (SwigDerivedClassHasMethod("Update", swigMethodTypes0))
116 swigDelegate0 = new SwigDelegateCFxTracker_0(SwigDirectorMethodUpdate);
117 if (SwigDerivedClassHasMethod("DrawTracker", swigMethodTypes1))
118 swigDelegate1 = new SwigDelegateCFxTracker_1(SwigDirectorMethodDrawTracker);
119 if (SwigDerivedClassHasMethod("DrawDDTracker", swigMethodTypes2))
120 swigDelegate2 = new SwigDelegateCFxTracker_2(SwigDirectorMethodDrawDDTracker);
121 if (SwigDerivedClassHasMethod("CheckRegenAbort", swigMethodTypes3))
122 swigDelegate3 = new SwigDelegateCFxTracker_3(SwigDirectorMethodCheckRegenAbort);
123 if (SwigDerivedClassHasMethod("GetName", swigMethodTypes4))
124 swigDelegate4 = new SwigDelegateCFxTracker_4(SwigDirectorMethodGetName);
125 if (SwigDerivedClassHasMethod("IsEager", swigMethodTypes5))
126 swigDelegate5 = new SwigDelegateCFxTracker_5(SwigDirectorMethodIsEager);
127 if (SwigDerivedClassHasMethod("DoAction", swigMethodTypes6))
128 swigDelegate6 = new SwigDelegateCFxTracker_6(SwigDirectorMethodDoAction);
129 if (SwigDerivedClassHasMethod("OnMainSelectionSetChanged", swigMethodTypes7))
130 swigDelegate7 = new SwigDelegateCFxTracker_7(SwigDirectorMethodOnMainSelectionSetChanged);
131 PCADGlobalsPINVOKE.CFxTracker_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7);
132 }
133
134 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
135 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);
136 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(CFxTracker));
137 return hasDerivedMethod;
138 }
139
140 private void SwigDirectorMethodUpdate(global::System.IntPtr pContext, global::System.IntPtr pHitTestInfo) {
141 Update((pContext == global::System.IntPtr.Zero) ? null : new CFxTrackerContext(pContext, false), (pHitTestInfo == global::System.IntPtr.Zero) ? null : new CFxHitTestInfo(pHitTestInfo, false));
142 }
143
144 private void SwigDirectorMethodDrawTracker(global::System.IntPtr pContext, global::System.IntPtr pHitTestInfo) {
145 DrawTracker((pContext == global::System.IntPtr.Zero) ? null : new CFxTrackerContext(pContext, false), (pHitTestInfo == global::System.IntPtr.Zero) ? null : new CFxHitTestInfo(pHitTestInfo, false));
146 }
147
148 private void SwigDirectorMethodDrawDDTracker(global::System.IntPtr pContext, global::System.IntPtr pHitTestInfo) {
149 DrawDDTracker((pContext == global::System.IntPtr.Zero) ? null : new CFxTrackerContext(pContext, false), (pHitTestInfo == global::System.IntPtr.Zero) ? null : new CFxHitTestInfo(pHitTestInfo, false));
150 }
151
152 private bool SwigDirectorMethodCheckRegenAbort(global::System.IntPtr pInputManager) {
153 return CheckRegenAbort((pInputManager == global::System.IntPtr.Zero) ? null : new CFxInputPointManager(pInputManager, false));
154 }
155
156 private global::System.IntPtr SwigDirectorMethodGetName() {
157 return CFxString.getCPtr(GetName()).Handle;
158 }
159
160 private bool SwigDirectorMethodIsEager(global::System.IntPtr pHitTestInfo) {
161 return IsEager((pHitTestInfo == global::System.IntPtr.Zero) ? null : new CFxHitTestInfo(pHitTestInfo, false));
162 }
163
164 private bool SwigDirectorMethodDoAction(global::System.IntPtr pHitTestInfo) {
165 return DoAction((pHitTestInfo == global::System.IntPtr.Zero) ? null : new CFxHitTestInfo(pHitTestInfo, false));
166 }
167
168 private void SwigDirectorMethodOnMainSelectionSetChanged(global::System.IntPtr pHitTestInfo) {
169 OnMainSelectionSetChanged((pHitTestInfo == global::System.IntPtr.Zero) ? null : new CFxHitTestInfo(pHitTestInfo, false));
170 }
171
172 public delegate void SwigDelegateCFxTracker_0(global::System.IntPtr pContext, global::System.IntPtr pHitTestInfo);
173 public delegate void SwigDelegateCFxTracker_1(global::System.IntPtr pContext, global::System.IntPtr pHitTestInfo);
174 public delegate void SwigDelegateCFxTracker_2(global::System.IntPtr pContext, global::System.IntPtr pHitTestInfo);
175 public delegate bool SwigDelegateCFxTracker_3(global::System.IntPtr pInputManager);
176 public delegate global::System.IntPtr SwigDelegateCFxTracker_4();
177 public delegate bool SwigDelegateCFxTracker_5(global::System.IntPtr pHitTestInfo);
178 public delegate bool SwigDelegateCFxTracker_6(global::System.IntPtr pHitTestInfo);
179 public delegate void SwigDelegateCFxTracker_7(global::System.IntPtr pHitTestInfo);
180
181 private SwigDelegateCFxTracker_0 swigDelegate0;
182 private SwigDelegateCFxTracker_1 swigDelegate1;
183 private SwigDelegateCFxTracker_2 swigDelegate2;
184 private SwigDelegateCFxTracker_3 swigDelegate3;
185 private SwigDelegateCFxTracker_4 swigDelegate4;
186 private SwigDelegateCFxTracker_5 swigDelegate5;
187 private SwigDelegateCFxTracker_6 swigDelegate6;
188 private SwigDelegateCFxTracker_7 swigDelegate7;
189
190 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(CFxTrackerContext), typeof(CFxHitTestInfo) };
191 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { typeof(CFxTrackerContext), typeof(CFxHitTestInfo) };
192 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(CFxTrackerContext), typeof(CFxHitTestInfo) };
193 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { typeof(CFxInputPointManager) };
194 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
195 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { typeof(CFxHitTestInfo) };
196 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { typeof(CFxHitTestInfo) };
197 private static global::System.Type[] swigMethodTypes7 = new global::System.Type[] { typeof(CFxHitTestInfo) };
198}
199
200}
static HandleRef getCPtr(CFxHitTestInfo obj)
static HandleRef getCPtr(CFxInputPointManager obj)
static HandleRef getCPtr(CFxTrackerContext obj)
virtual bool DoAction(CFxHitTestInfo pHitTestInfo)
Definition: CFxTracker.cs:91
delegate global::System.IntPtr SwigDelegateCFxTracker_4()
CFxTracker(IntPtr cPtr, bool cMemoryOwn)
Definition: CFxTracker.cs:23
virtual void Update(CFxTrackerContext pContext, CFxHitTestInfo pHitTestInfo)
Definition: CFxTracker.cs:58
delegate bool SwigDelegateCFxTracker_6(global::System.IntPtr pHitTestInfo)
static HandleRef getCPtr(CFxTracker obj)
Definition: CFxTracker.cs:28
virtual CFxString GetName()
Definition: CFxTracker.cs:79
virtual void DrawDDTracker(CFxTrackerContext pContext, CFxHitTestInfo pHitTestInfo)
Definition: CFxTracker.cs:68
delegate bool SwigDelegateCFxTracker_5(global::System.IntPtr pHitTestInfo)
delegate void SwigDelegateCFxTracker_2(global::System.IntPtr pContext, global::System.IntPtr pHitTestInfo)
delegate void SwigDelegateCFxTracker_7(global::System.IntPtr pHitTestInfo)
virtual bool CheckRegenAbort(CFxInputPointManager pInputManager)
Definition: CFxTracker.cs:73
delegate void SwigDelegateCFxTracker_1(global::System.IntPtr pContext, global::System.IntPtr pHitTestInfo)
virtual void OnMainSelectionSetChanged(CFxHitTestInfo pHitTestInfo)
Definition: CFxTracker.cs:97
virtual bool IsEager(CFxHitTestInfo pHitTestInfo)
Definition: CFxTracker.cs:85
virtual void Dispose(bool disposing)
Definition: CFxTracker.cs:41
delegate void SwigDelegateCFxTracker_0(global::System.IntPtr pContext, global::System.IntPtr pHitTestInfo)
virtual void DrawTracker(CFxTrackerContext pContext, CFxHitTestInfo pHitTestInfo)
Definition: CFxTracker.cs:63
delegate bool SwigDelegateCFxTracker_3(global::System.IntPtr pInputManager)
static global::System.IntPtr CFxTracker_GetName(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxTracker_OnMainSelectionSetChangedSwigExplicitCFxTracker(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool CFxTracker_IsEagerSwigExplicitCFxTracker(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxTracker_DrawDDTrackerSwigExplicitCFxTracker(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void CFxTracker_Update(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void delete_CFxTracker(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxTracker_DrawDDTracker(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool CFxTracker_IsEager(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool CFxTracker_m_bAdded_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxTracker_DoActionSwigExplicitCFxTracker(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxTracker_GetNameSwigExplicitCFxTracker(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxTracker_DoAction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxTracker_OnMainSelectionSetChanged(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool CFxTracker_CheckRegenAbortSwigExplicitCFxTracker(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxTracker_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, CFxTracker.SwigDelegateCFxTracker_0 delegate0, CFxTracker.SwigDelegateCFxTracker_1 delegate1, CFxTracker.SwigDelegateCFxTracker_2 delegate2, CFxTracker.SwigDelegateCFxTracker_3 delegate3, CFxTracker.SwigDelegateCFxTracker_4 delegate4, CFxTracker.SwigDelegateCFxTracker_5 delegate5, CFxTracker.SwigDelegateCFxTracker_6 delegate6, CFxTracker.SwigDelegateCFxTracker_7 delegate7)
static void CFxTracker_DrawTracker(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void CFxTracker_m_bAdded_set(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool CFxTracker_CheckRegenAbort(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)