Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
RText.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 RText : OdDbEntity {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public RText(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.RText_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(RText 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;
35 TD_DbPINVOKE.delete_RText(swigCPtr);
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 RText cast(OdRxObject pObj) {// OdSmartPtr<RText>
44 MemoryManager mMan = MemoryManager.GetMemoryManager();
45 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46 IntPtr ptr = TD_DbPINVOKE.RText_cast(OdRxObject.getCPtr(pObj));
47
48 RText ret = null;
49 if (null != mTrans)
50 {
51 mTrans.AddObject((RText)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(RText),ptr, true));
52 ret = (RText)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(RText),ptr, false);
53 }
54 else
55 {
56 ret = (RText)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(RText),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.RText_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.RText_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.RText_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public new static RText createObject() {// OdSmartPtr<RText>
85 MemoryManager mMan = MemoryManager.GetMemoryManager();
86 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87 IntPtr ptr = TD_DbPINVOKE.RText_createObject();
88
89 RText ret = null;
90 if (null != mTrans)
91 {
92 mTrans.AddObject((RText)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(RText),ptr, true));
93 ret = (RText)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(RText),ptr, false);
94 }
95 else
96 {
97 ret = (RText)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(RText),ptr, true);
98 }
99
101 return ret;
102}
103
105 OdGeVector3d ret = new OdGeVector3d(TD_DbPINVOKE.RText_normal(swigCPtr), true);
107 return ret;
108 }
109
113 }
114
116 OdGePoint3d ret = new OdGePoint3d(TD_DbPINVOKE.RText_getPoint(swigCPtr), true);
118 return ret;
119 }
120
121 public void setPoint(OdGePoint3d point) {
124 }
125
126 public double getRotAngle() {
127 double ret = TD_DbPINVOKE.RText_getRotAngle(swigCPtr);
129 return ret;
130 }
131
132 public void setRotAngle(double rotAngle) {
133 TD_DbPINVOKE.RText_setRotAngle(swigCPtr, rotAngle);
135 }
136
137 public double getHeight() {
138 double ret = TD_DbPINVOKE.RText_getHeight(swigCPtr);
140 return ret;
141 }
142
143 public void setHeight(double height) {
144 TD_DbPINVOKE.RText_setHeight(swigCPtr, height);
146 }
147
148 public bool isStringExpression() {
149 bool ret = TD_DbPINVOKE.RText_isStringExpression(swigCPtr);
151 return ret;
152 }
153
154 public void setToExpression(bool isExpression) {
155 TD_DbPINVOKE.RText_setToExpression(swigCPtr, isExpression);
157 }
158
159 public bool enabledMTextSequences() {
160 bool ret = TD_DbPINVOKE.RText_enabledMTextSequences(swigCPtr);
162 return ret;
163 }
164
165 public void enableMTextSequences(bool enable) {
168 }
169
171 string ret = TD_DbPINVOKE.RText_getStringContents(swigCPtr);
173 return ret;
174}
175
176 public void setStringContents(String stringContents) {
177 TD_DbPINVOKE.RText_setStringContents(swigCPtr, stringContents);
179 }
180
182 MemoryManager mMan = MemoryManager.GetMemoryManager();
183 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #27
184 IntPtr ptr = TD_DbPINVOKE.RText_textStyleId(swigCPtr);
185
186 OdDbObjectId ret = null;
187 if (null != mTrans)
188 {
189 mTrans.AddObject(new OdDbObjectId(ptr, true));
190 ret = new OdDbObjectId(ptr, false);
191 }
192 else
193 {
194 ret = new OdDbObjectId(ptr, true);
195 }
196
198 return ret;
199}
200
202 string ret = TD_DbPINVOKE.RText_textStyleName(swigCPtr);
204 return ret;
205}
206
210 }
211
212 public void setTextStyle(String name) {
215 }
216
217 public override OdResult dwgInFields(OdDbDwgFiler pFiler) {
220 return ret;
221 }
222
223 public override void dwgOutFields(OdDbDwgFiler pFiler) {
226 }
227
228 public override OdResult dxfInFields(OdDbDxfFiler pFiler) {
231 return ret;
232 }
233
234 public override void dxfOutFields(OdDbDxfFiler pFiler) {
237 }
238
239 public override bool subWorldDraw(OdGiWorldDraw pWd) {
240 bool ret = TD_DbPINVOKE.RText_subWorldDraw(swigCPtr, OdGiWorldDraw.getCPtr(pWd));
242 return ret;
243 }
244
245 public virtual new OdResult subTransformBy(OdGeMatrix3d xfm) {
248 return ret;
249 }
250
251 public virtual new OdResult subGetTransformedCopy(OdGeMatrix3d mat, ref OdDbEntity /*OUT_PARAM for SMARTPTR*/ pCopy) {
252 /*OUT_PARAM for SMARTPTR pre*/ IntPtr tmp_pCopy = pCopy == null ? IntPtr.Zero : OdDbEntity.getCPtr(pCopy).Handle;
253 IntPtr saved_pCopy = tmp_pCopy;
254 /*OUT_PARAM for SMARTPTR pre*/
255 try {
256 OdResult ret = (OdResult)TD_DbPINVOKE.RText_subGetTransformedCopy(swigCPtr, OdGeMatrix3d.getCPtr(mat), ref tmp_pCopy /*OUT_PARAM for SMARTPTR*/);
258 return ret;
259 } finally {
260if(tmp_pCopy == IntPtr.Zero) pCopy = null;
261 if(tmp_pCopy != IntPtr.Zero && tmp_pCopy != saved_pCopy)
262 {
263 MemoryTransaction mTrans_pCopy = MemoryManager.GetMemoryManager().GetCurrentTransaction();
264 if(mTrans_pCopy != null)
265 mTrans_pCopy.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdDbEntity>(typeof(OdDbEntity), tmp_pCopy, true));
266 pCopy = Teigha.Core.Helpers.odCreateObjectInternal<OdDbEntity>(typeof(OdDbEntity), tmp_pCopy, mTrans_pCopy == null);
267 /*OUT_PARAM for SMARTPTR*/
268 }
269 }
270 }
271
272 public override void subClose() {
275 }
276
277 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
278 string ret = TD_DbPINVOKE.RText_getRealClassName(ptr /*SIMPLETYPE*/);
280 return ret;
281 }
282
287 public void vb_gripStatus(Teigha.Core.GripStat status) { this.gripStatus(status); }
288
294
299 public string vb_material() { return this.material(); }
300
305 public virtual Teigha.TD.CollisionType vb_collisionType() { return this.collisionType(); }
306
311 public string vb_linetype() { return this.linetype(); }
312
318
324
325}
326
327}
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(OdGiWorldDraw obj)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdDbDwgFiler obj)
Definition: OdDbDwgFiler.cs:26
static HandleRef getCPtr(OdDbDxfFiler obj)
Definition: OdDbDxfFiler.cs:26
LineWeight lineWeight()
Definition: OdDbEntity.cs:556
virtual CollisionType collisionType()
Definition: OdDbEntity.cs:596
static HandleRef getCPtr(OdDbEntity obj)
Definition: OdDbEntity.cs:26
virtual void gripStatus(GripStat status)
Definition: OdDbEntity.cs:935
Visibility visibility()
Definition: OdDbEntity.cs:527
static HandleRef getCPtr(OdDbObjectId obj)
Definition: OdDbObjectId.cs:27
static RText cast(OdRxObject pObj)
Definition: RText.cs:43
void setPoint(OdGePoint3d point)
Definition: RText.cs:121
void enableMTextSequences(bool enable)
Definition: RText.cs:165
string vb_linetype()
Definition: RText.cs:311
override OdResult dxfInFields(OdDbDxfFiler pFiler)
Definition: RText.cs:228
virtual new OdResult subGetTransformedCopy(OdGeMatrix3d mat, ref OdDbEntity pCopy)
Definition: RText.cs:251
Teigha.Core.LineWeight vb_lineWeight()
Definition: RText.cs:317
void setNormal(OdGeVector3d normal)
Definition: RText.cs:110
double getHeight()
Definition: RText.cs:137
static new RText createObject()
Definition: RText.cs:84
virtual Teigha.Core.OdGiDrawable.DrawableType vb_drawableType()
Definition: RText.cs:323
OdDbObjectId textStyleId()
Definition: RText.cs:181
bool enabledMTextSequences()
Definition: RText.cs:159
void setTextStyle(String name)
Definition: RText.cs:212
bool isStringExpression()
Definition: RText.cs:148
virtual new OdResult subTransformBy(OdGeMatrix3d xfm)
Definition: RText.cs:245
virtual Teigha.TD.CollisionType vb_collisionType()
Definition: RText.cs:305
OdGeVector3d normal()
Definition: RText.cs:104
void vb_gripStatus(Teigha.Core.GripStat status)
Definition: RText.cs:287
String textStyleName()
Definition: RText.cs:201
override void Dispose(bool disposing)
Definition: RText.cs:30
Teigha.TD.Visibility vb_visibility()
Definition: RText.cs:293
override OdResult dwgInFields(OdDbDwgFiler pFiler)
Definition: RText.cs:217
RText(IntPtr cPtr, bool cMemoryOwn)
Definition: RText.cs:21
override void dxfOutFields(OdDbDxfFiler pFiler)
Definition: RText.cs:234
override bool subWorldDraw(OdGiWorldDraw pWd)
Definition: RText.cs:239
static new OdRxClass desc()
Definition: RText.cs:63
override OdRxClass isA()
Definition: RText.cs:70
String getStringContents()
Definition: RText.cs:170
void setToExpression(bool isExpression)
Definition: RText.cs:154
OdGePoint3d getPoint()
Definition: RText.cs:115
static string getRealClassName(IntPtr ptr)
Definition: RText.cs:277
override void dwgOutFields(OdDbDwgFiler pFiler)
Definition: RText.cs:223
void setHeight(double height)
Definition: RText.cs:143
void setStringContents(String stringContents)
Definition: RText.cs:176
void setRotAngle(double rotAngle)
Definition: RText.cs:132
override void subClose()
Definition: RText.cs:272
override OdRxObject queryX(OdRxClass protocolClass)
Definition: RText.cs:77
void setTextStyle(OdDbObjectId textStyleId)
Definition: RText.cs:207
double getRotAngle()
Definition: RText.cs:126
static HandleRef getCPtr(RText obj)
Definition: RText.cs:26
string vb_material()
Definition: RText.cs:299
static global::System.Exception Retrieve()
static void RText_subClose(HandleRef jarg1)
static void RText_setStringContents(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void RText_setTextStyle__SWIG_0(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static string RText_getRealClassName(IntPtr jarg1)
static bool RText_subWorldDraw(HandleRef jarg1, HandleRef jarg2)
static String RText_textStyleName(HandleRef jarg1)
static void RText_setToExpression(HandleRef jarg1, bool jarg2)
static void RText_setHeight(HandleRef jarg1, double jarg2)
static int RText_subTransformBy(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double RText_getRotAngle(HandleRef jarg1)
static double RText_getHeight(HandleRef jarg1)
static void RText_enableMTextSequences(HandleRef jarg1, bool jarg2)
static int RText_dwgInFields(HandleRef jarg1, HandleRef jarg2)
static int RText_subGetTransformedCopy(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ref IntPtr jarg3)
static void delete_RText(HandleRef jarg1)
static global::System.IntPtr RText_normal(HandleRef jarg1)
static String RText_getStringContents(HandleRef jarg1)
static bool RText_isStringExpression(HandleRef jarg1)
static IntPtr RText_queryX(HandleRef jarg1, HandleRef jarg2)
static void RText_setPoint(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr RText_isA(HandleRef jarg1)
static void RText_setRotAngle(HandleRef jarg1, double jarg2)
static void RText_setTextStyle__SWIG_1(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void RText_dwgOutFields(HandleRef jarg1, HandleRef jarg2)
static global::System.IntPtr RText_textStyleId(HandleRef jarg1)
static bool RText_enabledMTextSequences(HandleRef jarg1)
static int RText_dxfInFields(HandleRef jarg1, HandleRef jarg2)
static IntPtr RText_cast(HandleRef jarg1)
static IntPtr RText_createObject()
static void RText_dxfOutFields(HandleRef jarg1, HandleRef jarg2)
static global::System.IntPtr RText_getPoint(HandleRef jarg1)
static void RText_setNormal(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr RText_desc()