Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGsSelectionReactor.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 Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class OdGsSelectionReactor : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdGsSelectionReactor(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdGsSelectionReactor obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50 public const uint kNotImplemented = 0x80000000;
51 public virtual bool selected(OdGiDrawableDesc pDrawableDesc) {
54 return ret;
55 }
56
57 public virtual UInt32 selected(OdGiPathNode arg0, OdGiViewport arg1) {
58// test csout
59 /*SIMPLETYPE*/
60 UInt32 ret = (SwigDerivedClassHasMethod("selected", swigMethodTypes1) ? GlobalsPINVOKE.OdGsSelectionReactor_selectedSwigExplicitOdGsSelectionReactor__SWIG_1(swigCPtr, OdGiPathNode.getCPtr(arg0), OdGiViewport.getCPtr(arg1)) : GlobalsPINVOKE.OdGsSelectionReactor_selected__SWIG_1(swigCPtr, OdGiPathNode.getCPtr(arg0), OdGiViewport.getCPtr(arg1)));
62 return ret;
63 }
64
65 public OdGsSelectionReactor() : this(GlobalsPINVOKE.new_OdGsSelectionReactor(), true) {
67 SwigDirectorConnect();
68 DelegateHolder.OnHoldSwigDirectorDelegates(this);
69 if(this is OdRxObject)
70 {
71 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
72 if (null != mTr)
73 {
74 mTr.AddObject(new OdGsSelectionReactor(swigCPtr.Handle, true));
75 this.swigCMemOwn = false;
76 }
77}
78 }
79
80 private void SwigDirectorConnect() {
81 if (SwigDerivedClassHasMethod("selected", swigMethodTypes0))
82 swigDelegate0 = new SwigDelegateOdGsSelectionReactor_0(SwigDirectorMethodselected__SWIG_0);
83 if (SwigDerivedClassHasMethod("selected", swigMethodTypes1))
84 swigDelegate1 = new SwigDelegateOdGsSelectionReactor_1(SwigDirectorMethodselected__SWIG_1);
85 GlobalsPINVOKE.OdGsSelectionReactor_director_connect(swigCPtr, swigDelegate0, swigDelegate1);
86 }
87
88 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
89 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);
90 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdGsSelectionReactor));
91 return hasDerivedMethod;
92 }
93
94 private bool SwigDirectorMethodselected__SWIG_0(global::System.IntPtr pDrawableDesc) {
95 return selected(new OdGiDrawableDesc(pDrawableDesc, false));
96 }
97
98 private UInt32 /*SIMPLETYPE*/ SwigDirectorMethodselected__SWIG_1(global::System.IntPtr arg0, IntPtr arg1) {
99 return selected(new OdGiPathNode(arg0, false),
100 (OdGiViewport)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiViewport),arg1,false) /*createInt 6_3*/ // csdirectorin for smart pointer
101) /*SIMPLETYPE*/;
102 }
103
104 public delegate bool SwigDelegateOdGsSelectionReactor_0(global::System.IntPtr pDrawableDesc);
105 public delegate UInt32 /*SIMPLETYPE*/ SwigDelegateOdGsSelectionReactor_1(global::System.IntPtr arg0, IntPtr arg1);
106
107 private SwigDelegateOdGsSelectionReactor_0 swigDelegate0;
108 private SwigDelegateOdGsSelectionReactor_1 swigDelegate1;
109
110 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdGiDrawableDesc) };
111 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { typeof(OdGiPathNode), typeof(OdGiViewport) };
112 public const int kContinue = 0;
113 public const int kBreak = 1;
114 public const int kSkipDrawable = 2;
115
116}
117
118}
static global::System.Exception Retrieve()
static void OdGsSelectionReactor_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, OdGsSelectionReactor.SwigDelegateOdGsSelectionReactor_0 delegate0, OdGsSelectionReactor.SwigDelegateOdGsSelectionReactor_1 delegate1)
static UInt32 OdGsSelectionReactor_selected__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3)
static void delete_OdGsSelectionReactor(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 OdGsSelectionReactor_selectedSwigExplicitOdGsSelectionReactor__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3)
static bool OdGsSelectionReactor_selected__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static HandleRef getCPtr(OdGiDrawableDesc obj)
static HandleRef getCPtr(OdGiPathNode obj)
static HandleRef getCPtr(OdGiViewport obj)
virtual UInt32 selected(OdGiPathNode arg0, OdGiViewport arg1)
static HandleRef getCPtr(OdGsSelectionReactor obj)
virtual void Dispose(bool disposing)
OdGsSelectionReactor(IntPtr cPtr, bool cMemoryOwn)
virtual bool selected(OdGiDrawableDesc pDrawableDesc)
delegate UInt32 SwigDelegateOdGsSelectionReactor_1(global::System.IntPtr arg0, IntPtr arg1)
delegate bool SwigDelegateOdGsSelectionReactor_0(global::System.IntPtr pDrawableDesc)