Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CFxCommand.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 PCAD_DOT_NET {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16using Teigha.TD;
17
18public class CFxCommand : OdEdCommand {
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public CFxCommand(IntPtr cPtr, bool cMemoryOwn) : base(PCADGlobalsPINVOKE.CFxCommand_SWIGUpcast(cPtr), cMemoryOwn) {
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(CFxCommand obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
31 protected override void Dispose(bool disposing) {
32 lock(this) {
33 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
34 if (swigCMemOwn) {
35 swigCMemOwn = false;
37 }
38 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
39 }
40 base.Dispose(disposing);
41 }
42 }
43
44 public CFxCommand()
45 : this(PCADGlobalsPINVOKE.new_CFxCommand(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
46 {
47 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction(); // MemoryTransaction #1
48 if (null != mTr)
49 {
50 mTr.AddObject(new CFxCommand(swigCPtr.Handle, true));
51 }
53 SwigDirectorConnect();
54 DelegateHolder.OnHoldSwigDirectorDelegates(this);
55 }
56
62
63 public override void undefine(bool undefIt) {
64 if (SwigDerivedClassHasMethod("undefine", swigMethodTypes6)) PCADGlobalsPINVOKE.CFxCommand_undefineSwigExplicitCFxCommand(swigCPtr, undefIt); else PCADGlobalsPINVOKE.CFxCommand_undefine(swigCPtr, undefIt);
66 }
67
68 public override Int32 flags() {
69// test csout
70 /*SIMPLETYPE*/
71 Int32 ret = (SwigDerivedClassHasMethod("flags", swigMethodTypes7) ? PCADGlobalsPINVOKE.CFxCommand_flagsSwigExplicitCFxCommand(swigCPtr) : PCADGlobalsPINVOKE.CFxCommand_flags(swigCPtr));
73 return ret;
74 }
75
76 public bool HasFlag(Int32 flag) {
77 bool ret = PCADGlobalsPINVOKE.CFxCommand_HasFlag(swigCPtr, flag /*SIMPLETYPE*/);
79 return ret;
80 }
81
87
93
94 public virtual void Help() {
95 if (SwigDerivedClassHasMethod("Help", swigMethodTypes9)) PCADGlobalsPINVOKE.CFxCommand_HelpSwigExplicitCFxCommand(swigCPtr); else PCADGlobalsPINVOKE.CFxCommand_Help(swigCPtr);
97 }
98
103
104 public virtual uint GetHelpId() {
105 uint ret = (SwigDerivedClassHasMethod("GetHelpId", swigMethodTypes10) ? PCADGlobalsPINVOKE.CFxCommand_GetHelpIdSwigExplicitCFxCommand(swigCPtr) : PCADGlobalsPINVOKE.CFxCommand_GetHelpId(swigCPtr));
107 return ret;
108 }
109
110 public virtual String displayName() {
111 string ret = (SwigDerivedClassHasMethod("displayName", swigMethodTypes11) ? PCADGlobalsPINVOKE.CFxCommand_displayNameSwigExplicitCFxCommand(swigCPtr) : PCADGlobalsPINVOKE.CFxCommand_displayName(swigCPtr));
113 return ret;
114}
115
116 private void SwigDirectorConnect() {
117 if (SwigDerivedClassHasMethod("queryX", swigMethodTypes0))
118 swigDelegate0 = new SwigDelegateCFxCommand_0(SwigDirectorMethodqueryX);
119 if (SwigDerivedClassHasMethod("isA", swigMethodTypes1))
120 swigDelegate1 = new SwigDelegateCFxCommand_1(SwigDirectorMethodisA);
121 if (SwigDerivedClassHasMethod("copyFrom", swigMethodTypes2))
122 swigDelegate2 = new SwigDelegateCFxCommand_2(SwigDirectorMethodcopyFrom);
123 if (SwigDerivedClassHasMethod("globalName", swigMethodTypes3))
124 swigDelegate3 = new SwigDelegateCFxCommand_3(SwigDirectorMethodglobalName);
125 if (SwigDerivedClassHasMethod("localName", swigMethodTypes4))
126 swigDelegate4 = new SwigDelegateCFxCommand_4(SwigDirectorMethodlocalName);
127 if (SwigDerivedClassHasMethod("module", swigMethodTypes5))
128 swigDelegate5 = new SwigDelegateCFxCommand_5(SwigDirectorMethodmodule);
129 if (SwigDerivedClassHasMethod("undefine", swigMethodTypes6))
130 swigDelegate6 = new SwigDelegateCFxCommand_6(SwigDirectorMethodundefine);
131 if (SwigDerivedClassHasMethod("flags", swigMethodTypes7))
132 swigDelegate7 = new SwigDelegateCFxCommand_7(SwigDirectorMethodflags);
133 if (SwigDerivedClassHasMethod("Execute", swigMethodTypes8))
134 swigDelegate8 = new SwigDelegateCFxCommand_8(SwigDirectorMethodExecute);
135 if (SwigDerivedClassHasMethod("Help", swigMethodTypes9))
136 swigDelegate9 = new SwigDelegateCFxCommand_9(SwigDirectorMethodHelp);
137 if (SwigDerivedClassHasMethod("GetHelpId", swigMethodTypes10))
138 swigDelegate10 = new SwigDelegateCFxCommand_10(SwigDirectorMethodGetHelpId);
139 if (SwigDerivedClassHasMethod("displayName", swigMethodTypes11))
140 swigDelegate11 = new SwigDelegateCFxCommand_11(SwigDirectorMethoddisplayName);
141 PCADGlobalsPINVOKE.CFxCommand_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11);
142 }
143
144 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
145 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);
146 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(CFxCommand));
147 return hasDerivedMethod;
148 }
149
150 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
151 return
152 // csdirectorout for OdRxObject*, OdRxObject&
154 (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,false) /*createInt 6_2*/ // csdirectorin for smart pointer
155)).Handle
156;
157 }
158
159 private IntPtr SwigDirectorMethodisA() {
160 return
161 // csdirectorout for OdRxClass*, OdRxClass&
162 OdRxClass.getCPtr(isA()).Handle
163;
164 }
165
166 private void SwigDirectorMethodcopyFrom(IntPtr pSource) {
167 copyFrom(
168 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),pSource,false) /*createInt 6_2*/ // csdirectorin for smart pointer
169);
170 }
171
172 [return: MarshalAs(UnmanagedType.LPWStr)]
173 private String SwigDirectorMethodglobalName() {
174 return globalName();
175 }
176
177 [return: MarshalAs(UnmanagedType.LPWStr)]
178 private String SwigDirectorMethodlocalName() {
179 return localName();
180 }
181
182 private IntPtr SwigDirectorMethodmodule() {
183 return
184 // csdirectorout for OdRxModule*, OdRxModule&
185 OdRxModule.getCPtr(module()).Handle
186;
187 }
188
189 private void SwigDirectorMethodundefine(bool undefIt) {
190 undefine(undefIt);
191 }
192
193 private Int32 /*SIMPLETYPE*/ SwigDirectorMethodflags() {
194 return flags() /*SIMPLETYPE*/;
195 }
196
197 private int SwigDirectorMethodExecute(global::System.IntPtr pFxCmdCtx) {
198 return Execute((pFxCmdCtx == global::System.IntPtr.Zero) ? null : new CFxCommandContext(pFxCmdCtx, false));
199 }
200
201 private void SwigDirectorMethodHelp() {
202 Help();
203 }
204
205 private uint SwigDirectorMethodGetHelpId() {
206 return GetHelpId();
207 }
208
209 [return: MarshalAs(UnmanagedType.LPWStr)]
210 private String SwigDirectorMethoddisplayName() {
211 return displayName();
212 }
213
214 public delegate IntPtr SwigDelegateCFxCommand_0(IntPtr protocolClass);
215 public delegate IntPtr SwigDelegateCFxCommand_1();
216 public delegate void SwigDelegateCFxCommand_2(IntPtr pSource);
217 [return: MarshalAs(UnmanagedType.LPWStr)]
219 [return: MarshalAs(UnmanagedType.LPWStr)]
221 public delegate IntPtr SwigDelegateCFxCommand_5();
222 public delegate void SwigDelegateCFxCommand_6(bool undefIt);
223 public delegate Int32 /*SIMPLETYPE*/ SwigDelegateCFxCommand_7();
224 public delegate int SwigDelegateCFxCommand_8(global::System.IntPtr pFxCmdCtx);
225 public delegate void SwigDelegateCFxCommand_9();
226 public delegate uint SwigDelegateCFxCommand_10();
227 [return: MarshalAs(UnmanagedType.LPWStr)]
229
230 private SwigDelegateCFxCommand_0 swigDelegate0;
231 private SwigDelegateCFxCommand_1 swigDelegate1;
232 private SwigDelegateCFxCommand_2 swigDelegate2;
233 private SwigDelegateCFxCommand_3 swigDelegate3;
234 private SwigDelegateCFxCommand_4 swigDelegate4;
235 private SwigDelegateCFxCommand_5 swigDelegate5;
236 private SwigDelegateCFxCommand_6 swigDelegate6;
237 private SwigDelegateCFxCommand_7 swigDelegate7;
238 private SwigDelegateCFxCommand_8 swigDelegate8;
239 private SwigDelegateCFxCommand_9 swigDelegate9;
240 private SwigDelegateCFxCommand_10 swigDelegate10;
241 private SwigDelegateCFxCommand_11 swigDelegate11;
242
243 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdRxClass) };
244 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
245 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(OdRxObject) };
246 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { };
247 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
248 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { };
249 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { typeof(bool) };
250 private static global::System.Type[] swigMethodTypes7 = new global::System.Type[] { };
251 private static global::System.Type[] swigMethodTypes8 = new global::System.Type[] { typeof(CFxCommandContext) };
252 private static global::System.Type[] swigMethodTypes9 = new global::System.Type[] { };
253 private static global::System.Type[] swigMethodTypes10 = new global::System.Type[] { };
254 private static global::System.Type[] swigMethodTypes11 = new global::System.Type[] { };
255 public const int kNoSelectionSetModifications = 0x04000000;
256 public const int kViewOperation = 0x08000000;
257 public const int kHidden = 0x10000000;
258 public const int kDisabledInRefedit = 0x20000000;
259 public const int kApplicationContext = 0x40000000;
260 public const int kHiddenHistory = 0x00040000;
261 public const int kDisabledInActionRecording = 0x00001000;
262 public const int kDimMoveEnabled = 0x00002000;
263 public const int kHiddenInAutoComplete = 0x00004000;
264 public const int kReadOnlyMode = 0x00008000;
265 public const int kNoCommandOutput = 0x00000100;
266 public const int kUseHoverSelection = 0x00000200;
267
268}
269
270}
static HandleRef getCPtr(CFxCommandContext obj)
const int kApplicationContext
delegate Int32 SwigDelegateCFxCommand_7()
delegate IntPtr SwigDelegateCFxCommand_1()
const int kDisabledInActionRecording
static HandleRef getCPtr(CFxCommand obj)
Definition CFxCommand.cs:27
static CFxString GetLISPGroupName(CFxDocument pDocument)
Definition CFxCommand.cs:88
delegate IntPtr SwigDelegateCFxCommand_0(IntPtr protocolClass)
CFxCommand(IntPtr cPtr, bool cMemoryOwn)
Definition CFxCommand.cs:22
delegate IntPtr SwigDelegateCFxCommand_5()
override void undefine(bool undefIt)
Definition CFxCommand.cs:63
delegate void SwigDelegateCFxCommand_6(bool undefIt)
virtual uint GetHelpId()
virtual int Execute(CFxCommandContext pFxCmdCtx)
Definition CFxCommand.cs:57
delegate uint SwigDelegateCFxCommand_10()
static void OpenHelp()
Definition CFxCommand.cs:99
const int kHiddenInAutoComplete
override Int32 flags()
Definition CFxCommand.cs:68
bool HasFlag(Int32 flag)
Definition CFxCommand.cs:76
const int kNoSelectionSetModifications
delegate void SwigDelegateCFxCommand_9()
virtual String displayName()
override void Dispose(bool disposing)
Definition CFxCommand.cs:31
virtual void Help()
Definition CFxCommand.cs:94
delegate int SwigDelegateCFxCommand_8(global::System.IntPtr pFxCmdCtx)
delegate String SwigDelegateCFxCommand_4()
delegate String SwigDelegateCFxCommand_11()
delegate String SwigDelegateCFxCommand_3()
static CFxString GetBuiltInGroupName()
Definition CFxCommand.cs:82
delegate void SwigDelegateCFxCommand_2(IntPtr pSource)
static HandleRef getCPtr(CFxDocument obj)
static void CFxCommand_undefine(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool CFxCommand_HasFlag(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static void CFxCommand_Help(global::System.Runtime.InteropServices.HandleRef jarg1)
static String CFxCommand_displayName(global::System.Runtime.InteropServices.HandleRef jarg1)
static uint CFxCommand_GetHelpId(global::System.Runtime.InteropServices.HandleRef jarg1)
static uint CFxCommand_GetHelpIdSwigExplicitCFxCommand(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_CFxCommand(global::System.Runtime.InteropServices.HandleRef jarg1)
static String CFxCommand_displayNameSwigExplicitCFxCommand(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxCommand_Execute(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxCommand_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, CFxCommand.SwigDelegateCFxCommand_0 delegate0, CFxCommand.SwigDelegateCFxCommand_1 delegate1, CFxCommand.SwigDelegateCFxCommand_2 delegate2, CFxCommand.SwigDelegateCFxCommand_3 delegate3, CFxCommand.SwigDelegateCFxCommand_4 delegate4, CFxCommand.SwigDelegateCFxCommand_5 delegate5, CFxCommand.SwigDelegateCFxCommand_6 delegate6, CFxCommand.SwigDelegateCFxCommand_7 delegate7, CFxCommand.SwigDelegateCFxCommand_8 delegate8, CFxCommand.SwigDelegateCFxCommand_9 delegate9, CFxCommand.SwigDelegateCFxCommand_10 delegate10, CFxCommand.SwigDelegateCFxCommand_11 delegate11)
static void CFxCommand_undefineSwigExplicitCFxCommand(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void CFxCommand_HelpSwigExplicitCFxCommand(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxCommand_GetBuiltInGroupName()
static Int32 CFxCommand_flags(global::System.Runtime.InteropServices.HandleRef jarg1)
static Int32 CFxCommand_flagsSwigExplicitCFxCommand(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxCommand_GetLISPGroupName(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual String localName()
override OdRxObject queryX(OdRxClass protocolClass)
virtual OdRxModule module()
override OdRxClass isA()
virtual String globalName()
static HandleRef getCPtr(OdRxClass obj)
Definition OdRxClass.cs:25
static HandleRef getCPtr(OdRxModule obj)
Definition OdRxModule.cs:25
virtual void copyFrom(OdRxObject pSource)
static HandleRef getCPtr(OdRxObject obj)
Definition OdRxObject.cs:26