Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGiViewport.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 OdGiViewport : OdRxObject {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdGiViewport(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiViewport_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGiViewport obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public static OdGiViewport cast(OdRxObject pObj) {// OdSmartPtr<OdGiViewport>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdGiViewport ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdGiViewport)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiViewport),ptr, true));
51 ret = (OdGiViewport)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiViewport),ptr, false);
52 }
53 else
54 {
55 ret = (OdGiViewport)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiViewport),ptr, true);
56 }
57
59 return ret;
60}
61
62 public new static OdRxClass desc() {
63 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiViewport_desc(),false); /*createInt 3_2*/
64
66 return ret;
67}
68
69 public override OdRxClass isA() {
70 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdGiViewport_isA(swigCPtr),false); /*createInt 3_2*/
71
73 return ret;
74}
75
76 public override OdRxObject queryX(OdRxClass protocolClass) {
77 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdGiViewport_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdGiViewport createObject() {// OdSmartPtr<OdGiViewport>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
88 OdGiViewport ret = null;
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdGiViewport)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiViewport),ptr, true));
92 ret = (OdGiViewport)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiViewport),ptr, false);
93 }
94 else
95 {
96 ret = (OdGiViewport)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiViewport),ptr, true);
97 }
98
100 return ret;
101}
102
106 return ret;
107 }
108
112 return ret;
113 }
114
118 return ret;
119 }
120
124 return ret;
125 }
126
127 public virtual bool isPerspective() {
128 bool ret = GlobalsPINVOKE.OdGiViewport_isPerspective(swigCPtr);
130 return ret;
131 }
132
133 public virtual bool doPerspective(OdGePoint3d point) {
136 return ret;
137 }
138
139 public virtual bool doInversePerspective(OdGePoint3d point) {
142 return ret;
143 }
144
145 public virtual void getNumPixelsInUnitSquare(OdGePoint3d point, OdGePoint2d pixelDensity, bool bUsePerspective) {
148 }
149
150 public virtual void getNumPixelsInUnitSquare(OdGePoint3d point, OdGePoint2d pixelDensity) {
153 }
154
158 return ret;
159 }
160
161 public virtual OdGePoint3d getCameraTarget() {
164 return ret;
165 }
166
170 return ret;
171 }
172
173 public virtual OdGeVector3d viewDir() {
176 return ret;
177 }
178
179 public virtual UInt32 viewportId() {
180// test csout
181 /*SIMPLETYPE*/
182 UInt32 ret = GlobalsPINVOKE.OdGiViewport_viewportId(swigCPtr);
184 return ret;
185 }
186
187 public virtual Int16 acadWindowId() {
188// test csout
189 /*SIMPLETYPE*/
190 Int16 ret = GlobalsPINVOKE.OdGiViewport_acadWindowId(swigCPtr);
192 return ret;
193 }
194
195 public virtual void getViewportDcCorners(OdGePoint2d lowerLeft, OdGePoint2d upperRight) {
198 }
199
200 public virtual bool getFrontAndBackClipValues(out bool clipFront, out bool clipBack, out double front, out double back) {
201 bool ret = GlobalsPINVOKE.OdGiViewport_getFrontAndBackClipValues(swigCPtr, out clipFront, out clipBack, out front, out back);
203 return ret;
204 }
205
206 public virtual double linetypeScaleMultiplier() {
209 return ret;
210 }
211
212 public virtual double linetypeGenerationCriteria() {
215 return ret;
216 }
217
218 public virtual bool layerVisible(OdDbStub layerId) {
219 bool ret = GlobalsPINVOKE.OdGiViewport_layerVisible(swigCPtr, OdDbStub.getCPtr(layerId));
221 return ret;
222 }
223
225 OdGiContextualColors ret = (OdGiContextualColors)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGiContextualColors),GlobalsPINVOKE.OdGiViewport_contextualColors(swigCPtr),false); /*createInt 3_2*/
226
228 return ret;
229}
230
231 public virtual OdDbStub annotationScaleId() {
232 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGiViewport_annotationScaleId(swigCPtr);
233 OdDbStub ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdDbStub(cPtr, false);
235 return ret;
236 }
237
238 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
239 string ret = GlobalsPINVOKE.OdGiViewport_getRealClassName(ptr /*SIMPLETYPE*/);
241 return ret;
242 }
243
244}
245
246}
static global::System.Exception Retrieve()
static bool OdGiViewport_getFrontAndBackClipValues(HandleRef jarg1, out bool jarg2, out bool jarg3, out double jarg4, out double jarg5)
static global::System.IntPtr OdGiViewport_getCameraLocation(HandleRef jarg1)
static void delete_OdGiViewport(HandleRef jarg1)
static void OdGiViewport_getNumPixelsInUnitSquare__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGiViewport_isPerspective(HandleRef jarg1)
static global::System.IntPtr OdGiViewport_getEyeToWorldTransform(HandleRef jarg1)
static UInt32 OdGiViewport_viewportId(HandleRef jarg1)
static global::System.IntPtr OdGiViewport_annotationScaleId(HandleRef jarg1)
static bool OdGiViewport_doInversePerspective(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGiViewport_getCameraUpVector(HandleRef jarg1)
static string OdGiViewport_getRealClassName(IntPtr jarg1)
static double OdGiViewport_linetypeGenerationCriteria(HandleRef jarg1)
static global::System.IntPtr OdGiViewport_viewDir(HandleRef jarg1)
static IntPtr OdGiViewport_createObject()
static global::System.IntPtr OdGiViewport_getCameraTarget(HandleRef jarg1)
static void OdGiViewport_getViewportDcCorners(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static Int16 OdGiViewport_acadWindowId(HandleRef jarg1)
static global::System.IntPtr OdGiViewport_getWorldToEyeTransform(HandleRef jarg1)
static void OdGiViewport_getNumPixelsInUnitSquare__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, bool jarg4)
static IntPtr OdGiViewport_desc()
static IntPtr OdGiViewport_isA(HandleRef jarg1)
static double OdGiViewport_linetypeScaleMultiplier(HandleRef jarg1)
static IntPtr OdGiViewport_cast(HandleRef jarg1)
static global::System.IntPtr OdGiViewport_getModelToEyeTransform(HandleRef jarg1)
static bool OdGiViewport_doPerspective(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGiViewport_getEyeToModelTransform(HandleRef jarg1)
static IntPtr OdGiViewport_contextualColors(HandleRef jarg1)
static bool OdGiViewport_layerVisible(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdGiViewport_queryX(HandleRef jarg1, HandleRef jarg2)
static HandleRef getCPtr(OdDbStub obj)
Definition: OdDbStub.cs:26
static HandleRef getCPtr(OdGePoint2d obj)
Definition: OdGePoint2d.cs:26
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static OdGiViewport cast(OdRxObject pObj)
Definition: OdGiViewport.cs:42
virtual bool isPerspective()
override OdRxClass isA()
Definition: OdGiViewport.cs:69
OdGiViewport(IntPtr cPtr, bool cMemoryOwn)
Definition: OdGiViewport.cs:20
static HandleRef getCPtr(OdGiViewport obj)
Definition: OdGiViewport.cs:25
virtual bool layerVisible(OdDbStub layerId)
virtual OdGeVector3d getCameraUpVector()
virtual bool doInversePerspective(OdGePoint3d point)
static OdGiViewport createObject()
Definition: OdGiViewport.cs:83
virtual Int16 acadWindowId()
virtual void getNumPixelsInUnitSquare(OdGePoint3d point, OdGePoint2d pixelDensity, bool bUsePerspective)
virtual double linetypeScaleMultiplier()
virtual OdGeMatrix3d getModelToEyeTransform()
virtual OdGePoint3d getCameraLocation()
virtual OdGiContextualColors contextualColors()
virtual OdGeMatrix3d getWorldToEyeTransform()
override void Dispose(bool disposing)
Definition: OdGiViewport.cs:29
static string getRealClassName(IntPtr ptr)
virtual OdGeMatrix3d getEyeToModelTransform()
virtual bool doPerspective(OdGePoint3d point)
virtual OdGePoint3d getCameraTarget()
virtual OdGeVector3d viewDir()
virtual OdGeMatrix3d getEyeToWorldTransform()
static new OdRxClass desc()
Definition: OdGiViewport.cs:62
virtual UInt32 viewportId()
virtual OdDbStub annotationScaleId()
virtual void getNumPixelsInUnitSquare(OdGePoint3d point, OdGePoint2d pixelDensity)
virtual void getViewportDcCorners(OdGePoint2d lowerLeft, OdGePoint2d upperRight)
virtual double linetypeGenerationCriteria()
virtual bool getFrontAndBackClipValues(out bool clipFront, out bool clipBack, out double front, out double back)
override OdRxObject queryX(OdRxClass protocolClass)
Definition: OdGiViewport.cs:76
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26