Extended .NET SDK Documentation 2025 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 DelegateHolder.OnHoldSwigDirectorDelegates(this);
54 }
55
56 public static OdDbHighlightOverrule cast(OdRxObject pObj) {// OdSmartPtr<OdDbHighlightOverrule>
57 MemoryManager mMan = MemoryManager.GetMemoryManager();
58 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
60
61 OdDbHighlightOverrule ret = null;
62 if (null != mTrans)
63 {
64 mTrans.AddObject((OdDbHighlightOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbHighlightOverrule),ptr, true));
65 ret = (OdDbHighlightOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbHighlightOverrule),ptr, false);
66 }
67 else
68 {
69 ret = (OdDbHighlightOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbHighlightOverrule),ptr, true);
70 }
71
73 return ret;
74}
75
76 public new static OdRxClass desc() {
77 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdDbHighlightOverrule_desc(),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public override OdRxClass isA() {
84 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*/
85
87 return ret;
88}
89
90 public override OdRxObject queryX(OdRxClass protocolClass) {
91 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*/
92
94 return ret;
95}
96
97 public static OdDbHighlightOverrule createObject() {// OdSmartPtr<OdDbHighlightOverrule>
98 MemoryManager mMan = MemoryManager.GetMemoryManager();
99 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
101
102 OdDbHighlightOverrule ret = null;
103 if (null != mTrans)
104 {
105 mTrans.AddObject((OdDbHighlightOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbHighlightOverrule),ptr, true));
106 ret = (OdDbHighlightOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbHighlightOverrule),ptr, false);
107 }
108 else
109 {
110 ret = (OdDbHighlightOverrule)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbHighlightOverrule),ptr, true);
111 }
112
114 return ret;
115}
116
117 public virtual void highlight(OdDbEntity pSubject, bool bDoIt, OdDbFullSubentPath pSubId, bool highlightAll) {
118 if (SwigDerivedClassHasMethod("highlight", swigMethodTypes4)) 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);
120 }
121
122 public virtual void highlight(OdDbEntity pSubject, bool bDoIt, OdDbFullSubentPath pSubId) {
123 if (SwigDerivedClassHasMethod("highlight", swigMethodTypes5)) 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));
125 }
126
127 public virtual void highlight(OdDbEntity pSubject, bool bDoIt) {
128 if (SwigDerivedClassHasMethod("highlight", swigMethodTypes6)) TD_DbPINVOKE.OdDbHighlightOverrule_highlightSwigExplicitOdDbHighlightOverrule__SWIG_2(swigCPtr, OdDbEntity.getCPtr(pSubject), bDoIt); else TD_DbPINVOKE.OdDbHighlightOverrule_highlight__SWIG_2(swigCPtr, OdDbEntity.getCPtr(pSubject), bDoIt);
130 }
131
132 public virtual void highlight(OdDbEntity pSubject) {
133 if (SwigDerivedClassHasMethod("highlight", swigMethodTypes7)) TD_DbPINVOKE.OdDbHighlightOverrule_highlightSwigExplicitOdDbHighlightOverrule__SWIG_3(swigCPtr, OdDbEntity.getCPtr(pSubject)); else TD_DbPINVOKE.OdDbHighlightOverrule_highlight__SWIG_3(swigCPtr, OdDbEntity.getCPtr(pSubject));
135 }
136
137 protected static string getRealClassName(IntPtr ptr) {
138 string ret = TD_DbPINVOKE.OdDbHighlightOverrule_getRealClassName(ptr /*SIMPLETYPE*/);
140 return ret;
141 }
142
143 private void SwigDirectorConnect() {
144 if (SwigDerivedClassHasMethod("queryX", swigMethodTypes0))
145 swigDelegate0 = new SwigDelegateOdDbHighlightOverrule_0(SwigDirectorMethodqueryX);
146 if (SwigDerivedClassHasMethod("isA", swigMethodTypes1))
147 swigDelegate1 = new SwigDelegateOdDbHighlightOverrule_1(SwigDirectorMethodisA);
148 if (SwigDerivedClassHasMethod("copyFrom", swigMethodTypes2))
149 swigDelegate2 = new SwigDelegateOdDbHighlightOverrule_2(SwigDirectorMethodcopyFrom);
150 if (SwigDerivedClassHasMethod("isApplicable", swigMethodTypes3))
151 swigDelegate3 = new SwigDelegateOdDbHighlightOverrule_3(SwigDirectorMethodisApplicable);
152 if (SwigDerivedClassHasMethod("highlight", swigMethodTypes4))
153 swigDelegate4 = new SwigDelegateOdDbHighlightOverrule_4(SwigDirectorMethodhighlight__SWIG_0);
154 if (SwigDerivedClassHasMethod("highlight", swigMethodTypes5))
155 swigDelegate5 = new SwigDelegateOdDbHighlightOverrule_5(SwigDirectorMethodhighlight__SWIG_1);
156 if (SwigDerivedClassHasMethod("highlight", swigMethodTypes6))
157 swigDelegate6 = new SwigDelegateOdDbHighlightOverrule_6(SwigDirectorMethodhighlight__SWIG_2);
158 if (SwigDerivedClassHasMethod("highlight", swigMethodTypes7))
159 swigDelegate7 = new SwigDelegateOdDbHighlightOverrule_7(SwigDirectorMethodhighlight__SWIG_3);
160 TD_DbPINVOKE.OdDbHighlightOverrule_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7);
161 }
162
163 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
164 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);
165 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdDbHighlightOverrule));
166 return hasDerivedMethod;
167 }
168
169 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
170 return
171 // csdirectorout for OdRxObject*, OdRxObject&
173 (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,false) /*createInt 6_2*/ // csdirectorin for smart pointer
174)).Handle
175;
176 }
177
178 private IntPtr SwigDirectorMethodisA() {
179 return
180 // csdirectorout for OdRxClass*, OdRxClass&
181 OdRxClass.getCPtr(isA()).Handle
182;
183 }
184
185 private void SwigDirectorMethodcopyFrom(IntPtr pSource) {
186 copyFrom(
187 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),pSource,false) /*createInt 6_2*/ // csdirectorin for smart pointer
188);
189 }
190
191 private bool SwigDirectorMethodisApplicable(IntPtr pOverruledSubject) {
192 return isApplicable(
193 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),pOverruledSubject,false) /*createInt 6_2*/ // csdirectorin for smart pointer
194);
195 }
196
197 private void SwigDirectorMethodhighlight__SWIG_0(IntPtr pSubject, bool bDoIt, global::System.IntPtr pSubId, bool highlightAll) {
198 highlight(
199 (OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),pSubject,false) /*createInt 6_2*/ // csdirectorin for smart pointer
200, bDoIt, (pSubId == global::System.IntPtr.Zero) ? null : new OdDbFullSubentPath(pSubId, false), highlightAll);
201 }
202
203 private void SwigDirectorMethodhighlight__SWIG_1(IntPtr pSubject, bool bDoIt, global::System.IntPtr pSubId) {
204 highlight(
205 (OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),pSubject,false) /*createInt 6_2*/ // csdirectorin for smart pointer
206, bDoIt, (pSubId == global::System.IntPtr.Zero) ? null : new OdDbFullSubentPath(pSubId, false));
207 }
208
209 private void SwigDirectorMethodhighlight__SWIG_2(IntPtr pSubject, bool bDoIt) {
210 highlight(
211 (OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),pSubject,false) /*createInt 6_2*/ // csdirectorin for smart pointer
212, bDoIt);
213 }
214
215 private void SwigDirectorMethodhighlight__SWIG_3(IntPtr pSubject) {
216 highlight(
217 (OdDbEntity)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbEntity),pSubject,false) /*createInt 6_2*/ // csdirectorin for smart pointer
218);
219 }
220
221 public delegate IntPtr SwigDelegateOdDbHighlightOverrule_0(IntPtr protocolClass);
222 public delegate IntPtr SwigDelegateOdDbHighlightOverrule_1();
223 public delegate void SwigDelegateOdDbHighlightOverrule_2(IntPtr pSource);
224 public delegate bool SwigDelegateOdDbHighlightOverrule_3(IntPtr pOverruledSubject);
225 public delegate void SwigDelegateOdDbHighlightOverrule_4(IntPtr pSubject, bool bDoIt, global::System.IntPtr pSubId, bool highlightAll);
226 public delegate void SwigDelegateOdDbHighlightOverrule_5(IntPtr pSubject, bool bDoIt, global::System.IntPtr pSubId);
227 public delegate void SwigDelegateOdDbHighlightOverrule_6(IntPtr pSubject, bool bDoIt);
228 public delegate void SwigDelegateOdDbHighlightOverrule_7(IntPtr pSubject);
229
230 private SwigDelegateOdDbHighlightOverrule_0 swigDelegate0;
231 private SwigDelegateOdDbHighlightOverrule_1 swigDelegate1;
232 private SwigDelegateOdDbHighlightOverrule_2 swigDelegate2;
233 private SwigDelegateOdDbHighlightOverrule_3 swigDelegate3;
234 private SwigDelegateOdDbHighlightOverrule_4 swigDelegate4;
235 private SwigDelegateOdDbHighlightOverrule_5 swigDelegate5;
236 private SwigDelegateOdDbHighlightOverrule_6 swigDelegate6;
237 private SwigDelegateOdDbHighlightOverrule_7 swigDelegate7;
238
239 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdRxClass) };
240 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
241 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(OdRxObject) };
242 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { typeof(OdRxObject) };
243 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { typeof(OdDbEntity), typeof(bool), typeof(OdDbFullSubentPath), typeof(bool) };
244 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { typeof(OdDbEntity), typeof(bool), typeof(OdDbFullSubentPath) };
245 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { typeof(OdDbEntity), typeof(bool) };
246 private static global::System.Type[] swigMethodTypes7 = new global::System.Type[] { typeof(OdDbEntity) };
247}
248
249}
static HandleRef getCPtr(OdRxClass obj)
Definition OdRxClass.cs:25
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition OdRxObject.cs:21
virtual void copyFrom(OdRxObject pSource)
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_7(IntPtr pSubject)
delegate bool SwigDelegateOdDbHighlightOverrule_3(IntPtr pOverruledSubject)
virtual void highlight(OdDbEntity pSubject, bool bDoIt, OdDbFullSubentPath pSubId, bool highlightAll)
delegate IntPtr SwigDelegateOdDbHighlightOverrule_0(IntPtr protocolClass)
virtual void highlight(OdDbEntity pSubject, bool bDoIt, OdDbFullSubentPath pSubId)
delegate IntPtr SwigDelegateOdDbHighlightOverrule_1()
delegate void SwigDelegateOdDbHighlightOverrule_6(IntPtr pSubject, bool bDoIt)
override void Dispose(bool disposing)
static OdDbHighlightOverrule cast(OdRxObject pObj)
delegate void SwigDelegateOdDbHighlightOverrule_2(IntPtr pSource)
delegate void SwigDelegateOdDbHighlightOverrule_5(IntPtr pSubject, bool bDoIt, global::System.IntPtr pSubId)
virtual void highlight(OdDbEntity pSubject)
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)
delegate void SwigDelegateOdDbHighlightOverrule_4(IntPtr pSubject, bool bDoIt, global::System.IntPtr pSubId, bool highlightAll)
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, OdDbHighlightOverrule.SwigDelegateOdDbHighlightOverrule_7 delegate7)
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)