Extended .NET SDK Documentation 2025 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
109
115
120
125
131
137
143
149
155
161
166
167 public bool isPartialMSView() {
168 bool ret = TD_DbPINVOKE.OdDbViewRep_isPartialMSView(swigCPtr);
170 return ret;
171 }
172
173 public UInt32 viewIndex() {
174// test csout
175 /*SIMPLETYPE*/
176 UInt32 ret = TD_DbPINVOKE.OdDbViewRep_viewIndex(swigCPtr);
178 return ret;
179 }
180
185
186 public UInt64 inventorDrawingViewId() {
187// test csout
188 /*SIMPLETYPE*/
189 UInt64 ret = TD_DbPINVOKE.OdDbViewRep_inventorDrawingViewId(swigCPtr);
191 return ret;
192 }
193
199
201 global::System.IntPtr cPtr = TD_DbPINVOKE.OdDbViewRep_logical__SWIG_0(swigCPtr, forWrite);
202 SWIGTYPE_p_OdDbViewRepLogical ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_OdDbViewRepLogical(cPtr, false);
204 return ret;
205 }
206
208 global::System.IntPtr cPtr = TD_DbPINVOKE.OdDbViewRep_logical__SWIG_1(swigCPtr);
209 SWIGTYPE_p_OdDbViewRepLogical ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_OdDbViewRepLogical(cPtr, false);
211 return ret;
212 }
213
215 OdRxSketchManager ret = (OdRxSketchManager)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxSketchManager),TD_DbPINVOKE.OdDbViewRep_getSketchManager__SWIG_0(swigCPtr),false); /*createInt 3_2*/
216
218 return ret;
219}
220
226
232
238
244
250
251 public OdDbObjectId cutDefinitionId(UInt32 index) {
252 OdDbObjectId ret = new OdDbObjectId(TD_DbPINVOKE.OdDbViewRep_cutDefinitionId__SWIG_0(swigCPtr, index /*SIMPLETYPE*/), true);
254 return ret;
255 }
256
262
268
274
275 public String label() {
276 string ret = TD_DbPINVOKE.OdDbViewRep_label(swigCPtr);
278 return ret;
279}
280
281 public bool labelVisibility() {
282 bool ret = TD_DbPINVOKE.OdDbViewRep_labelVisibility(swigCPtr);
284 return ret;
285 }
286
291
292 public double scale() {
293 double ret = TD_DbPINVOKE.OdDbViewRep_scale(swigCPtr);
295 return ret;
296 }
297
298 public bool isShaded() {
299 bool ret = TD_DbPINVOKE.OdDbViewRep_isShaded(swigCPtr);
301 return ret;
302 }
303
309
315
320
326
331
332 public bool foreshortened() {
333 bool ret = TD_DbPINVOKE.OdDbViewRep_foreshortened(swigCPtr);
335 return ret;
336 }
337
342
348
353
359
364
369
374
379
380 public double rotationAngle() {
381 double ret = TD_DbPINVOKE.OdDbViewRep_rotationAngle(swigCPtr);
383 return ret;
384 }
385
391
397
403
409
414
415 public bool inheritSection() {
416 bool ret = TD_DbPINVOKE.OdDbViewRep_inheritSection(swigCPtr);
418 return ret;
419 }
420
425
431
432 public static OdDbViewRep createViewRep(OdDbDatabase db, OdDbViewInitParams params_, OdDbViewSymbol viewSymbol) {// OdSmartPtr<OdDbViewRep>
433 MemoryManager mMan = MemoryManager.GetMemoryManager();
434 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
436
437 OdDbViewRep ret = null;
438 if (null != mTrans)
439 {
440 mTrans.AddObject((OdDbViewRep)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbViewRep),ptr, true));
441 ret = (OdDbViewRep)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbViewRep),ptr, false);
442 }
443 else
444 {
445 ret = (OdDbViewRep)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbViewRep),ptr, true);
446 }
447
449 return ret;
450}
451
452 public static OdDbViewRep createViewRep(OdDbDatabase db, OdDbViewInitParams params_) {// OdSmartPtr<OdDbViewRep>
453 MemoryManager mMan = MemoryManager.GetMemoryManager();
454 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
456
457 OdDbViewRep ret = null;
458 if (null != mTrans)
459 {
460 mTrans.AddObject((OdDbViewRep)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbViewRep),ptr, true));
461 ret = (OdDbViewRep)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbViewRep),ptr, false);
462 }
463 else
464 {
465 ret = (OdDbViewRep)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbViewRep),ptr, true);
466 }
467
469 return ret;
470}
471
473 global::System.IntPtr cPtr = TD_DbPINVOKE.OdDbViewRep_bodyManager__SWIG_0(swigCPtr);
474 SWIGTYPE_p_OdDbViewRepBodyManager ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_OdDbViewRepBodyManager(cPtr, false);
476 return ret;
477 }
478
483
489
495
500
501 protected static string getRealClassName(IntPtr ptr) {
502 string ret = TD_DbPINVOKE.OdDbViewRep_getRealClassName(ptr /*SIMPLETYPE*/);
504 return ret;
505 }
506
512
518
524
529 public double vb_rotationAngle() { return this.rotationAngle(); }
530
536
537 public enum ViewStyleType {
540 }
541
542 public enum SourceType {
544 kInventorSource = 1,
545 kFusionSource = 2,
547 }
548
549 public enum ViewType {
550 kBase = 0,
551 kAuxiliary = 1,
552 kDetail = 2,
553 kSection = 3,
554 kProjected = 4
555 }
556
557 public enum ViewOrientType {
558 kFront = 0,
559 kTop = 1,
560 kRight = 2,
561 kBack = 3,
562 kBottom = 4,
563 kLeft = 5,
564 kNEIsometric = 6,
565 kNWIsometric = 7,
566 kSEIsometric = 8,
567 kSWIsometric = 9,
578 kCustom = 20,
579 kCurrent = 21
580 }
581
582}
583
584}
static HandleRef getCPtr(OdGeMatrix3d obj)
static HandleRef getCPtr(OdGePoint3d obj)
static HandleRef getCPtr(OdGeVector3d obj)
virtual OdGiDrawable.DrawableType drawableType()
static HandleRef getCPtr(OdRxClass obj)
Definition OdRxClass.cs:25
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition OdRxObject.cs:21
static HandleRef getCPtr(OdRxObject obj)
Definition OdRxObject.cs:26
static HandleRef getCPtr(OdDbDatabase obj)
static HandleRef getCPtr(OdDbObjectId obj)
static HandleRef getCPtr(OdDbViewInitParams obj)
void setLabelVisibility(bool vis)
bool interferenceEdgesVisibility()
static new OdDbViewRep createObject()
OdGePoint2d viewBasePoint()
void setViewOrientType(OdDbViewRep.ViewOrientType type)
OdDbViewRep(IntPtr cPtr, bool cMemoryOwn)
OdResult sketchModelSpaceToViewModelSpaceXform(OdGeMatrix3d mat)
Teigha.TD.OdDbViewRep.ViewStyleType vb_viewStyleType()
void setCamera(OdGePoint3d target, OdGePoint3d eye, OdGeVector3d up)
void setScaleFromParent(bool fromParent)
void setViewStyleType(OdDbViewRep.ViewStyleType vst)
static new OdRxClass desc()
OdDbObjectId layoutId()
void setInheritSection(bool inherit)
SWIGTYPE_p_OdDbViewRepLogical logical(bool forWrite)
OdDbObjectId viewportId()
void setForeshortened(bool val)
void setIsShaded(bool doIt)
SWIGTYPE_p_OdDbViewRepBodyManager bodyManager()
OdDbObjectId viewBorderId()
static OdDbViewRep createViewRep(OdDbDatabase db, OdDbViewInitParams params_, OdDbViewSymbol viewSymbol)
override void Dispose(bool disposing)
OdResult sketchModelSpaceToModelSpaceXform(OdGeMatrix3d mat)
void camera(OdGePoint3d eye, OdGePoint3d target, OdGeVector3d upVector)
OdResult viewModelSpaceToPaperSpaceXform(OdGeMatrix3d mat)
OdDbObjectId entityBackupBlockRef()
override OdRxObject queryX(OdRxClass protocolClass)
Teigha.TD.OdDbViewRep.ViewType vb_viewType()
override OdRxClass isA()
OdDbObjectId shadedImageViewportId()
static HandleRef getCPtr(OdDbViewRep obj)
UInt64 inventorDrawingViewId()
OdDbViewRep.SourceType sourceType()
OdDbObjectId orientationId()
Teigha.TD.OdDbViewRep.SourceType vb_sourceType()
void setTangentEdgeVisibility(bool val)
virtual Teigha.Core.OdGiDrawable.DrawableType vb_drawableType()
SWIGTYPE_p_OdDbViewRepLogical logical()
static string getRealClassName(IntPtr ptr)
OdResult viewModelSpaceToModelSpaceXform(OdGeMatrix3d mat)
OdDbViewRep.ViewStyleType viewStyleType()
OdDbObjectId lookUpSectionSymbol()
OdDbObjectId cutDefinitionId()
OdGePoint3d center()
override void subClose()
void setSelSetObjId(OdDbObjectId id)
OdDbViewRep.ViewOrientType viewOrientType()
static OdDbViewRep createViewRep(OdDbDatabase db, OdDbViewInitParams params_)
OdResult sketchModelSpaceToPaperSpaceXform(OdGeMatrix3d mat)
OdRxSketchManager getSketchManager()
void setInventorDrawingViewId(UInt64 invDVid)
OdDbObjectId viewBlockReference()
OdDbViewRep.ViewType viewType()
OdResult loadBodyOverrides()
OdDbObjectId selSetObjId()
void setViewType(OdDbViewRep.ViewType type)
OdResult updateViewportScale(double scale)
OdDbViewRepStandard.DpiResolutionType shadeResolution()
void setInterferenceEdgesVisibility(bool val)
static OdDbViewRep cast(OdRxObject pObj)
void setInheritViewStyle(bool value)
OdDbObjectId cutDefinitionId(UInt32 index)
static HandleRef getCPtr(OdDbViewSymbol obj)
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 global::System.IntPtr OdDbViewRep_entityBackupBlockRef(HandleRef jarg1)
static void OdDbViewRep_setForeshortened(HandleRef jarg1, bool jarg2)
static void OdDbViewRep_setIsShaded(HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdDbViewRep_shadedImageViewportId(HandleRef jarg1)
static global::System.IntPtr OdDbViewRep_bodyManager__SWIG_0(HandleRef jarg1)
static void OdDbViewRep_setLabelVisibility(HandleRef jarg1, bool jarg2)
static int OdDbViewRep_viewModelSpaceToPaperSpaceXform(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdDbViewRep_labelVisibility(HandleRef jarg1)
static void OdDbViewRep_setInterferenceEdgesVisibility(HandleRef jarg1, bool jarg2)
static UInt64 OdDbViewRep_inventorDrawingViewId(HandleRef jarg1)
static global::System.IntPtr OdDbViewRep_orientationId(HandleRef jarg1)
static int OdDbViewRep_loadBodyOverrides(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 bool OdDbViewRep_foreshortened(HandleRef jarg1)
static void OdDbViewRep_setViewStyleType(HandleRef jarg1, int jarg2)
static global::System.IntPtr OdDbViewRep_cutDefinitionId__SWIG_1(HandleRef jarg1)
static int OdDbViewRep_viewModelSpaceToModelSpaceXform(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDbViewRep_viewOrientType(HandleRef jarg1)
static void OdDbViewRep_setInheritViewStyle(HandleRef jarg1, bool jarg2)
static bool OdDbViewRep_interferenceEdgesVisibility(HandleRef jarg1)
static double OdDbViewRep_scale(HandleRef jarg1)
static global::System.IntPtr OdDbViewRep_viewportId(HandleRef jarg1)
static bool OdDbViewRep_inheritSection(HandleRef jarg1)
static void OdDbViewRep_setInheritSection(HandleRef jarg1, bool jarg2)
static bool OdDbViewRep_inheritViewStyle(HandleRef jarg1)
static void OdDbViewRep_subClose(HandleRef jarg1)
static global::System.IntPtr OdDbViewRep_center(HandleRef jarg1)
static void OdDbViewRep_setCamera(HandleRef jarg1, IntPtr jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static bool OdDbViewRep_isScaleFromParent(HandleRef jarg1)
static IntPtr OdDbViewRep_createViewRep__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbViewRep_setViewType(HandleRef jarg1, int jarg2)
static bool OdDbViewRep_tangentEdgeVisibility(HandleRef jarg1)
static global::System.IntPtr OdDbViewRep_selSetObjId(HandleRef jarg1)
static global::System.IntPtr OdDbViewRep_viewBorderId(HandleRef jarg1)
static global::System.IntPtr OdDbViewRep_cutDefinitionId__SWIG_0(HandleRef jarg1, UInt32 jarg2)
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 bool OdDbViewRep_bodyOverridesLoaded(HandleRef jarg1)
static void OdDbViewRep_setTangentEdgeVisibility(HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdDbViewRep_logical__SWIG_1(HandleRef jarg1)
static global::System.IntPtr OdDbViewRep_lookUpSectionSymbol(HandleRef jarg1)
static global::System.IntPtr OdDbViewRep_viewBasePoint(HandleRef jarg1)
static int OdDbViewRep_viewType(HandleRef jarg1)
static UInt32 OdDbViewRep_viewIndex(HandleRef jarg1)
static IntPtr OdDbViewRep_desc()
static global::System.IntPtr OdDbViewRep_logical__SWIG_0(HandleRef jarg1, bool jarg2)
static void OdDbViewRep_setInventorDrawingViewId(HandleRef jarg1, UInt64 jarg2)
static string OdDbViewRep_getRealClassName(IntPtr jarg1)
static void OdDbViewRep_clearBodyManager(HandleRef 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 int OdDbViewRep_shadeResolution(HandleRef jarg1)
static int OdDbViewRep_updateViewportScale(HandleRef jarg1, double jarg2)
static IntPtr OdDbViewRep_createViewRep__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, HandleRef jarg3)
static IntPtr OdDbViewRep_cast(HandleRef jarg1)
static int OdDbViewRep_sketchModelSpaceToViewModelSpaceXform(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
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)
static void OdDbViewRep_setSelSetObjId(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbViewRep_setViewOrientType(HandleRef jarg1, int jarg2)