Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxSelectionSetReactor.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
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public CFxSelectionSetReactor(IntPtr cPtr, bool cMemoryOwn) : base(PCADGlobalsPINVOKE.CFxSelectionSetReactor_SWIGUpcast(cPtr), cMemoryOwn) {
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(CFxSelectionSetReactor 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
44 public CFxSelectionSetReactor() : this(PCADGlobalsPINVOKE.new_CFxSelectionSetReactor(), true) {
46 SwigDirectorConnect();
47 }
48
52 return ret;
53 }
54
55 public new static OdRxClass desc() {
56 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),PCADGlobalsPINVOKE.CFxSelectionSetReactor_desc(),false); /*createInt 3_2*/
57
59 return ret;
60}
61
62 public override OdRxClass isA() {
63 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),(SwigDerivedClassHasMethod("isA", swigMethodTypes1) ? PCADGlobalsPINVOKE.CFxSelectionSetReactor_isASwigExplicitCFxSelectionSetReactor(swigCPtr) : PCADGlobalsPINVOKE.CFxSelectionSetReactor_isA(swigCPtr)),false); /*createInt 3_2*/
64
66 return ret;
67}
68
69 public override OdRxObject queryX(OdRxClass protocolClass) {
70 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),(SwigDerivedClassHasMethod("queryX", swigMethodTypes0) ? PCADGlobalsPINVOKE.CFxSelectionSetReactor_queryXSwigExplicitCFxSelectionSetReactor(swigCPtr, OdRxClass.getCPtr(protocolClass)) : PCADGlobalsPINVOKE.CFxSelectionSetReactor_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass))),false); /*createInt 3_2*/
71
73 return ret;
74}
75
79 return ret;
80 }
81
82 public virtual void OnSelectionStarted(CFxSelectionData.SelectionMethod eMethod, OdGePoint3dArray pointsWCS, CFxView pView) {
83 if (SwigDerivedClassHasMethod("OnSelectionStarted", swigMethodTypes2)) PCADGlobalsPINVOKE.CFxSelectionSetReactor_OnSelectionStartedSwigExplicitCFxSelectionSetReactor__SWIG_0(swigCPtr, (int)eMethod, OdGePoint3dArray.getCPtr(pointsWCS), CFxView.getCPtr(pView)); else PCADGlobalsPINVOKE.CFxSelectionSetReactor_OnSelectionStarted__SWIG_0(swigCPtr, (int)eMethod, OdGePoint3dArray.getCPtr(pointsWCS), CFxView.getCPtr(pView));
85 }
86
87 public virtual void OnSelectionStarted(CFxSelectionData pData) {
90 }
91
92 public virtual void OnSelectionEnded() {
93 if (SwigDerivedClassHasMethod("OnSelectionEnded", swigMethodTypes4)) PCADGlobalsPINVOKE.CFxSelectionSetReactor_OnSelectionEndedSwigExplicitCFxSelectionSetReactor(swigCPtr); else PCADGlobalsPINVOKE.CFxSelectionSetReactor_OnSelectionEnded(swigCPtr);
95 }
96
97 public virtual void OnObjectAppended(OdDbObjectId id) {
100 }
101
102 public virtual void OnObjectRemoved(OdDbObjectId id) {
105 }
106
107 public virtual void OnObjectModified(OdDbObjectId id) {
110 }
111
112 public virtual void OnClearStarted() {
113 if (SwigDerivedClassHasMethod("OnClearStarted", swigMethodTypes8)) PCADGlobalsPINVOKE.CFxSelectionSetReactor_OnClearStartedSwigExplicitCFxSelectionSetReactor(swigCPtr); else PCADGlobalsPINVOKE.CFxSelectionSetReactor_OnClearStarted(swigCPtr);
115 }
116
117 public virtual void OnClearEnded() {
118 if (SwigDerivedClassHasMethod("OnClearEnded", swigMethodTypes9)) PCADGlobalsPINVOKE.CFxSelectionSetReactor_OnClearEndedSwigExplicitCFxSelectionSetReactor(swigCPtr); else PCADGlobalsPINVOKE.CFxSelectionSetReactor_OnClearEnded(swigCPtr);
120 }
121
122 private void SwigDirectorConnect() {
123 if (SwigDerivedClassHasMethod("queryX", swigMethodTypes0))
124 swigDelegate0 = new SwigDelegateCFxSelectionSetReactor_0(SwigDirectorMethodqueryX);
125 if (SwigDerivedClassHasMethod("isA", swigMethodTypes1))
126 swigDelegate1 = new SwigDelegateCFxSelectionSetReactor_1(SwigDirectorMethodisA);
127 if (SwigDerivedClassHasMethod("OnSelectionStarted", swigMethodTypes2))
128 swigDelegate2 = new SwigDelegateCFxSelectionSetReactor_2(SwigDirectorMethodOnSelectionStarted__SWIG_0);
129 if (SwigDerivedClassHasMethod("OnSelectionStarted", swigMethodTypes3))
130 swigDelegate3 = new SwigDelegateCFxSelectionSetReactor_3(SwigDirectorMethodOnSelectionStarted__SWIG_1);
131 if (SwigDerivedClassHasMethod("OnSelectionEnded", swigMethodTypes4))
132 swigDelegate4 = new SwigDelegateCFxSelectionSetReactor_4(SwigDirectorMethodOnSelectionEnded);
133 if (SwigDerivedClassHasMethod("OnObjectAppended", swigMethodTypes5))
134 swigDelegate5 = new SwigDelegateCFxSelectionSetReactor_5(SwigDirectorMethodOnObjectAppended);
135 if (SwigDerivedClassHasMethod("OnObjectRemoved", swigMethodTypes6))
136 swigDelegate6 = new SwigDelegateCFxSelectionSetReactor_6(SwigDirectorMethodOnObjectRemoved);
137 if (SwigDerivedClassHasMethod("OnObjectModified", swigMethodTypes7))
138 swigDelegate7 = new SwigDelegateCFxSelectionSetReactor_7(SwigDirectorMethodOnObjectModified);
139 if (SwigDerivedClassHasMethod("OnClearStarted", swigMethodTypes8))
140 swigDelegate8 = new SwigDelegateCFxSelectionSetReactor_8(SwigDirectorMethodOnClearStarted);
141 if (SwigDerivedClassHasMethod("OnClearEnded", swigMethodTypes9))
142 swigDelegate9 = new SwigDelegateCFxSelectionSetReactor_9(SwigDirectorMethodOnClearEnded);
143 PCADGlobalsPINVOKE.CFxSelectionSetReactor_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9);
144 }
145
146 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
147 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);
148 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(CFxSelectionSetReactor));
149 return hasDerivedMethod;
150 }
151
152 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
153 return
154 // csdirectorout for OdRxObject*, OdRxObject&
156 (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,false) /*createInt 6_2*/ // csdirectorin for smart pointer
157)).Handle
158;
159 }
160
161 private IntPtr SwigDirectorMethodisA() {
162 return
163 // csdirectorout for OdRxClass*, OdRxClass&
164 OdRxClass.getCPtr(isA()).Handle
165;
166 }
167
168 private void SwigDirectorMethodOnSelectionStarted__SWIG_0(int eMethod, global::System.IntPtr pointsWCS, global::System.IntPtr pView) {
169 OnSelectionStarted((CFxSelectionData.SelectionMethod)eMethod, new OdGePoint3dArray(pointsWCS, false), (pView == global::System.IntPtr.Zero) ? null : new CFxView(pView, false));
170 }
171
172 private void SwigDirectorMethodOnSelectionStarted__SWIG_1(global::System.IntPtr pData) {
173 OnSelectionStarted((pData == global::System.IntPtr.Zero) ? null : new CFxSelectionData(pData, false));
174 }
175
176 private void SwigDirectorMethodOnSelectionEnded() {
178 }
179
180 private void SwigDirectorMethodOnObjectAppended(global::System.IntPtr id) {
181 OnObjectAppended(new OdDbObjectId(id, false));
182 }
183
184 private void SwigDirectorMethodOnObjectRemoved(global::System.IntPtr id) {
185 OnObjectRemoved(new OdDbObjectId(id, false));
186 }
187
188 private void SwigDirectorMethodOnObjectModified(global::System.IntPtr id) {
189 OnObjectModified(new OdDbObjectId(id, false));
190 }
191
192 private void SwigDirectorMethodOnClearStarted() {
194 }
195
196 private void SwigDirectorMethodOnClearEnded() {
197 OnClearEnded();
198 }
199
200 public delegate IntPtr SwigDelegateCFxSelectionSetReactor_0(IntPtr protocolClass);
201 public delegate IntPtr SwigDelegateCFxSelectionSetReactor_1();
202 public delegate void SwigDelegateCFxSelectionSetReactor_2(int eMethod, global::System.IntPtr pointsWCS, global::System.IntPtr pView);
203 public delegate void SwigDelegateCFxSelectionSetReactor_3(global::System.IntPtr pData);
205 public delegate void SwigDelegateCFxSelectionSetReactor_5(global::System.IntPtr id);
206 public delegate void SwigDelegateCFxSelectionSetReactor_6(global::System.IntPtr id);
207 public delegate void SwigDelegateCFxSelectionSetReactor_7(global::System.IntPtr id);
210
211 private SwigDelegateCFxSelectionSetReactor_0 swigDelegate0;
212 private SwigDelegateCFxSelectionSetReactor_1 swigDelegate1;
213 private SwigDelegateCFxSelectionSetReactor_2 swigDelegate2;
214 private SwigDelegateCFxSelectionSetReactor_3 swigDelegate3;
215 private SwigDelegateCFxSelectionSetReactor_4 swigDelegate4;
216 private SwigDelegateCFxSelectionSetReactor_5 swigDelegate5;
217 private SwigDelegateCFxSelectionSetReactor_6 swigDelegate6;
218 private SwigDelegateCFxSelectionSetReactor_7 swigDelegate7;
219 private SwigDelegateCFxSelectionSetReactor_8 swigDelegate8;
220 private SwigDelegateCFxSelectionSetReactor_9 swigDelegate9;
221
222 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdRxClass) };
223 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
224 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(CFxSelectionData.SelectionMethod), typeof(OdGePoint3dArray), typeof(CFxView) };
225 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { typeof(CFxSelectionData) };
226 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
227 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { typeof(OdDbObjectId) };
228 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { typeof(OdDbObjectId) };
229 private static global::System.Type[] swigMethodTypes7 = new global::System.Type[] { typeof(OdDbObjectId) };
230 private static global::System.Type[] swigMethodTypes8 = new global::System.Type[] { };
231 private static global::System.Type[] swigMethodTypes9 = new global::System.Type[] { };
232}
233
234}
static HandleRef getCPtr(CFxSelectionData obj)
virtual void OnObjectModified(OdDbObjectId id)
virtual void OnSelectionStarted(CFxSelectionData.SelectionMethod eMethod, OdGePoint3dArray pointsWCS, CFxView pView)
delegate IntPtr SwigDelegateCFxSelectionSetReactor_0(IntPtr protocolClass)
static SWIGTYPE_p_OdSmartPtrT_CFxSelectionSetReactor_t cast(OdRxObject pObj)
override OdRxObject queryX(OdRxClass protocolClass)
delegate IntPtr SwigDelegateCFxSelectionSetReactor_1()
override void Dispose(bool disposing)
virtual void OnSelectionStarted(CFxSelectionData pData)
virtual void OnObjectRemoved(OdDbObjectId id)
delegate void SwigDelegateCFxSelectionSetReactor_9()
delegate void SwigDelegateCFxSelectionSetReactor_4()
virtual void OnObjectAppended(OdDbObjectId id)
delegate void SwigDelegateCFxSelectionSetReactor_3(global::System.IntPtr pData)
CFxSelectionSetReactor(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(CFxSelectionSetReactor obj)
delegate void SwigDelegateCFxSelectionSetReactor_5(global::System.IntPtr id)
static SWIGTYPE_p_OdSmartPtrT_CFxSelectionSetReactor_t createObject()
delegate void SwigDelegateCFxSelectionSetReactor_2(int eMethod, global::System.IntPtr pointsWCS, global::System.IntPtr pView)
delegate void SwigDelegateCFxSelectionSetReactor_6(global::System.IntPtr id)
delegate void SwigDelegateCFxSelectionSetReactor_7(global::System.IntPtr id)
delegate void SwigDelegateCFxSelectionSetReactor_8()
static HandleRef getCPtr(CFxView obj)
Definition: CFxView.cs:27
static void CFxSelectionSetReactor_OnSelectionStarted__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void delete_CFxSelectionSetReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxSelectionSetReactor_OnClearStarted(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr CFxSelectionSetReactor_isA(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxSelectionSetReactor_createObject()
static global::System.IntPtr CFxSelectionSetReactor_cast(HandleRef jarg1)
static void CFxSelectionSetReactor_OnClearEnded(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxSelectionSetReactor_OnObjectRemoved(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxSelectionSetReactor_OnSelectionStarted__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr CFxSelectionSetReactor_queryX(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void CFxSelectionSetReactor_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, CFxSelectionSetReactor.SwigDelegateCFxSelectionSetReactor_0 delegate0, CFxSelectionSetReactor.SwigDelegateCFxSelectionSetReactor_1 delegate1, CFxSelectionSetReactor.SwigDelegateCFxSelectionSetReactor_2 delegate2, CFxSelectionSetReactor.SwigDelegateCFxSelectionSetReactor_3 delegate3, CFxSelectionSetReactor.SwigDelegateCFxSelectionSetReactor_4 delegate4, CFxSelectionSetReactor.SwigDelegateCFxSelectionSetReactor_5 delegate5, CFxSelectionSetReactor.SwigDelegateCFxSelectionSetReactor_6 delegate6, CFxSelectionSetReactor.SwigDelegateCFxSelectionSetReactor_7 delegate7, CFxSelectionSetReactor.SwigDelegateCFxSelectionSetReactor_8 delegate8, CFxSelectionSetReactor.SwigDelegateCFxSelectionSetReactor_9 delegate9)
static void CFxSelectionSetReactor_OnSelectionEnded(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxSelectionSetReactor_OnSelectionStartedSwigExplicitCFxSelectionSetReactor__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void CFxSelectionSetReactor_OnClearEndedSwigExplicitCFxSelectionSetReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxSelectionSetReactor_OnObjectAppendedSwigExplicitCFxSelectionSetReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxSelectionSetReactor_OnObjectRemovedSwigExplicitCFxSelectionSetReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxSelectionSetReactor_OnClearStartedSwigExplicitCFxSelectionSetReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxSelectionSetReactor_OnObjectAppended(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr CFxSelectionSetReactor_queryXSwigExplicitCFxSelectionSetReactor(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static IntPtr CFxSelectionSetReactor_desc()
static void CFxSelectionSetReactor_OnObjectModified(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxSelectionSetReactor_OnObjectModifiedSwigExplicitCFxSelectionSetReactor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxSelectionSetReactor_OnSelectionStartedSwigExplicitCFxSelectionSetReactor__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxSelectionSetReactor_OnSelectionEndedSwigExplicitCFxSelectionSetReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr CFxSelectionSetReactor_isASwigExplicitCFxSelectionSetReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGePoint3dArray obj)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdDbObjectId obj)
Definition: OdDbObjectId.cs:27