Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDbViewRep.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.TD {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
17public class OdDbViewRep : OdDbObject {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDbViewRep(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbViewRep_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDbViewRep obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 protected override void Dispose(bool disposing) {
31 lock(this) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 if (swigCMemOwn) {
34 swigCMemOwn = false;
36 }
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 }
39 base.Dispose(disposing);
40 }
41 }
42
43 public static OdDbViewRep cast(OdRxObject pObj) {// OdSmartPtr<OdDbViewRep>
44 MemoryManager mMan = MemoryManager.GetMemoryManager();
45 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
47
48 OdDbViewRep ret = null;
49 if (null != mTrans)
50 {
51 mTrans.AddObject((OdDbViewRep)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbViewRep),ptr, true));
52 ret = (OdDbViewRep)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbViewRep),ptr, false);
53 }
54 else
55 {
56 ret = (OdDbViewRep)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbViewRep),ptr, true);
57 }
58
60 return ret;
61}
62
63 public new static OdRxClass desc() {
64 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdDbViewRep_desc(),false); /*createInt 3_2*/
65
67 return ret;
68}
69
70 public override OdRxClass isA() {
71 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TD_DbPINVOKE.OdDbViewRep_isA(swigCPtr),false); /*createInt 3_2*/
72
74 return ret;
75}
76
77 public override OdRxObject queryX(OdRxClass protocolClass) {
78 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),TD_DbPINVOKE.OdDbViewRep_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public new static OdDbViewRep createObject() {// OdSmartPtr<OdDbViewRep>
85 MemoryManager mMan = MemoryManager.GetMemoryManager();
86 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
88
89 OdDbViewRep ret = null;
90 if (null != mTrans)
91 {
92 mTrans.AddObject((OdDbViewRep)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbViewRep),ptr, true));
93 ret = (OdDbViewRep)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbViewRep),ptr, false);
94 }
95 else
96 {
97 ret = (OdDbViewRep)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbViewRep),ptr, true);
98 }
99
101 return ret;
102}
103
107 return ret;
108 }
109
113 return ret;
114 }
115
119 return ret;
120 }
121
125 return ret;
126 }
127
129 MemoryManager mMan = MemoryManager.GetMemoryManager();
130 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #27
131 IntPtr ptr = TD_DbPINVOKE.OdDbViewRep_selSetObjId(swigCPtr);
132
133 OdDbObjectId ret = null;
134 if (null != mTrans)
135 {
136 mTrans.AddObject(new OdDbObjectId(ptr, true));
137 ret = new OdDbObjectId(ptr, false);
138 }
139 else
140 {
141 ret = new OdDbObjectId(ptr, true);
142 }
143
145 return ret;
146}
147
148 public bool isPartialMSView() {
149 bool ret = TD_DbPINVOKE.OdDbViewRep_isPartialMSView(swigCPtr);
151 return ret;
152 }
153
154 public uint viewIndex() {
155 uint ret = TD_DbPINVOKE.OdDbViewRep_viewIndex(swigCPtr);
157 return ret;
158 }
159
160 public void setInventorDrawingViewId(UInt64 /*SIMPLETYPE*/ invDVid) {
161 TD_DbPINVOKE.OdDbViewRep_setInventorDrawingViewId(swigCPtr, invDVid /*SIMPLETYPE*/);
163 }
164
165 public UInt64 inventorDrawingViewId() {
166// test csout
167 /*SIMPLETYPE*/
168 UInt64 ret = TD_DbPINVOKE.OdDbViewRep_inventorDrawingViewId(swigCPtr);
170 return ret;
171 }
172
174 MemoryManager mMan = MemoryManager.GetMemoryManager();
175 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #27
176 IntPtr ptr = TD_DbPINVOKE.OdDbViewRep_layoutId(swigCPtr);
177
178 OdDbObjectId ret = null;
179 if (null != mTrans)
180 {
181 mTrans.AddObject(new OdDbObjectId(ptr, true));
182 ret = new OdDbObjectId(ptr, false);
183 }
184 else
185 {
186 ret = new OdDbObjectId(ptr, true);
187 }
188
190 return ret;
191}
192
194 OdRxSketchManager ret = (OdRxSketchManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxSketchManager),TD_DbPINVOKE.OdDbViewRep_getSketchManager__SWIG_0(swigCPtr),false); /*createInt 3_2*/
195
197 return ret;
198}
199
201 MemoryManager mMan = MemoryManager.GetMemoryManager();
202 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #27
203 IntPtr ptr = TD_DbPINVOKE.OdDbViewRep_viewBlockReference(swigCPtr);
204
205 OdDbObjectId ret = null;
206 if (null != mTrans)
207 {
208 mTrans.AddObject(new OdDbObjectId(ptr, true));
209 ret = new OdDbObjectId(ptr, false);
210 }
211 else
212 {
213 ret = new OdDbObjectId(ptr, true);
214 }
215
217 return ret;
218}
219
221 MemoryManager mMan = MemoryManager.GetMemoryManager();
222 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #27
223 IntPtr ptr = TD_DbPINVOKE.OdDbViewRep_blockReference(swigCPtr);
224
225 OdDbObjectId ret = null;
226 if (null != mTrans)
227 {
228 mTrans.AddObject(new OdDbObjectId(ptr, true));
229 ret = new OdDbObjectId(ptr, false);
230 }
231 else
232 {
233 ret = new OdDbObjectId(ptr, true);
234 }
235
237 return ret;
238}
239
241 MemoryManager mMan = MemoryManager.GetMemoryManager();
242 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #27
243 IntPtr ptr = TD_DbPINVOKE.OdDbViewRep_viewBorderId(swigCPtr);
244
245 OdDbObjectId ret = null;
246 if (null != mTrans)
247 {
248 mTrans.AddObject(new OdDbObjectId(ptr, true));
249 ret = new OdDbObjectId(ptr, false);
250 }
251 else
252 {
253 ret = new OdDbObjectId(ptr, true);
254 }
255
257 return ret;
258}
259
261 MemoryManager mMan = MemoryManager.GetMemoryManager();
262 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #27
263 IntPtr ptr = TD_DbPINVOKE.OdDbViewRep_viewportId(swigCPtr);
264
265 OdDbObjectId ret = null;
266 if (null != mTrans)
267 {
268 mTrans.AddObject(new OdDbObjectId(ptr, true));
269 ret = new OdDbObjectId(ptr, false);
270 }
271 else
272 {
273 ret = new OdDbObjectId(ptr, true);
274 }
275
277 return ret;
278}
279
283 return ret;
284 }
285
286 public String label() {
287 string ret = TD_DbPINVOKE.OdDbViewRep_label(swigCPtr);
289 return ret;
290}
291
292 public bool labelVisibility() {
293 bool ret = TD_DbPINVOKE.OdDbViewRep_labelVisibility(swigCPtr);
295 return ret;
296 }
297
298 public double scale() {
299 double ret = TD_DbPINVOKE.OdDbViewRep_scale(swigCPtr);
301 return ret;
302 }
303
304 public bool isShaded() {
305 bool ret = TD_DbPINVOKE.OdDbViewRep_isShaded(swigCPtr);
307 return ret;
308 }
309
310 public UInt32 shadeResolution() {
311// test csout
312 /*SIMPLETYPE*/
313 UInt32 ret = TD_DbPINVOKE.OdDbViewRep_shadeResolution(swigCPtr);
315 return ret;
316 }
317
321 return ret;
322 }
323
327 return ret;
328 }
329
330 public void camera(OdGePoint3d eye, OdGePoint3d target, OdGeVector3d upVector) {
333 }
334
335 public double rotationAngle() {
336 double ret = TD_DbPINVOKE.OdDbViewRep_rotationAngle(swigCPtr);
338 return ret;
339 }
340
344 return ret;
345 }
346
348 OdGePoint3d ret = new OdGePoint3d(TD_DbPINVOKE.OdDbViewRep_center(swigCPtr), true);
350 return ret;
351 }
352
356 return ret;
357 }
358
359 public bool isScaleFromParent() {
360 bool ret = TD_DbPINVOKE.OdDbViewRep_isScaleFromParent(swigCPtr);
362 return ret;
363 }
364
365 public void setScaleFromParent(bool fromParent) {
366 TD_DbPINVOKE.OdDbViewRep_setScaleFromParent(swigCPtr, fromParent);
368 }
369
370 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
371 string ret = TD_DbPINVOKE.OdDbViewRep_getRealClassName(ptr /*SIMPLETYPE*/);
373 return ret;
374 }
375
381
387
393
398 public double vb_rotationAngle() { return this.rotationAngle(); }
399
405
406 public enum ViewStyleType {
407 kVisibleLines = 0,
411 }
412
413 public enum SourceType {
415 kInventorSource = 1,
416 kFusionSource = 2,
418 }
419
420 public enum ViewType {
421 kBaseFront = 0,
422 kBaseTop = 1,
423 kBaseRight = 2,
424 kBaseBack = 3,
425 kBaseBottom = 4,
426 kBaseLeft = 5,
431 kBaseCurrent = 10,
432 kDetail = 13,
433 kSection = 14,
434 kProjected = 15
435 }
436
437 public const int kShaded = 1;
438 public const int kLabelVisibility = 1 << 1;
439 public const int kScaleFromParent = 1 << 6;
440
441}
442
443}
static HandleRef getCPtr(OdGeMatrix3d obj)
Definition: OdGeMatrix3d.cs:26
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdGeVector3d obj)
Definition: OdGeVector3d.cs:26
virtual OdGiDrawable.DrawableType drawableType()
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static new OdDbViewRep createObject()
Definition: OdDbViewRep.cs:84
const int kScaleFromParent
Definition: OdDbViewRep.cs:439
OdGePoint2d viewBasePoint()
Definition: OdDbViewRep.cs:341
OdDbViewRep(IntPtr cPtr, bool cMemoryOwn)
Definition: OdDbViewRep.cs:21
Teigha.TD.OdDbViewRep.ViewStyleType vb_viewStyleType()
Definition: OdDbViewRep.cs:386
void setScaleFromParent(bool fromParent)
Definition: OdDbViewRep.cs:365
static new OdRxClass desc()
Definition: OdDbViewRep.cs:63
OdDbObjectId layoutId()
Definition: OdDbViewRep.cs:173
OdDbObjectId viewportId()
Definition: OdDbViewRep.cs:260
OdDbObjectId viewBorderId()
Definition: OdDbViewRep.cs:240
override void Dispose(bool disposing)
Definition: OdDbViewRep.cs:30
OdResult sketchModelSpaceToModelSpaceXform(OdGeMatrix3d mat)
Definition: OdDbViewRep.cs:104
void camera(OdGePoint3d eye, OdGePoint3d target, OdGeVector3d upVector)
Definition: OdDbViewRep.cs:330
OdResult viewModelSpaceToPaperSpaceXform(OdGeMatrix3d mat)
Definition: OdDbViewRep.cs:122
override OdRxObject queryX(OdRxClass protocolClass)
Definition: OdDbViewRep.cs:77
Teigha.TD.OdDbViewRep.ViewType vb_viewType()
Definition: OdDbViewRep.cs:392
override OdRxClass isA()
Definition: OdDbViewRep.cs:70
static HandleRef getCPtr(OdDbViewRep obj)
Definition: OdDbViewRep.cs:26
UInt64 inventorDrawingViewId()
Definition: OdDbViewRep.cs:165
OdDbViewRep.SourceType sourceType()
Definition: OdDbViewRep.cs:280
const int kLabelVisibility
Definition: OdDbViewRep.cs:438
Teigha.TD.OdDbViewRep.SourceType vb_sourceType()
Definition: OdDbViewRep.cs:380
virtual Teigha.Core.OdGiDrawable.DrawableType vb_drawableType()
Definition: OdDbViewRep.cs:404
static string getRealClassName(IntPtr ptr)
Definition: OdDbViewRep.cs:370
OdResult viewModelSpaceToModelSpaceXform(OdGeMatrix3d mat)
Definition: OdDbViewRep.cs:116
OdDbViewRep.ViewStyleType viewStyleType()
Definition: OdDbViewRep.cs:318
OdGePoint3d center()
Definition: OdDbViewRep.cs:347
OdResult sketchModelSpaceToPaperSpaceXform(OdGeMatrix3d mat)
Definition: OdDbViewRep.cs:110
OdRxSketchManager getSketchManager()
Definition: OdDbViewRep.cs:193
void setInventorDrawingViewId(UInt64 invDVid)
Definition: OdDbViewRep.cs:160
OdDbObjectId blockReference()
Definition: OdDbViewRep.cs:220
OdDbObjectId viewBlockReference()
Definition: OdDbViewRep.cs:200
OdDbViewRep.ViewType viewType()
Definition: OdDbViewRep.cs:324
OdDbObjectId selSetObjId()
Definition: OdDbViewRep.cs:128
OdResult updateViewportScale(double scale)
Definition: OdDbViewRep.cs:353
static OdDbViewRep cast(OdRxObject pObj)
Definition: OdDbViewRep.cs:43
static global::System.Exception Retrieve()
static IntPtr OdDbViewRep_queryX(HandleRef jarg1, HandleRef jarg2)
static bool OdDbViewRep_isPartialMSView(HandleRef jarg1)
static String OdDbViewRep_label(HandleRef jarg1)
static int OdDbViewRep_viewModelSpaceToPaperSpaceXform(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdDbViewRep_labelVisibility(HandleRef jarg1)
static UInt64 OdDbViewRep_inventorDrawingViewId(HandleRef jarg1)
static void OdDbViewRep_camera(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static int OdDbViewRep_viewStyleType(HandleRef jarg1)
static int OdDbViewRep_viewModelSpaceToModelSpaceXform(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdDbViewRep_scale(HandleRef jarg1)
static global::System.IntPtr OdDbViewRep_viewportId(HandleRef jarg1)
static global::System.IntPtr OdDbViewRep_center(HandleRef jarg1)
static bool OdDbViewRep_isScaleFromParent(HandleRef jarg1)
static global::System.IntPtr OdDbViewRep_selSetObjId(HandleRef jarg1)
static global::System.IntPtr OdDbViewRep_viewBorderId(HandleRef jarg1)
static int OdDbViewRep_sketchModelSpaceToPaperSpaceXform(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdDbViewRep(HandleRef jarg1)
static void OdDbViewRep_setScaleFromParent(HandleRef jarg1, bool jarg2)
static double OdDbViewRep_rotationAngle(HandleRef jarg1)
static global::System.IntPtr OdDbViewRep_viewBasePoint(HandleRef jarg1)
static int OdDbViewRep_viewType(HandleRef jarg1)
static global::System.IntPtr OdDbViewRep_blockReference(HandleRef jarg1)
static IntPtr OdDbViewRep_desc()
static void OdDbViewRep_setInventorDrawingViewId(HandleRef jarg1, UInt64 jarg2)
static uint OdDbViewRep_viewIndex(HandleRef jarg1)
static string OdDbViewRep_getRealClassName(IntPtr jarg1)
static global::System.IntPtr OdDbViewRep_layoutId(HandleRef jarg1)
static IntPtr OdDbViewRep_isA(HandleRef jarg1)
static IntPtr OdDbViewRep_createObject()
static global::System.IntPtr OdDbViewRep_viewBlockReference(HandleRef jarg1)
static UInt32 OdDbViewRep_shadeResolution(HandleRef jarg1)
static int OdDbViewRep_updateViewportScale(HandleRef jarg1, double jarg2)
static IntPtr OdDbViewRep_cast(HandleRef jarg1)
static int OdDbViewRep_sourceType(HandleRef jarg1)
static bool OdDbViewRep_isShaded(HandleRef jarg1)
static IntPtr OdDbViewRep_getSketchManager__SWIG_0(HandleRef jarg1)
static int OdDbViewRep_sketchModelSpaceToModelSpaceXform(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)