Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdDgAnnotationCellHeader2d.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.TG {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDgAnnotationCellHeader2d(IntPtr cPtr, bool cMemoryOwn) : base(TG_DbPINVOKE.OdDgAnnotationCellHeader2d_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDgAnnotationCellHeader2d 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
48
49 public override byte getElementSubType() {
50// test csout
51 /*SIMPLETYPE*/
54 return ret;
55 }
56
57 public static OdDgAnnotationCellHeader2d cast(OdRxObject pObj) {// OdSmartPtr<OdDgAnnotationCellHeader2d>
58 MemoryManager mMan = MemoryManager.GetMemoryManager();
59 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
61
63 if (null != mTrans)
64 {
65 mTrans.AddObject((OdDgAnnotationCellHeader2d)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgAnnotationCellHeader2d),ptr, true));
66 ret = (OdDgAnnotationCellHeader2d)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgAnnotationCellHeader2d),ptr, false);
67 }
68 else
69 {
70 ret = (OdDgAnnotationCellHeader2d)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgAnnotationCellHeader2d),ptr, true);
71 }
72
74 return ret;
75}
76
77 public new static OdRxClass desc() {
78 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TG_DbPINVOKE.OdDgAnnotationCellHeader2d_desc(),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public override OdRxClass isA() {
85 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TG_DbPINVOKE.OdDgAnnotationCellHeader2d_isA(swigCPtr),false); /*createInt 3_2*/
86
88 return ret;
89}
90
91 public override OdRxObject queryX(OdRxClass protocolClass) {
92 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),TG_DbPINVOKE.OdDgAnnotationCellHeader2d_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
93
95 return ret;
96}
97
98 public new static OdDgAnnotationCellHeader2d createObject() {// OdSmartPtr<OdDgAnnotationCellHeader2d>
99 MemoryManager mMan = MemoryManager.GetMemoryManager();
100 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
102
104 if (null != mTrans)
105 {
106 mTrans.AddObject((OdDgAnnotationCellHeader2d)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgAnnotationCellHeader2d),ptr, true));
107 ret = (OdDgAnnotationCellHeader2d)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgAnnotationCellHeader2d),ptr, false);
108 }
109 else
110 {
111 ret = (OdDgAnnotationCellHeader2d)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgAnnotationCellHeader2d),ptr, true);
112 }
113
115 return ret;
116}
117
123
124 public virtual void setUseAnnotationScaleFlag(bool bSet, double dAnnotationScale, bool bRescaleGeometry) {
125 TG_DbPINVOKE.OdDgAnnotationCellHeader2d_setUseAnnotationScaleFlag__SWIG_0(swigCPtr, bSet, dAnnotationScale, bRescaleGeometry);
127 }
128
129 public virtual void setUseAnnotationScaleFlag(bool bSet, double dAnnotationScale) {
132 }
133
138
144
145 public virtual void setAnnotationScale(double dAnnotationScale, bool bRescaleGeometry) {
146 TG_DbPINVOKE.OdDgAnnotationCellHeader2d_setAnnotationScale__SWIG_0(swigCPtr, dAnnotationScale, bRescaleGeometry);
148 }
149
150 public virtual void setAnnotationScale(double dAnnotationScale) {
153 }
154
160
166
172
173 protected static string getRealClassName(IntPtr ptr) {
174 string ret = TG_DbPINVOKE.OdDgAnnotationCellHeader2d_getRealClassName(ptr /*SIMPLETYPE*/);
176 return ret;
177 }
178
183 public virtual void vb_gripStatus(Teigha.TG.OdDgElement.GripStat status) { this.gripStatus(status); }
184
190
191}
192
193}
static HandleRef getCPtr(OdGeExtents3d obj)
virtual OdGiDrawable.DrawableType drawableType()
static HandleRef getCPtr(OdGiWorldDraw obj)
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(OdDgAnnotationCellHeader2d obj)
virtual Teigha.Core.OdGiDrawable.DrawableType vb_drawableType()
virtual void vb_gripStatus(Teigha.TG.OdDgElement.GripStat status)
override OdResult subGetGeomExtents(OdGeExtents3d extents)
virtual void setAnnotationScale(double dAnnotationScale, bool bRescaleGeometry)
virtual void setAnnotationScale(double dAnnotationScale)
static new OdDgAnnotationCellHeader2d createObject()
override OdRxObject queryX(OdRxClass protocolClass)
static OdDgAnnotationCellHeader2d cast(OdRxObject pObj)
virtual void setUseAnnotationScaleFlag(bool bSet, double dAnnotationScale, bool bRescaleGeometry)
override OdResult subGetGeomExtents(OdDgElementId idView, OdGeExtents3d extents)
override bool subWorldDraw(OdGiWorldDraw pWd)
virtual void setUseAnnotationScaleFlag(bool bSet, double dAnnotationScale)
override OdDgElement.ElementTypes getElementType()
OdDgAnnotationCellHeader2d(IntPtr cPtr, bool cMemoryOwn)
virtual void gripStatus(OdDgElement.GripStat status)
static HandleRef getCPtr(OdDgElementId obj)
static global::System.Exception Retrieve()
static IntPtr OdDgAnnotationCellHeader2d_createObject()
static IntPtr OdDgAnnotationCellHeader2d_desc()
static IntPtr OdDgAnnotationCellHeader2d_isA(HandleRef jarg1)
static bool OdDgAnnotationCellHeader2d_getUseAnnotationScaleFlag(HandleRef jarg1)
static void delete_OdDgAnnotationCellHeader2d(HandleRef jarg1)
static double OdDgAnnotationCellHeader2d_getAnnotationScale(HandleRef jarg1)
static bool OdDgAnnotationCellHeader2d_subWorldDraw(HandleRef jarg1, HandleRef jarg2)
static void OdDgAnnotationCellHeader2d_setUseAnnotationScaleFlag__SWIG_2(HandleRef jarg1, bool jarg2)
static void OdDgAnnotationCellHeader2d_setAnnotationScale__SWIG_0(HandleRef jarg1, double jarg2, bool jarg3)
static void OdDgAnnotationCellHeader2d_setUseAnnotationScaleFlag__SWIG_0(HandleRef jarg1, bool jarg2, double jarg3, bool jarg4)
static IntPtr OdDgAnnotationCellHeader2d_cast(HandleRef jarg1)
static string OdDgAnnotationCellHeader2d_getRealClassName(IntPtr jarg1)
static byte OdDgAnnotationCellHeader2d_getElementSubType(HandleRef jarg1)
static IntPtr OdDgAnnotationCellHeader2d_queryX(HandleRef jarg1, HandleRef jarg2)
static int OdDgAnnotationCellHeader2d_subGetGeomExtents__SWIG_1(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int OdDgAnnotationCellHeader2d_getElementType(HandleRef jarg1)
static void OdDgAnnotationCellHeader2d_setAnnotationScale__SWIG_1(HandleRef jarg1, double jarg2)
static void OdDgAnnotationCellHeader2d_setUseAnnotationScaleFlag__SWIG_1(HandleRef jarg1, bool jarg2, double jarg3)
static int OdDgAnnotationCellHeader2d_subGetGeomExtents__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)