Extended .NET SDK Documentation 2024 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 }
69
70 private void SwigDirectorConnect() {
71 if (SwigDerivedClassHasMethod("selected", swigMethodTypes0))
72 swigDelegate0 = new SwigDelegateOdGsSelectionReactor_0(SwigDirectorMethodselected__SWIG_0);
73 if (SwigDerivedClassHasMethod("selected", swigMethodTypes1))
74 swigDelegate1 = new SwigDelegateOdGsSelectionReactor_1(SwigDirectorMethodselected__SWIG_1);
75 GlobalsPINVOKE.OdGsSelectionReactor_director_connect(swigCPtr, swigDelegate0, swigDelegate1);
76 }
77
78 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
79 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);
80 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdGsSelectionReactor));
81 return hasDerivedMethod;
82 }
83
84 private bool SwigDirectorMethodselected__SWIG_0(global::System.IntPtr pDrawableDesc) {
85 return selected(new OdGiDrawableDesc(pDrawableDesc, false));
86 }
87
88 private UInt32 /*SIMPLETYPE*/ SwigDirectorMethodselected__SWIG_1(global::System.IntPtr arg0, IntPtr arg1) {
89 return selected(new OdGiPathNode(arg0, false),
90 (OdGiViewport)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiViewport),arg1,false) /*createInt 6_3*/ // csdirectorin for smart pointer
91) /*SIMPLETYPE*/;
92 }
93
94 public delegate bool SwigDelegateOdGsSelectionReactor_0(global::System.IntPtr pDrawableDesc);
95 public delegate UInt32 /*SIMPLETYPE*/ SwigDelegateOdGsSelectionReactor_1(global::System.IntPtr arg0, IntPtr arg1);
96
97 private SwigDelegateOdGsSelectionReactor_0 swigDelegate0;
98 private SwigDelegateOdGsSelectionReactor_1 swigDelegate1;
99
100 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdGiDrawableDesc) };
101 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { typeof(OdGiPathNode), typeof(OdGiViewport) };
102 public const int kContinue = 0;
103 public const int kBreak = 1;
104 public const int kSkipDrawable = 2;
105
106}
107
108}
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)
Definition: OdGiPathNode.cs:26
static HandleRef getCPtr(OdGiViewport obj)
Definition: OdGiViewport.cs:25
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)