Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDbHighlightOverrule.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.TD {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDbHighlightOverrule(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbHighlightOverrule_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDbHighlightOverrule obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 protected override void Dispose(bool disposing) {
31 lock(this) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 if (swigCMemOwn) {
34 swigCMemOwn = false;
36 }
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 }
39 base.Dispose(disposing);
40 }
41 }
42
44 : this(TD_DbPINVOKE.new_OdDbHighlightOverrule(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
45 {
46 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction(); // MemoryTransaction #1
47 if (null != mTr)
48 {
49 mTr.AddObject(new OdDbHighlightOverrule(swigCPtr.Handle, true));
50 }
52 SwigDirectorConnect();
53 }
54
55 public static OdDbHighlightOverrule cast(OdRxObject pObj) {// OdSmartPtr<OdDbHighlightOverrule>
56 MemoryManager mMan = MemoryManager.GetMemoryManager();
57 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
59
60 OdDbHighlightOverrule ret = null;
61 if (null != mTrans)
62 {
63 mTrans.AddObject((OdDbHighlightOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbHighlightOverrule),ptr, true));
64 ret = (OdDbHighlightOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbHighlightOverrule),ptr, false);
65 }
66 else
67 {
68 ret = (OdDbHighlightOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbHighlightOverrule),ptr, true);
69 }
70
72 return ret;
73}
74
75 public new static OdRxClass desc() {
76 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdDbHighlightOverrule_desc(),false); /*createInt 3_2*/
77
79 return ret;
80}
81
82 public override OdRxClass isA() {
83 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),(SwigDerivedClassHasMethod("isA", swigMethodTypes1) ? TD_DbPINVOKE.OdDbHighlightOverrule_isASwigExplicitOdDbHighlightOverrule(swigCPtr) : TD_DbPINVOKE.OdDbHighlightOverrule_isA(swigCPtr)),false); /*createInt 3_2*/
84
86 return ret;
87}
88
89 public override OdRxObject queryX(OdRxClass protocolClass) {
90 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),(SwigDerivedClassHasMethod("queryX", swigMethodTypes0) ? TD_DbPINVOKE.OdDbHighlightOverrule_queryXSwigExplicitOdDbHighlightOverrule(swigCPtr, OdRxClass.getCPtr(protocolClass)) : TD_DbPINVOKE.OdDbHighlightOverrule_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass))),false); /*createInt 3_2*/
91
93 return ret;
94}
95
96 public static OdDbHighlightOverrule createObject() {// OdSmartPtr<OdDbHighlightOverrule>
97 MemoryManager mMan = MemoryManager.GetMemoryManager();
98 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
100
101 OdDbHighlightOverrule ret = null;
102 if (null != mTrans)
103 {
104 mTrans.AddObject((OdDbHighlightOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbHighlightOverrule),ptr, true));
105 ret = (OdDbHighlightOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbHighlightOverrule),ptr, false);
106 }
107 else
108 {
109 ret = (OdDbHighlightOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbHighlightOverrule),ptr, true);
110 }
111
113 return ret;
114}
115
116 public virtual void highlight(OdDbEntity pSubject, bool bDoIt, OdDbFullSubentPath pSubId, bool highlightAll) {
117 if (SwigDerivedClassHasMethod("highlight", swigMethodTypes3)) TD_DbPINVOKE.OdDbHighlightOverrule_highlightSwigExplicitOdDbHighlightOverrule__SWIG_0(swigCPtr, OdDbEntity.getCPtr(pSubject), bDoIt, OdDbFullSubentPath.getCPtr(pSubId), highlightAll); else TD_DbPINVOKE.OdDbHighlightOverrule_highlight__SWIG_0(swigCPtr, OdDbEntity.getCPtr(pSubject), bDoIt, OdDbFullSubentPath.getCPtr(pSubId), highlightAll);
119 }
120
121 public virtual void highlight(OdDbEntity pSubject, bool bDoIt, OdDbFullSubentPath pSubId) {
122 if (SwigDerivedClassHasMethod("highlight", swigMethodTypes4)) TD_DbPINVOKE.OdDbHighlightOverrule_highlightSwigExplicitOdDbHighlightOverrule__SWIG_1(swigCPtr, OdDbEntity.getCPtr(pSubject), bDoIt, OdDbFullSubentPath.getCPtr(pSubId)); else TD_DbPINVOKE.OdDbHighlightOverrule_highlight__SWIG_1(swigCPtr, OdDbEntity.getCPtr(pSubject), bDoIt, OdDbFullSubentPath.getCPtr(pSubId));
124 }
125
126 public virtual void highlight(OdDbEntity pSubject, bool bDoIt) {
127 if (SwigDerivedClassHasMethod("highlight", swigMethodTypes5)) TD_DbPINVOKE.OdDbHighlightOverrule_highlightSwigExplicitOdDbHighlightOverrule__SWIG_2(swigCPtr, OdDbEntity.getCPtr(pSubject), bDoIt); else TD_DbPINVOKE.OdDbHighlightOverrule_highlight__SWIG_2(swigCPtr, OdDbEntity.getCPtr(pSubject), bDoIt);
129 }
130
131 public virtual void highlight(OdDbEntity pSubject) {
132 if (SwigDerivedClassHasMethod("highlight", swigMethodTypes6)) TD_DbPINVOKE.OdDbHighlightOverrule_highlightSwigExplicitOdDbHighlightOverrule__SWIG_3(swigCPtr, OdDbEntity.getCPtr(pSubject)); else TD_DbPINVOKE.OdDbHighlightOverrule_highlight__SWIG_3(swigCPtr, OdDbEntity.getCPtr(pSubject));
134 }
135
136 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
137 string ret = TD_DbPINVOKE.OdDbHighlightOverrule_getRealClassName(ptr /*SIMPLETYPE*/);
139 return ret;
140 }
141
142 private void SwigDirectorConnect() {
143 if (SwigDerivedClassHasMethod("queryX", swigMethodTypes0))
144 swigDelegate0 = new SwigDelegateOdDbHighlightOverrule_0(SwigDirectorMethodqueryX);
145 if (SwigDerivedClassHasMethod("isA", swigMethodTypes1))
146 swigDelegate1 = new SwigDelegateOdDbHighlightOverrule_1(SwigDirectorMethodisA);
147 if (SwigDerivedClassHasMethod("isApplicable", swigMethodTypes2))
148 swigDelegate2 = new SwigDelegateOdDbHighlightOverrule_2(SwigDirectorMethodisApplicable);
149 if (SwigDerivedClassHasMethod("highlight", swigMethodTypes3))
150 swigDelegate3 = new SwigDelegateOdDbHighlightOverrule_3(SwigDirectorMethodhighlight__SWIG_0);
151 if (SwigDerivedClassHasMethod("highlight", swigMethodTypes4))
152 swigDelegate4 = new SwigDelegateOdDbHighlightOverrule_4(SwigDirectorMethodhighlight__SWIG_1);
153 if (SwigDerivedClassHasMethod("highlight", swigMethodTypes5))
154 swigDelegate5 = new SwigDelegateOdDbHighlightOverrule_5(SwigDirectorMethodhighlight__SWIG_2);
155 if (SwigDerivedClassHasMethod("highlight", swigMethodTypes6))
156 swigDelegate6 = new SwigDelegateOdDbHighlightOverrule_6(SwigDirectorMethodhighlight__SWIG_3);
157 TD_DbPINVOKE.OdDbHighlightOverrule_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6);
158 }
159
160 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
161 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);
162 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdDbHighlightOverrule));
163 return hasDerivedMethod;
164 }
165
166 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
167 return
168 // csdirectorout for OdRxObject*, OdRxObject&
170 (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,false) /*createInt 6_2*/ // csdirectorin for smart pointer
171)).Handle
172;
173 }
174
175 private IntPtr SwigDirectorMethodisA() {
176 return
177 // csdirectorout for OdRxClass*, OdRxClass&
178 OdRxClass.getCPtr(isA()).Handle
179;
180 }
181
182 private bool SwigDirectorMethodisApplicable(IntPtr pOverruledSubject) {
183 return isApplicable(
184 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),pOverruledSubject,false) /*createInt 6_2*/ // csdirectorin for smart pointer
185);
186 }
187
188 private void SwigDirectorMethodhighlight__SWIG_0(IntPtr pSubject, bool bDoIt, global::System.IntPtr pSubId, bool highlightAll) {
189 highlight(
190 (OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),pSubject,false) /*createInt 6_2*/ // csdirectorin for smart pointer
191, bDoIt, (pSubId == global::System.IntPtr.Zero) ? null : new OdDbFullSubentPath(pSubId, false), highlightAll);
192 }
193
194 private void SwigDirectorMethodhighlight__SWIG_1(IntPtr pSubject, bool bDoIt, global::System.IntPtr pSubId) {
195 highlight(
196 (OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),pSubject,false) /*createInt 6_2*/ // csdirectorin for smart pointer
197, bDoIt, (pSubId == global::System.IntPtr.Zero) ? null : new OdDbFullSubentPath(pSubId, false));
198 }
199
200 private void SwigDirectorMethodhighlight__SWIG_2(IntPtr pSubject, bool bDoIt) {
201 highlight(
202 (OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),pSubject,false) /*createInt 6_2*/ // csdirectorin for smart pointer
203, bDoIt);
204 }
205
206 private void SwigDirectorMethodhighlight__SWIG_3(IntPtr pSubject) {
207 highlight(
208 (OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),pSubject,false) /*createInt 6_2*/ // csdirectorin for smart pointer
209);
210 }
211
212 public delegate IntPtr SwigDelegateOdDbHighlightOverrule_0(IntPtr protocolClass);
213 public delegate IntPtr SwigDelegateOdDbHighlightOverrule_1();
214 public delegate bool SwigDelegateOdDbHighlightOverrule_2(IntPtr pOverruledSubject);
215 public delegate void SwigDelegateOdDbHighlightOverrule_3(IntPtr pSubject, bool bDoIt, global::System.IntPtr pSubId, bool highlightAll);
216 public delegate void SwigDelegateOdDbHighlightOverrule_4(IntPtr pSubject, bool bDoIt, global::System.IntPtr pSubId);
217 public delegate void SwigDelegateOdDbHighlightOverrule_5(IntPtr pSubject, bool bDoIt);
218 public delegate void SwigDelegateOdDbHighlightOverrule_6(IntPtr pSubject);
219
220 private SwigDelegateOdDbHighlightOverrule_0 swigDelegate0;
221 private SwigDelegateOdDbHighlightOverrule_1 swigDelegate1;
222 private SwigDelegateOdDbHighlightOverrule_2 swigDelegate2;
223 private SwigDelegateOdDbHighlightOverrule_3 swigDelegate3;
224 private SwigDelegateOdDbHighlightOverrule_4 swigDelegate4;
225 private SwigDelegateOdDbHighlightOverrule_5 swigDelegate5;
226 private SwigDelegateOdDbHighlightOverrule_6 swigDelegate6;
227
228 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdRxClass) };
229 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
230 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(OdRxObject) };
231 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { typeof(OdDbEntity), typeof(bool), typeof(OdDbFullSubentPath), typeof(bool) };
232 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { typeof(OdDbEntity), typeof(bool), typeof(OdDbFullSubentPath) };
233 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { typeof(OdDbEntity), typeof(bool) };
234 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { typeof(OdDbEntity) };
235}
236
237}
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
virtual bool isApplicable(OdRxObject pOverruledSubject)
static HandleRef getCPtr(OdDbEntity obj)
Definition: OdDbEntity.cs:26
static HandleRef getCPtr(OdDbFullSubentPath obj)
delegate void SwigDelegateOdDbHighlightOverrule_4(IntPtr pSubject, bool bDoIt, global::System.IntPtr pSubId)
delegate bool SwigDelegateOdDbHighlightOverrule_2(IntPtr pOverruledSubject)
virtual void highlight(OdDbEntity pSubject, bool bDoIt, OdDbFullSubentPath pSubId, bool highlightAll)
delegate IntPtr SwigDelegateOdDbHighlightOverrule_0(IntPtr protocolClass)
delegate void SwigDelegateOdDbHighlightOverrule_6(IntPtr pSubject)
virtual void highlight(OdDbEntity pSubject, bool bDoIt, OdDbFullSubentPath pSubId)
delegate IntPtr SwigDelegateOdDbHighlightOverrule_1()
override void Dispose(bool disposing)
static OdDbHighlightOverrule cast(OdRxObject pObj)
delegate void SwigDelegateOdDbHighlightOverrule_3(IntPtr pSubject, bool bDoIt, global::System.IntPtr pSubId, bool highlightAll)
virtual void highlight(OdDbEntity pSubject)
delegate void SwigDelegateOdDbHighlightOverrule_5(IntPtr pSubject, bool bDoIt)
static OdDbHighlightOverrule createObject()
OdDbHighlightOverrule(IntPtr cPtr, bool cMemoryOwn)
virtual void highlight(OdDbEntity pSubject, bool bDoIt)
static HandleRef getCPtr(OdDbHighlightOverrule obj)
static string getRealClassName(IntPtr ptr)
override OdRxObject queryX(OdRxClass protocolClass)
static global::System.Exception Retrieve()
static void OdDbHighlightOverrule_highlight__SWIG_0(HandleRef jarg1, HandleRef jarg2, bool jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, bool jarg5)
static IntPtr OdDbHighlightOverrule_createObject()
static void OdDbHighlightOverrule_highlight__SWIG_1(HandleRef jarg1, HandleRef jarg2, bool jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void OdDbHighlightOverrule_highlight__SWIG_3(HandleRef jarg1, HandleRef jarg2)
static string OdDbHighlightOverrule_getRealClassName(IntPtr jarg1)
static void OdDbHighlightOverrule_highlightSwigExplicitOdDbHighlightOverrule__SWIG_1(HandleRef jarg1, HandleRef jarg2, bool jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static IntPtr OdDbHighlightOverrule_cast(HandleRef jarg1)
static void OdDbHighlightOverrule_highlightSwigExplicitOdDbHighlightOverrule__SWIG_2(HandleRef jarg1, HandleRef jarg2, bool jarg3)
static void OdDbHighlightOverrule_highlightSwigExplicitOdDbHighlightOverrule__SWIG_0(HandleRef jarg1, HandleRef jarg2, bool jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, bool jarg5)
static IntPtr OdDbHighlightOverrule_queryXSwigExplicitOdDbHighlightOverrule(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDbHighlightOverrule_desc()
static void delete_OdDbHighlightOverrule(HandleRef jarg1)
static IntPtr OdDbHighlightOverrule_isA(HandleRef jarg1)
static void OdDbHighlightOverrule_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, OdDbHighlightOverrule.SwigDelegateOdDbHighlightOverrule_0 delegate0, OdDbHighlightOverrule.SwigDelegateOdDbHighlightOverrule_1 delegate1, OdDbHighlightOverrule.SwigDelegateOdDbHighlightOverrule_2 delegate2, OdDbHighlightOverrule.SwigDelegateOdDbHighlightOverrule_3 delegate3, OdDbHighlightOverrule.SwigDelegateOdDbHighlightOverrule_4 delegate4, OdDbHighlightOverrule.SwigDelegateOdDbHighlightOverrule_5 delegate5, OdDbHighlightOverrule.SwigDelegateOdDbHighlightOverrule_6 delegate6)
static void OdDbHighlightOverrule_highlight__SWIG_2(HandleRef jarg1, HandleRef jarg2, bool jarg3)
static IntPtr OdDbHighlightOverrule_isASwigExplicitOdDbHighlightOverrule(HandleRef jarg1)
static void OdDbHighlightOverrule_highlightSwigExplicitOdDbHighlightOverrule__SWIG_3(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDbHighlightOverrule_queryX(HandleRef jarg1, HandleRef jarg2)