Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxViewportSnapShot.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 CFxViewportSnapShot : 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 CFxViewportSnapShot(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(CFxViewportSnapShot 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
53 public CFxViewportSnapShot() : this(PCADGlobalsPINVOKE.new_CFxViewportSnapShot(), true) {
55 }
56
57 public bool InitializeFromView(CFxView pView) {
60 return ret;
61 }
62
63 public bool InitializeFromViewInfo(CFxViewDrawInfo pViewInfo) {
66 return ret;
67 }
68
69 public void ApplyToView(CFxView pView) {
72 }
73
77 return ret;
78 }
79
83 return ret;
84 }
85
89 return ret;
90 }
91
95 return ret;
96 }
97
98 public double GetFieldWidth() {
101 return ret;
102 }
103
104 public double GetFieldHeight() {
107 return ret;
108 }
109
110 public double GetPixelWidth() {
113 return ret;
114 }
115
116 public double GetPixelHeight() {
119 return ret;
120 }
121
122 public double GetFocalLength() {
125 return ret;
126 }
127
131 return ret;
132 }
133
137 return ret;
138 }
139
140 public static bool IsViewSettingsValid(OdGsView pView) {
143 return ret;
144 }
145
146 public static bool IsViewSettingsValid(OdDbViewport pViewport) {
149 return ret;
150 }
151
152 public static bool IsViewExtentsValid(OdGeExtents3d extents) {
155 return ret;
156 }
157
158 public OdGePoint2d GetNumPixelsInUnitSquare(double iWidthInPixels, double iHeighInPixels, OdGePoint3d point, bool bUsePerspective) {
159 OdGePoint2d ret = new OdGePoint2d(PCADGlobalsPINVOKE.CFxViewportSnapShot_GetNumPixelsInUnitSquare(swigCPtr, iWidthInPixels, iHeighInPixels, OdGePoint3d.getCPtr(point), bUsePerspective), true);
161 return ret;
162 }
163
164}
165
166}
static HandleRef getCPtr(CFxViewDrawInfo obj)
static HandleRef getCPtr(CFxView obj)
Definition: CFxView.cs:27
OdGePoint2d GetNumPixelsInUnitSquare(double iWidthInPixels, double iHeighInPixels, OdGePoint3d point, bool bUsePerspective)
static HandleRef getCPtr(CFxViewportSnapShot obj)
virtual void Dispose(bool disposing)
static bool IsViewSettingsValid(OdGsView pView)
CFxViewportSnapShot(IntPtr cPtr, bool cMemoryOwn)
static bool IsViewSettingsValid(OdDbViewport pViewport)
static bool IsViewExtentsValid(OdGeExtents3d extents)
bool InitializeFromViewInfo(CFxViewDrawInfo pViewInfo)
static double CFxViewportSnapShot_GetFocalLength(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxViewportSnapShot_GetUpVector(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxViewportSnapShot_IsViewSettingsValid__SWIG_0(HandleRef jarg1)
static bool CFxViewportSnapShot_InitializeFromView(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxViewportSnapShot_GetPosition(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxViewportSnapShot_GetNumPixelsInUnitSquare(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, bool jarg5)
static void delete_CFxViewportSnapShot(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxViewportSnapShot_InitializeFromViewInfo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxViewportSnapShot_GetEyeVector(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxViewportSnapShot_IsViewSettingsValid__SWIG_1(HandleRef jarg1)
static double CFxViewportSnapShot_GetFieldHeight(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxViewportSnapShot_ApplyToView(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr CFxViewportSnapShot_GetTarget(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxViewportSnapShot_IsViewExtentsValid(global::System.Runtime.InteropServices.HandleRef jarg1)
static double CFxViewportSnapShot_GetPixelWidth(global::System.Runtime.InteropServices.HandleRef jarg1)
static double CFxViewportSnapShot_GetFieldWidth(global::System.Runtime.InteropServices.HandleRef jarg1)
static double CFxViewportSnapShot_GetPixelHeight(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxViewportSnapShot_GetVisibleRect(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxViewportSnapShot_GetWorldToEyeMatrix(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGeExtents3d obj)
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdGsView obj)
Definition: OdGsView.cs:25
static HandleRef getCPtr(OdDbViewport obj)
Definition: OdDbViewport.cs:26