17 private Object locker =
new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 swigCPtr =
new HandleRef(
this, cPtr);
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
29 protected override void Dispose(
bool disposing) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
36 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
38 base.Dispose(disposing);
43 : this(
GlobalsPINVOKE.new_OdEdCommand(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
45 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
48 mTr.AddObject(
new OdEdCommand(swigCPtr.Handle,
true));
51 SwigDirectorConnect();
52 DelegateHolder.OnHoldSwigDirectorDelegates(
this);
56 MemoryManager mMan = MemoryManager.GetMemoryManager();
57 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
97 MemoryManager mMan = MemoryManager.GetMemoryManager();
98 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
118 Globals.OdEdCommandFunctionDelegateNative pFunction_inDelegate =
null;
119 if (pFunction !=
null)
121 pFunction_inDelegate = (IntPtr pCmdCtx) =>
134 IntPtr pFunction_ptr = (pFunction ==
null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(pFunction_inDelegate);
135 Teigha.
Core.DelegateHolder.Add(pFunction_inDelegate);
138 MemoryManager mMan = MemoryManager.GetMemoryManager();
139 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
162 Globals.OdEdCommandFunctionDelegateNative pFunction_inDelegate =
null;
163 if (pFunction !=
null)
165 pFunction_inDelegate = (IntPtr pCmdCtx) =>
178 IntPtr pFunction_ptr = (pFunction ==
null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(pFunction_inDelegate);
179 Teigha.
Core.DelegateHolder.Add(pFunction_inDelegate);
182 MemoryManager mMan = MemoryManager.GetMemoryManager();
183 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
259 private void SwigDirectorConnect() {
260 if (SwigDerivedClassHasMethod(
"queryX", swigMethodTypes0))
262 if (SwigDerivedClassHasMethod(
"isA", swigMethodTypes1))
264 if (SwigDerivedClassHasMethod(
"copyFrom", swigMethodTypes2))
266 if (SwigDerivedClassHasMethod(
"groupName", swigMethodTypes3))
268 if (SwigDerivedClassHasMethod(
"globalName", swigMethodTypes4))
270 if (SwigDerivedClassHasMethod(
"localName", swigMethodTypes5))
272 if (SwigDerivedClassHasMethod(
"execute", swigMethodTypes6))
274 if (SwigDerivedClassHasMethod(
"module", swigMethodTypes7))
276 if (SwigDerivedClassHasMethod(
"undefine", swigMethodTypes8))
278 if (SwigDerivedClassHasMethod(
"flags", swigMethodTypes9))
280 GlobalsPINVOKE.
OdEdCommand_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9);
283 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
284 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);
285 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(
OdEdCommand));
286 return hasDerivedMethod;
289 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
293 (OdRxClass)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,
false)
298 private IntPtr SwigDirectorMethodisA() {
301 OdRxClass.getCPtr(
isA()).Handle
305 private void SwigDirectorMethodcopyFrom(IntPtr pSource) {
311 [
return: MarshalAs(UnmanagedType.LPWStr)]
312 private String SwigDirectorMethodgroupName() {
316 [
return: MarshalAs(UnmanagedType.LPWStr)]
317 private String SwigDirectorMethodglobalName() {
321 [
return: MarshalAs(UnmanagedType.LPWStr)]
322 private String SwigDirectorMethodlocalName() {
326 private void SwigDirectorMethodexecute(IntPtr pCommandContext) {
328 (OdEdCommandContext)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdCommandContext),pCommandContext,
false)
332 private IntPtr SwigDirectorMethodmodule() {
335 OdRxModule.getCPtr(
module()).Handle
339 private void SwigDirectorMethodundefine(
bool undefIt) {
343 private Int32 SwigDirectorMethodflags() {
350 [
return: MarshalAs(UnmanagedType.LPWStr)]
352 [
return: MarshalAs(UnmanagedType.LPWStr)]
354 [
return: MarshalAs(UnmanagedType.LPWStr)]
372 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { typeof(
OdRxClass) };
373 private static global::System.Type[] swigMethodTypes1 =
new global::System.Type[] { };
374 private static global::System.Type[] swigMethodTypes2 =
new global::System.Type[] { typeof(
OdRxObject) };
375 private static global::System.Type[] swigMethodTypes3 =
new global::System.Type[] { };
376 private static global::System.Type[] swigMethodTypes4 =
new global::System.Type[] { };
377 private static global::System.Type[] swigMethodTypes5 =
new global::System.Type[] { };
378 private static global::System.Type[] swigMethodTypes6 =
new global::System.Type[] { typeof(OdEdCommandContext) };
379 private static global::System.Type[] swigMethodTypes7 =
new global::System.Type[] { };
380 private static global::System.Type[] swigMethodTypes8 =
new global::System.Type[] { typeof(
bool) };
381 private static global::System.Type[] swigMethodTypes9 =
new global::System.Type[] { };
static void OdEdCommand_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, OdEdCommand.SwigDelegateOdEdCommand_0 delegate0, OdEdCommand.SwigDelegateOdEdCommand_1 delegate1, OdEdCommand.SwigDelegateOdEdCommand_2 delegate2, OdEdCommand.SwigDelegateOdEdCommand_3 delegate3, OdEdCommand.SwigDelegateOdEdCommand_4 delegate4, OdEdCommand.SwigDelegateOdEdCommand_5 delegate5, OdEdCommand.SwigDelegateOdEdCommand_6 delegate6, OdEdCommand.SwigDelegateOdEdCommand_7 delegate7, OdEdCommand.SwigDelegateOdEdCommand_8 delegate8, OdEdCommand.SwigDelegateOdEdCommand_9 delegate9)
static HandleRef getCPtr(OdEdCommandContext obj)