Extended .NET SDK Documentation 2024 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 }
55
56 public virtual int Execute(CFxCommandContext pFxCmdCtx) {
57 int ret = PCADGlobalsPINVOKE.CFxCommand_Execute(swigCPtr, CFxCommandContext.getCPtr(pFxCmdCtx));
59 return ret;
60 }
61
62 public override void undefine(bool undefIt) {
63 if (SwigDerivedClassHasMethod("undefine", swigMethodTypes5)) PCADGlobalsPINVOKE.CFxCommand_undefineSwigExplicitCFxCommand(swigCPtr, undefIt); else PCADGlobalsPINVOKE.CFxCommand_undefine(swigCPtr, undefIt);
65 }
66
67 public override Int32 flags() {
68// test csout
69 /*SIMPLETYPE*/
70 Int32 ret = (SwigDerivedClassHasMethod("flags", swigMethodTypes6) ? PCADGlobalsPINVOKE.CFxCommand_flagsSwigExplicitCFxCommand(swigCPtr) : PCADGlobalsPINVOKE.CFxCommand_flags(swigCPtr));
72 return ret;
73 }
74
75 public bool HasFlag(Int32 /*SIMPLETYPE*/ flag) {
76 bool ret = PCADGlobalsPINVOKE.CFxCommand_HasFlag(swigCPtr, flag /*SIMPLETYPE*/);
78 return ret;
79 }
80
84 return ret;
85 }
86
87 public static CFxString GetLISPGroupName(CFxDocument pDocument) {
90 return ret;
91 }
92
93 public virtual void Help() {
94 if (SwigDerivedClassHasMethod("Help", swigMethodTypes8)) PCADGlobalsPINVOKE.CFxCommand_HelpSwigExplicitCFxCommand(swigCPtr); else PCADGlobalsPINVOKE.CFxCommand_Help(swigCPtr);
96 }
97
98 public static void OpenHelp() {
101 }
102
103 public virtual uint GetHelpId() {
104 uint ret = (SwigDerivedClassHasMethod("GetHelpId", swigMethodTypes9) ? PCADGlobalsPINVOKE.CFxCommand_GetHelpIdSwigExplicitCFxCommand(swigCPtr) : PCADGlobalsPINVOKE.CFxCommand_GetHelpId(swigCPtr));
106 return ret;
107 }
108
109 public virtual String displayName() {
110 string ret = (SwigDerivedClassHasMethod("displayName", swigMethodTypes10) ? PCADGlobalsPINVOKE.CFxCommand_displayNameSwigExplicitCFxCommand(swigCPtr) : PCADGlobalsPINVOKE.CFxCommand_displayName(swigCPtr));
112 return ret;
113}
114
115 private void SwigDirectorConnect() {
116 if (SwigDerivedClassHasMethod("queryX", swigMethodTypes0))
117 swigDelegate0 = new SwigDelegateCFxCommand_0(SwigDirectorMethodqueryX);
118 if (SwigDerivedClassHasMethod("isA", swigMethodTypes1))
119 swigDelegate1 = new SwigDelegateCFxCommand_1(SwigDirectorMethodisA);
120 if (SwigDerivedClassHasMethod("globalName", swigMethodTypes2))
121 swigDelegate2 = new SwigDelegateCFxCommand_2(SwigDirectorMethodglobalName);
122 if (SwigDerivedClassHasMethod("localName", swigMethodTypes3))
123 swigDelegate3 = new SwigDelegateCFxCommand_3(SwigDirectorMethodlocalName);
124 if (SwigDerivedClassHasMethod("module", swigMethodTypes4))
125 swigDelegate4 = new SwigDelegateCFxCommand_4(SwigDirectorMethodmodule);
126 if (SwigDerivedClassHasMethod("undefine", swigMethodTypes5))
127 swigDelegate5 = new SwigDelegateCFxCommand_5(SwigDirectorMethodundefine);
128 if (SwigDerivedClassHasMethod("flags", swigMethodTypes6))
129 swigDelegate6 = new SwigDelegateCFxCommand_6(SwigDirectorMethodflags);
130 if (SwigDerivedClassHasMethod("Execute", swigMethodTypes7))
131 swigDelegate7 = new SwigDelegateCFxCommand_7(SwigDirectorMethodExecute);
132 if (SwigDerivedClassHasMethod("Help", swigMethodTypes8))
133 swigDelegate8 = new SwigDelegateCFxCommand_8(SwigDirectorMethodHelp);
134 if (SwigDerivedClassHasMethod("GetHelpId", swigMethodTypes9))
135 swigDelegate9 = new SwigDelegateCFxCommand_9(SwigDirectorMethodGetHelpId);
136 if (SwigDerivedClassHasMethod("displayName", swigMethodTypes10))
137 swigDelegate10 = new SwigDelegateCFxCommand_10(SwigDirectorMethoddisplayName);
138 PCADGlobalsPINVOKE.CFxCommand_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10);
139 }
140
141 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
142 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);
143 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(CFxCommand));
144 return hasDerivedMethod;
145 }
146
147 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
148 return
149 // csdirectorout for OdRxObject*, OdRxObject&
151 (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,false) /*createInt 6_2*/ // csdirectorin for smart pointer
152)).Handle
153;
154 }
155
156 private IntPtr SwigDirectorMethodisA() {
157 return
158 // csdirectorout for OdRxClass*, OdRxClass&
159 OdRxClass.getCPtr(isA()).Handle
160;
161 }
162
163 [return: MarshalAs(UnmanagedType.LPWStr)]
164 private String SwigDirectorMethodglobalName() {
165 return globalName();
166 }
167
168 [return: MarshalAs(UnmanagedType.LPWStr)]
169 private String SwigDirectorMethodlocalName() {
170 return localName();
171 }
172
173 private IntPtr SwigDirectorMethodmodule() {
174 return
175 // csdirectorout for OdRxModule*, OdRxModule&
176 OdRxModule.getCPtr(module()).Handle
177;
178 }
179
180 private void SwigDirectorMethodundefine(bool undefIt) {
181 undefine(undefIt);
182 }
183
184 private Int32 /*SIMPLETYPE*/ SwigDirectorMethodflags() {
185 return flags() /*SIMPLETYPE*/;
186 }
187
188 private int SwigDirectorMethodExecute(global::System.IntPtr pFxCmdCtx) {
189 return Execute((pFxCmdCtx == global::System.IntPtr.Zero) ? null : new CFxCommandContext(pFxCmdCtx, false));
190 }
191
192 private void SwigDirectorMethodHelp() {
193 Help();
194 }
195
196 private uint SwigDirectorMethodGetHelpId() {
197 return GetHelpId();
198 }
199
200 [return: MarshalAs(UnmanagedType.LPWStr)]
201 private String SwigDirectorMethoddisplayName() {
202 return displayName();
203 }
204
205 public delegate IntPtr SwigDelegateCFxCommand_0(IntPtr protocolClass);
206 public delegate IntPtr SwigDelegateCFxCommand_1();
207 [return: MarshalAs(UnmanagedType.LPWStr)]
209 [return: MarshalAs(UnmanagedType.LPWStr)]
211 public delegate IntPtr SwigDelegateCFxCommand_4();
212 public delegate void SwigDelegateCFxCommand_5(bool undefIt);
213 public delegate Int32 /*SIMPLETYPE*/ SwigDelegateCFxCommand_6();
214 public delegate int SwigDelegateCFxCommand_7(global::System.IntPtr pFxCmdCtx);
215 public delegate void SwigDelegateCFxCommand_8();
216 public delegate uint SwigDelegateCFxCommand_9();
217 [return: MarshalAs(UnmanagedType.LPWStr)]
219
220 private SwigDelegateCFxCommand_0 swigDelegate0;
221 private SwigDelegateCFxCommand_1 swigDelegate1;
222 private SwigDelegateCFxCommand_2 swigDelegate2;
223 private SwigDelegateCFxCommand_3 swigDelegate3;
224 private SwigDelegateCFxCommand_4 swigDelegate4;
225 private SwigDelegateCFxCommand_5 swigDelegate5;
226 private SwigDelegateCFxCommand_6 swigDelegate6;
227 private SwigDelegateCFxCommand_7 swigDelegate7;
228 private SwigDelegateCFxCommand_8 swigDelegate8;
229 private SwigDelegateCFxCommand_9 swigDelegate9;
230 private SwigDelegateCFxCommand_10 swigDelegate10;
231
232 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdRxClass) };
233 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
234 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { };
235 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { };
236 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
237 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { typeof(bool) };
238 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { };
239 private static global::System.Type[] swigMethodTypes7 = new global::System.Type[] { typeof(CFxCommandContext) };
240 private static global::System.Type[] swigMethodTypes8 = new global::System.Type[] { };
241 private static global::System.Type[] swigMethodTypes9 = new global::System.Type[] { };
242 private static global::System.Type[] swigMethodTypes10 = new global::System.Type[] { };
243 public const int kNoSelectionSetModifications = 0x04000000;
244 public const int kViewOperation = 0x08000000;
245 public const int kHidden = 0x10000000;
246 public const int kDisabledInRefedit = 0x20000000;
247 public const int kApplicationContext = 0x40000000;
248 public const int kHiddenHistory = 0x00040000;
249 public const int kDisabledInActionRecording = 0x00001000;
250 public const int kDimMoveEnabled = 0x00002000;
251 public const int kHiddenInAutoComplete = 0x00004000;
252 public const int kReadOnlyMode = 0x00008000;
253 public const int kNoCommandOutput = 0x00000100;
254 public const int kUseHoverSelection = 0x00000200;
255
256}
257
258}
static HandleRef getCPtr(CFxCommandContext obj)
delegate IntPtr SwigDelegateCFxCommand_4()
const int kUseHoverSelection
Definition: CFxCommand.cs:254
const int kApplicationContext
Definition: CFxCommand.cs:247
delegate IntPtr SwigDelegateCFxCommand_1()
const int kDisabledInActionRecording
Definition: CFxCommand.cs:249
static HandleRef getCPtr(CFxCommand obj)
Definition: CFxCommand.cs:27
static CFxString GetLISPGroupName(CFxDocument pDocument)
Definition: CFxCommand.cs:87
delegate IntPtr SwigDelegateCFxCommand_0(IntPtr protocolClass)
CFxCommand(IntPtr cPtr, bool cMemoryOwn)
Definition: CFxCommand.cs:22
override void undefine(bool undefIt)
Definition: CFxCommand.cs:62
virtual uint GetHelpId()
Definition: CFxCommand.cs:103
virtual int Execute(CFxCommandContext pFxCmdCtx)
Definition: CFxCommand.cs:56
const int kDisabledInRefedit
Definition: CFxCommand.cs:246
static void OpenHelp()
Definition: CFxCommand.cs:98
const int kHiddenInAutoComplete
Definition: CFxCommand.cs:251
override Int32 flags()
Definition: CFxCommand.cs:67
bool HasFlag(Int32 flag)
Definition: CFxCommand.cs:75
delegate void SwigDelegateCFxCommand_5(bool undefIt)
delegate String SwigDelegateCFxCommand_10()
const int kNoSelectionSetModifications
Definition: CFxCommand.cs:243
delegate uint SwigDelegateCFxCommand_9()
delegate int SwigDelegateCFxCommand_7(global::System.IntPtr pFxCmdCtx)
virtual String displayName()
Definition: CFxCommand.cs:109
override void Dispose(bool disposing)
Definition: CFxCommand.cs:31
delegate Int32 SwigDelegateCFxCommand_6()
virtual void Help()
Definition: CFxCommand.cs:93
delegate void SwigDelegateCFxCommand_8()
delegate String SwigDelegateCFxCommand_3()
static CFxString GetBuiltInGroupName()
Definition: CFxCommand.cs:81
delegate String SwigDelegateCFxCommand_2()
const int kNoCommandOutput
Definition: CFxCommand.cs:253
static HandleRef getCPtr(CFxDocument obj)
Definition: CFxDocument.cs:27
static void CFxCommand_undefine(global::System.Runtime.InteropServices.HandleRef jarg1, bool 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)
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_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()
Definition: OdEdCommand.cs:215
override OdRxObject queryX(OdRxClass protocolClass)
Definition: OdEdCommand.cs:88
virtual OdRxModule module()
Definition: OdEdCommand.cs:226
override OdRxClass isA()
Definition: OdEdCommand.cs:81
virtual String globalName()
Definition: OdEdCommand.cs:209
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxModule obj)
Definition: OdRxModule.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26