Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
ViewProps.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 Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class ViewProps : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public ViewProps(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(ViewProps obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~ViewProps() {
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public ViewProps() : this(GlobalsPINVOKE.new_ViewProps(), true) {
53 }
54
55 public UInt32 m_vpId {
56 set {
57 /*SIMPLETYPE*/
58 GlobalsPINVOKE.ViewProps_m_vpId_set(swigCPtr, value /*SIMPLETYPE*/);
60 }
61 get {
62 /*SIMPLETYPE*/
63 UInt32 ret = GlobalsPINVOKE.ViewProps_m_vpId_get(swigCPtr);
65 return ret;
66 }
67 }
68
70 set {
73 }
74 get {
75 global::System.IntPtr cPtr = GlobalsPINVOKE.ViewProps_m_vpObjectId_get(swigCPtr);
76 OdDbStub ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdDbStub(cPtr, false);
78 return ret;
79 }
80 }
81
83 set {
86 }
87 get {
90 return ret;
91 }
92 }
93
95 set {
98 }
99 get {
102 return ret;
103 }
104 }
105
107 set {
110 }
111 get {
112 global::System.IntPtr cPtr = GlobalsPINVOKE.ViewProps_m_worldToEye_get(swigCPtr);
113 OdGeMatrix3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeMatrix3d(cPtr, false);
115 return ret;
116 }
117 }
118
120 set {
123 }
124 get {
125 global::System.IntPtr cPtr = GlobalsPINVOKE.ViewProps_m_cameraLocation_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 = GlobalsPINVOKE.ViewProps_m_cameraTarget_get(swigCPtr);
139 OdGePoint3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePoint3d(cPtr, false);
141 return ret;
142 }
143 }
144
146 set {
149 }
150 get {
151 global::System.IntPtr cPtr = GlobalsPINVOKE.ViewProps_m_cameraUpVector_get(swigCPtr);
152 OdGeVector3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeVector3d(cPtr, false);
154 return ret;
155 }
156 }
157
159 set {
162 }
163 get {
164 global::System.IntPtr cPtr = GlobalsPINVOKE.ViewProps_m_viewDir_get(swigCPtr);
165 OdGeVector3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeVector3d(cPtr, false);
167 return ret;
168 }
169 }
170
172 set {
175 }
176 get {
177 global::System.IntPtr cPtr = GlobalsPINVOKE.ViewProps_m_vpLowerLeft_get(swigCPtr);
178 OdGePoint2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePoint2d(cPtr, false);
180 return ret;
181 }
182 }
183
185 set {
188 }
189 get {
190 global::System.IntPtr cPtr = GlobalsPINVOKE.ViewProps_m_vpUpperRight_get(swigCPtr);
191 OdGePoint2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePoint2d(cPtr, false);
193 return ret;
194 }
195 }
196
197 public double[] /*SIMPLE_ARRAY*/ m_deviation {
198 /*SArr csvin*/
199 set {
200 GlobalsPINVOKE.ViewProps_m_deviation_set(swigCPtr, Teigha.Core.Helpers.MarshaldoubleFixedArray(value));
202 }
203 /*SArr csvout*/
204 get {
205 double[] ret = Teigha.Core.Helpers.UnMarshaldoubleFixedArray(GlobalsPINVOKE.ViewProps_m_deviation_get(swigCPtr));
207 return ret;
208 }
209 }
210
211 public double m_frontClip {
212 set {
215 }
216 get {
217 double ret = GlobalsPINVOKE.ViewProps_m_frontClip_get(swigCPtr);
219 return ret;
220 }
221 }
222
223 public double m_backClip {
224 set {
227 }
228 get {
229 double ret = GlobalsPINVOKE.ViewProps_m_backClip_get(swigCPtr);
231 return ret;
232 }
233 }
234
236 set {
239 }
240 get
241 {
242 // csvarout array
244
246 return res;
247 }
248
249 }
250
252 set {
255 }
256 get {
259 return ret;
260 }
261 }
262
263 public IntPtr m_renderModule {
264 set {
265 /*SIMPLETYPE*/
266 GlobalsPINVOKE.ViewProps_m_renderModule_set(swigCPtr, value /*SIMPLETYPE*/);
268 }
269 get {
270 /*SIMPLETYPE*/
271 IntPtr ret = GlobalsPINVOKE.ViewProps_m_renderModule_get(swigCPtr);
273 return ret;
274 }
275 }
276
278 set {
281 }
282 get {
283 global::System.IntPtr cPtr = GlobalsPINVOKE.ViewProps_m_annoScale_get(swigCPtr);
284 OdDbStub ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdDbStub(cPtr, false);
286 return ret;
287 }
288 }
289
290 public IntPtr m_filterFunction {
291 set {
292 /*SIMPLETYPE*/
293 GlobalsPINVOKE.ViewProps_m_filterFunction_set(swigCPtr, value /*SIMPLETYPE*/);
295 }
296 get {
297 /*SIMPLETYPE*/
298 IntPtr ret = GlobalsPINVOKE.ViewProps_m_filterFunction_get(swigCPtr);
300 return ret;
301 }
302 }
303
305 set {
308 }
309 get {
310 global::System.IntPtr cPtr = GlobalsPINVOKE.ViewProps_m_visualStyle_get(swigCPtr);
311 OdDbStub ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdDbStub(cPtr, false);
313 return ret;
314 }
315 }
316
317 public UInt32 m_nViewChanges {
318 set {
319 /*SIMPLETYPE*/
320 GlobalsPINVOKE.ViewProps_m_nViewChanges_set(swigCPtr, value /*SIMPLETYPE*/);
322 }
323 get {
324 /*SIMPLETYPE*/
325 UInt32 ret = GlobalsPINVOKE.ViewProps_m_nViewChanges_get(swigCPtr);
327 return ret;
328 }
329 }
330
331 public void set(OdGsViewImpl view) {
334 }
335
336 public UInt32 difference(ViewProps props) {
337// test csout
338 /*SIMPLETYPE*/
339 UInt32 ret = GlobalsPINVOKE.ViewProps_difference(swigCPtr, ViewProps.getCPtr(props));
341 return ret;
342 }
343
344 public bool isCompatibleWith(ViewProps props, UInt32 /*SIMPLETYPE*/ nFlags, bool bCompareFrozenLayers) {
345 bool ret = GlobalsPINVOKE.ViewProps_isCompatibleWith__SWIG_0(swigCPtr, ViewProps.getCPtr(props), nFlags /*SIMPLETYPE*/, bCompareFrozenLayers);
347 return ret;
348 }
349
350 public bool isCompatibleWith(ViewProps props, UInt32 /*SIMPLETYPE*/ nFlags) {
351 bool ret = GlobalsPINVOKE.ViewProps_isCompatibleWith__SWIG_1(swigCPtr, ViewProps.getCPtr(props), nFlags /*SIMPLETYPE*/);
353 return ret;
354 }
355
356 public bool isInvalid() {
357 bool ret = GlobalsPINVOKE.ViewProps_isInvalid(swigCPtr);
359 return ret;
360 }
361
362 public void setInvalid(bool bValue) {
363 GlobalsPINVOKE.ViewProps_setInvalid(swigCPtr, bValue);
365 }
366
367}
368
369}
static global::System.Exception Retrieve()
static int ViewProps_m_renderMode_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewProps_m_vpId_set(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static double ViewProps_m_backClip_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewProps_m_nViewChanges_set(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static global::System.IntPtr ViewProps_m_vpLowerLeft_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr ViewProps_m_visualStyle_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewProps_m_vpObjectId_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr ViewProps_m_annoScale_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewProps_m_vpLowerLeft_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static UInt32 ViewProps_m_nViewChanges_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static int ViewProps_m_regenType_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewProps_setInvalid(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void ViewProps_m_visualStyle_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr ViewProps_m_frozenLayers_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_ViewProps(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr ViewProps_m_renderModule_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool ViewProps_isCompatibleWith__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, UInt32 jarg3)
static void ViewProps_m_backClip_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr ViewProps_m_cameraUpVector_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewProps_m_frontClip_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static double ViewProps_m_linetypeScaleMultiplier_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewProps_m_worldToEye_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr ViewProps_m_cameraTarget_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr ViewProps_m_deviation_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewProps_m_annoScale_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool ViewProps_isCompatibleWith__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, UInt32 jarg3, bool jarg4)
static global::System.IntPtr ViewProps_m_vpUpperRight_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool ViewProps_isInvalid(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr ViewProps_m_worldToEye_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 ViewProps_difference(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void ViewProps_m_viewDir_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr ViewProps_m_cameraLocation_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewProps_m_renderModule_set(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static global::System.IntPtr ViewProps_m_viewDir_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewProps_m_cameraUpVector_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static UInt32 ViewProps_m_vpId_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewProps_set(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void ViewProps_m_vpUpperRight_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr ViewProps_m_filterFunction_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr ViewProps_m_vpObjectId_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static double ViewProps_m_frontClip_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void ViewProps_m_regenType_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void ViewProps_m_cameraTarget_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void ViewProps_m_cameraLocation_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void ViewProps_m_deviation_set(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static void ViewProps_m_renderMode_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void ViewProps_m_frozenLayers_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void ViewProps_m_linetypeScaleMultiplier_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void ViewProps_m_filterFunction_set(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static HandleRef getCPtr(OdDbStub obj)
Definition: OdDbStub.cs:26
static HandleRef getCPtr(OdDbStubPtrArray obj)
static HandleRef getCPtr(OdGeMatrix3d obj)
Definition: OdGeMatrix3d.cs:26
static HandleRef getCPtr(OdGePoint2d obj)
Definition: OdGePoint2d.cs:26
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdGeVector3d obj)
Definition: OdGeVector3d.cs:26
static HandleRef getCPtr(OdGsViewImpl obj)
Definition: OdGsViewImpl.cs:26
OdGeMatrix3d m_worldToEye
Definition: ViewProps.cs:106
ViewProps(IntPtr cPtr, bool cMemoryOwn)
Definition: ViewProps.cs:21
static HandleRef getCPtr(ViewProps obj)
Definition: ViewProps.cs:26
OdGePoint2d m_vpLowerLeft
Definition: ViewProps.cs:171
OdGsView.RenderMode m_renderMode
Definition: ViewProps.cs:94
UInt32 difference(ViewProps props)
Definition: ViewProps.cs:336
OdGeVector3d m_cameraUpVector
Definition: ViewProps.cs:145
OdGiRegenType m_regenType
Definition: ViewProps.cs:82
OdDbStub m_visualStyle
Definition: ViewProps.cs:304
OdGePoint2d m_vpUpperRight
Definition: ViewProps.cs:184
void setInvalid(bool bValue)
Definition: ViewProps.cs:362
double m_linetypeScaleMultiplier
Definition: ViewProps.cs:251
OdGePoint3d m_cameraTarget
Definition: ViewProps.cs:132
virtual void Dispose(bool disposing)
Definition: ViewProps.cs:39
OdGePoint3d m_cameraLocation
Definition: ViewProps.cs:119
bool isCompatibleWith(ViewProps props, UInt32 nFlags)
Definition: ViewProps.cs:350
bool isCompatibleWith(ViewProps props, UInt32 nFlags, bool bCompareFrozenLayers)
Definition: ViewProps.cs:344
OdDbStubPtrArray m_frozenLayers
Definition: ViewProps.cs:235
OdGeVector3d m_viewDir
Definition: ViewProps.cs:158
OdDbStub m_vpObjectId
Definition: ViewProps.cs:69