Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxDocument.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 CFxDocument : OdRxObject {
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public CFxDocument(IntPtr cPtr, bool cMemoryOwn) : base(PCADGlobalsPINVOKE.CFxDocument_SWIGUpcast(cPtr), cMemoryOwn) {
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(CFxDocument 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
47 return ret;
48 }
49
50 public new static OdRxClass desc() {
51 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),PCADGlobalsPINVOKE.CFxDocument_desc(),false); /*createInt 3_2*/
52
54 return ret;
55}
56
57 public override OdRxClass isA() {
58 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),PCADGlobalsPINVOKE.CFxDocument_isA(swigCPtr),false); /*createInt 3_2*/
59
61 return ret;
62}
63
64 public override OdRxObject queryX(OdRxClass protocolClass) {
65 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),PCADGlobalsPINVOKE.CFxDocument_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
66
68 return ret;
69}
70
74 return ret;
75 }
76
78 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocument_GetFxDisplayDevice(swigCPtr);
79 CFxDisplayDevice ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDisplayDevice(cPtr, false);
81 return ret;
82 }
83
84 public virtual CFxDatabase GetFxDatabase() {
85 CFxDatabase ret = (CFxDatabase)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(CFxDatabase),PCADGlobalsPINVOKE.CFxDocument_GetFxDatabase__SWIG_0(swigCPtr),false); /*createInt 3_2*/
86
88 return ret;
89}
90
91 public virtual CFxAPI GetFxAPI() {
92 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocument_GetFxAPI(swigCPtr);
93 CFxAPI ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxAPI(cPtr, false);
95 return ret;
96 }
97
98 public virtual CFxUserIO GetFxUserIO() {
99 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocument_GetFxUserIO(swigCPtr);
100 CFxUserIO ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxUserIO(cPtr, false);
102 return ret;
103 }
104
105 public virtual CFxView GetActiveFxView() {
106 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocument_GetActiveFxView(swigCPtr);
107 CFxView ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxView(cPtr, false);
109 return ret;
110 }
111
113 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocument_GetFxMainSelectionSet(swigCPtr);
114 CFxSelectionSet ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxSelectionSet(cPtr, false);
116 return ret;
117 }
118
120 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocument_GetFxWorkingSelectionSet(swigCPtr);
121 CFxSelectionSet ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxSelectionSet(cPtr, false);
123 return ret;
124 }
125
126 public virtual CFxSelectionSet CreateSelectionSet(bool bRegenAbortAllowed, bool bSubEntitySelect) {
127 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocument_CreateSelectionSet__SWIG_0(swigCPtr, bRegenAbortAllowed, bSubEntitySelect);
128 CFxSelectionSet ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxSelectionSet(cPtr, false);
130 return ret;
131 }
132
133 public virtual CFxSelectionSet CreateSelectionSet(bool bRegenAbortAllowed) {
134 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocument_CreateSelectionSet__SWIG_1(swigCPtr, bRegenAbortAllowed);
135 CFxSelectionSet ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxSelectionSet(cPtr, false);
137 return ret;
138 }
139
141 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocument_GetFxInputPointManager(swigCPtr);
142 CFxInputPointManager ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxInputPointManager(cPtr, false);
144 return ret;
145 }
146
150 return ret;
151 }
152
156 return ret;
157 }
158
159 public virtual void AttachDatabase(CFxDatabase pDatabase) {
162 }
163
164 public virtual IntPtr GetOverallWindowHandle() {
165// test csout
166 /*SIMPLETYPE*/
169 return ret;
170 }
171
172 public virtual IntPtr GetDocumentWindowHandle() {
173// test csout
174 /*SIMPLETYPE*/
177 return ret;
178 }
179
181 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocument_GetFxScriptEngine(swigCPtr);
182 CFxScriptEngine ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxScriptEngine(cPtr, false);
184 return ret;
185 }
186
188 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocument_GetFxCommandContext(swigCPtr);
189 CFxCommandContext ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxCommandContext(cPtr, false);
191 return ret;
192 }
193
194 public virtual UInt16 GetFxNumber() {
195// test csout
196 /*SIMPLETYPE*/
197 UInt16 ret = PCADGlobalsPINVOKE.CFxDocument_GetFxNumber(swigCPtr);
199 return ret;
200 }
201
202 public virtual bool IsInsideSelect() {
205 return ret;
206 }
207
208 public virtual bool IsInsideEntsel() {
211 return ret;
212 }
213
214 public virtual bool IsInsideNEntsel() {
217 return ret;
218 }
219
220 public virtual bool IsInsideDragSelectSequence() {
223 return ret;
224 }
225
226 public virtual bool IsInsideDragDropSequence() {
229 return ret;
230 }
231
232 public virtual bool IsValid() {
233 bool ret = PCADGlobalsPINVOKE.CFxDocument_IsValid(swigCPtr);
235 return ret;
236 }
237
238 public virtual void Redraw() {
241 }
242
243 public virtual void ShrinkMemory() {
246 }
247
248 public virtual bool IsRefeditActive() {
251 return ret;
252 }
253
254 public virtual bool IsBEditActive() {
257 return ret;
258 }
259
260}
261
262}
static HandleRef getCPtr(CFxDatabase obj)
Definition: CFxDatabase.cs:27
virtual bool IsInsideDragSelectSequence()
Definition: CFxDocument.cs:220
virtual bool IsInsideDragDropSequence()
Definition: CFxDocument.cs:226
static HandleRef getCPtr(CFxDocument obj)
Definition: CFxDocument.cs:27
virtual bool IsBEditActive()
Definition: CFxDocument.cs:254
virtual CFxHistoryObjectArray GetHistory()
Definition: CFxDocument.cs:147
virtual CFxDatabase GetFxDatabase()
Definition: CFxDocument.cs:84
virtual void ShrinkMemory()
Definition: CFxDocument.cs:243
virtual bool IsInsideEntsel()
Definition: CFxDocument.cs:208
virtual IntPtr GetOverallWindowHandle()
Definition: CFxDocument.cs:164
virtual void Redraw()
Definition: CFxDocument.cs:238
virtual CFxDisplayDevice GetFxDisplayDevice()
Definition: CFxDocument.cs:77
virtual CFxSelectionSet GetFxMainSelectionSet()
Definition: CFxDocument.cs:112
virtual CFxScriptEngine GetFxScriptEngine()
Definition: CFxDocument.cs:180
virtual bool IsValid()
Definition: CFxDocument.cs:232
override OdRxClass isA()
Definition: CFxDocument.cs:57
virtual CFxSelectionSet GetFxWorkingSelectionSet()
Definition: CFxDocument.cs:119
static SWIGTYPE_p_OdSmartPtrT_CFxDocument_t createObject()
Definition: CFxDocument.cs:71
virtual CFxString GetCommandWindowHistory()
Definition: CFxDocument.cs:153
override OdRxObject queryX(OdRxClass protocolClass)
Definition: CFxDocument.cs:64
virtual CFxAPI GetFxAPI()
Definition: CFxDocument.cs:91
virtual CFxView GetActiveFxView()
Definition: CFxDocument.cs:105
virtual IntPtr GetDocumentWindowHandle()
Definition: CFxDocument.cs:172
virtual bool IsInsideNEntsel()
Definition: CFxDocument.cs:214
virtual UInt16 GetFxNumber()
Definition: CFxDocument.cs:194
CFxDocument(IntPtr cPtr, bool cMemoryOwn)
Definition: CFxDocument.cs:22
virtual CFxCommandContext GetFxCommandContext()
Definition: CFxDocument.cs:187
override void Dispose(bool disposing)
Definition: CFxDocument.cs:31
virtual CFxSelectionSet CreateSelectionSet(bool bRegenAbortAllowed, bool bSubEntitySelect)
Definition: CFxDocument.cs:126
virtual CFxInputPointManager GetFxInputPointManager()
Definition: CFxDocument.cs:140
static SWIGTYPE_p_OdSmartPtrT_CFxDocument_t cast(OdRxObject pObj)
Definition: CFxDocument.cs:44
virtual void AttachDatabase(CFxDatabase pDatabase)
Definition: CFxDocument.cs:159
virtual bool IsInsideSelect()
Definition: CFxDocument.cs:202
virtual CFxSelectionSet CreateSelectionSet(bool bRegenAbortAllowed)
Definition: CFxDocument.cs:133
virtual bool IsRefeditActive()
Definition: CFxDocument.cs:248
virtual CFxUserIO GetFxUserIO()
Definition: CFxDocument.cs:98
static new OdRxClass desc()
Definition: CFxDocument.cs:50
static IntPtr CFxDocument_isA(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr CFxDocument_desc()
static bool CFxDocument_IsRefeditActive(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDocument_GetFxWorkingSelectionSet(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxDocument_IsBEditActive(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr CFxDocument_queryX(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static global::System.IntPtr CFxDocument_GetFxAPI(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDocument_GetFxInputPointManager(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDocument_cast(HandleRef jarg1)
static global::System.IntPtr CFxDocument_GetFxMainSelectionSet(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxDocument_IsInsideSelect(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDocument_GetFxDisplayDevice(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDocument_GetFxScriptEngine(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr CFxDocument_GetFxDatabase__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxDocument_AttachDatabase(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static global::System.IntPtr CFxDocument_CreateSelectionSet__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2, bool jarg3)
static void CFxDocument_ShrinkMemory(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxDocument_IsInsideDragDropSequence(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDocument_GetFxUserIO(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDocument_createObject()
static void CFxDocument_Redraw(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDocument_GetCommandWindowHistory(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxDocument_IsInsideDragSelectSequence(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxDocument_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr CFxDocument_GetDocumentWindowHandle(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_CFxDocument(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr CFxDocument_GetOverallWindowHandle(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDocument_GetHistory(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDocument_GetActiveFxView(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt16 CFxDocument_GetFxNumber(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxDocument_IsInsideEntsel(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxDocument_IsInsideNEntsel(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDocument_GetFxCommandContext(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxDocument_CreateSelectionSet__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26