Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxSelectionData.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 CFxSelectionData : global::System.IDisposable {
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 protected bool swigCMemOwn;
22 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
23 public CFxSelectionData(IntPtr cPtr, bool cMemoryOwn) {
24 swigCMemOwn = cMemoryOwn;
25 swigCPtr = new HandleRef(this, cPtr);
26 }
27 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
28 public static HandleRef getCPtr(CFxSelectionData obj) {
29 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30 }
31
33 Dispose(false);
34 }
35
36 public void Dispose() {
37 Dispose(true);
38 global::System.GC.SuppressFinalize(this);
39 }
40
41 protected virtual void Dispose(bool disposing) {
42 lock(this) {
43 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
44 if (swigCMemOwn) {
45 swigCMemOwn = false;
47 }
48 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
49 }
50 }
51 }
52
56 return ret;
57 }
58
59 public virtual fdt_resbufW GetData() {
60 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxSelectionData_GetData(swigCPtr);
61 fdt_resbufW ret = (cPtr == global::System.IntPtr.Zero) ? null : new fdt_resbufW(cPtr, false);
63 return ret;
64 }
65
66 public virtual int GetWindowId() {
69 return ret;
70 }
71
72 public class CFxVertexData : global::System.IDisposable {
73 private Object locker = new Object();
74 private HandleRef swigCPtr;
75 protected bool swigCMemOwn;
76 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
77 public CFxVertexData(IntPtr cPtr, bool cMemoryOwn) {
78 swigCMemOwn = cMemoryOwn;
79 swigCPtr = new HandleRef(this, cPtr);
80 }
81 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
82 public static HandleRef getCPtr(CFxVertexData obj) {
83 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
84 }
85
87 Dispose(false);
88 }
89
90 public void Dispose() {
91 Dispose(true);
92 global::System.GC.SuppressFinalize(this);
93 }
94
95 protected virtual void Dispose(bool disposing) {
96 lock(this) {
97 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
98 if (swigCMemOwn) {
99 swigCMemOwn = false;
100 PCADGlobalsPINVOKE.delete_CFxSelectionData_CFxVertexData(swigCPtr); // NESTED_DTOR_CSHARP
101 }
102 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
103 }
104 }
105 }
106
108 set {
111 }
112 get {
115 return ret;
116 }
117 }
118
120 set {
123 }
124 get {
125 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxSelectionData_CFxVertexData_m_Point_get(swigCPtr);
126 OdGePoint3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePoint3d(cPtr, false);
128 return ret;
129 }
130 }
131
133 set {
136 }
137 get {
138 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxSelectionData_CFxVertexData_m_Direction_get(swigCPtr);
139 OdGeVector3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeVector3d(cPtr, false);
141 return ret;
142 }
143 }
144
145 public CFxVertexData() : this(PCADGlobalsPINVOKE.new_CFxSelectionData_CFxVertexData(), true) {
147 }
148
149 public enum PointDescription {
150 eInfiniteLine = 0,
151 eRay = 1,
152 eLineSegment = 2
153 }
154
155 }
156
157 public virtual uint GetPointsCount() {
160 return ret;
161 }
162
164 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxSelectionData_GetPoints(swigCPtr);
165 CFxSelectionData.CFxVertexData ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxSelectionData.CFxVertexData(cPtr, false);
167 return ret;
168 }
169
170 public virtual uint GetNumEntities() {
173 return ret;
174 }
175
176 public virtual bool IsNestedSelection() {
179 return ret;
180 }
181
182 public virtual OdDbObjectId GetSpaceId() {
185 return ret;
186 }
187
189 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxSelectionData_CreateIterator(swigCPtr);
190 CFxIteratorEntityData ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxIteratorEntityData(cPtr, false);
192 return ret;
193 }
194
198 return ret;
199 }
200
201 public enum SelectionMethod {
202 eNonGraphical = 0,
206 eFence = 4,
207 eSubentity = 5
208 }
209
210 public enum SelectionMode {
211 kUnknown = 0,
212 kWin,
213 kCross,
214 kBox,
215 kLast,
216 kEntity,
217 kAll,
218 kFence,
219 kCPoly,
220 kWPoly,
221 kPick,
222 kEvery,
223 kXten,
224 kGroup,
225 kPrevious,
227 }
228
229}
230
231}
static HandleRef getCPtr(CFxVertexData obj)
CFxVertexData(IntPtr cPtr, bool cMemoryOwn)
CFxSelectionData.CFxVertexData.PointDescription m_Description
virtual CFxIteratorEntityData CreateIterator()
CFxSelectionData(IntPtr cPtr, bool cMemoryOwn)
virtual CFxSelectionData.CFxVertexData GetPoints()
virtual void Dispose(bool disposing)
virtual CFxSelectionData.SelectionMethod GetMethod()
virtual OdDbObjectId GetSpaceId()
virtual fdt_resbufW GetData()
static HandleRef getCPtr(CFxSelectionData obj)
virtual CFxSelectionData.SelectionMode GetMode()
static uint CFxSelectionData_GetNumEntities(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxSelectionData_GetData(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxSelectionData_GetWindowId(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxSelectionData_CFxVertexData_m_Direction_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxSelectionData_GetSpaceId(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxSelectionData_CFxVertexData_m_Direction_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool CFxSelectionData_IsNestedSelection(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxSelectionData_CFxVertexData_m_Description_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void delete_CFxSelectionData(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxSelectionData_CFxVertexData_m_Point_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static uint CFxSelectionData_GetPointsCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxSelectionData_CFxVertexData_m_Description_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxSelectionData_CreateIterator(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxSelectionData_GetPoints(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_CFxSelectionData_CFxVertexData(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxSelectionData_GetMethod(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxSelectionData_CFxVertexData_m_Point_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxSelectionData_GetMode(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdGeVector3d obj)
Definition: OdGeVector3d.cs:26