Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdUnitsFormatter.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
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdUnitsFormatter(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdUnitsFormatter_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdUnitsFormatter 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 OdUnitsFormatter cast(OdRxObject pObj) {// OdSmartPtr<OdUnitsFormatter>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdUnitsFormatter ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdUnitsFormatter)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdUnitsFormatter),ptr, true));
51 ret = (OdUnitsFormatter)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdUnitsFormatter),ptr, false);
52 }
53 else
54 {
55 ret = (OdUnitsFormatter)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdUnitsFormatter),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.OdUnitsFormatter_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.OdUnitsFormatter_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.OdUnitsFormatter_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdUnitsFormatter createObject() {// OdSmartPtr<OdUnitsFormatter>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
88 OdUnitsFormatter ret = null;
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdUnitsFormatter)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdUnitsFormatter),ptr, true));
92 ret = (OdUnitsFormatter)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdUnitsFormatter),ptr, false);
93 }
94 else
95 {
96 ret = (OdUnitsFormatter)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdUnitsFormatter),ptr, true);
97 }
98
100 return ret;
101}
102
106 return ret;
107}
108
109 public virtual OdCmColorBase unformatCmColor(String string_) {
110 //MemoryManager mMan = MemoryManager.GetMemoryManager();
111 //MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #15
112 IntPtr ptr = GlobalsPINVOKE.OdUnitsFormatter_unformatCmColor(swigCPtr, string_);
113
114 OdCmColorBase ret = null;
115 //if (null != mTrans)
116 //{
117 //mTrans.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdCmColorBase>(typeof(OdCmColorBase), ptr, true));
118 ret = Teigha.Core.Helpers.odCreateObjectInternal<OdCmColorBase>(typeof(OdCmColorBase), ptr, false);
119 //}
120 //else
121 //{
122 // ret = Teigha.Core.Helpers.odCreateObjectInternal<OdCmColorBase>(typeof(OdCmColorBase), ptr, true);
123 //}
124
126 return ret;
127}
128
129 public virtual String formatLinear(double value) {
130 string ret = GlobalsPINVOKE.OdUnitsFormatter_formatLinear(swigCPtr, value);
132 return ret;
133}
134
135 public virtual double unformatLinear(String string_) {
136 double ret = GlobalsPINVOKE.OdUnitsFormatter_unformatLinear(swigCPtr, string_);
138 return ret;
139 }
140
141 public virtual String formatAngle(double value) {
142 string ret = GlobalsPINVOKE.OdUnitsFormatter_formatAngle(swigCPtr, value);
144 return ret;
145}
146
147 public virtual double unformatAngle(String string_) {
148 double ret = GlobalsPINVOKE.OdUnitsFormatter_unformatAngle(swigCPtr, string_);
150 return ret;
151 }
152
153 public static bool isZeroFeetSuppressed(int dimzin) {
156 return ret;
157 }
158
159 public static bool isZeroInchesSuppressed(int dimzin) {
162 return ret;
163 }
164
165 public static String formatL(double value, OdUnitsFormatter.LUnits lUnits, int precision, int dimzin, int unitMode, String decsep, String thsep) {
166 string ret = GlobalsPINVOKE.OdUnitsFormatter_formatL__SWIG_0(value, (int)lUnits, precision, dimzin, unitMode, decsep, thsep);
168 return ret;
169}
170
171 public static String formatL(double value, OdUnitsFormatter.LUnits lUnits, int precision, int dimzin, int unitMode, String decsep) {
172 string ret = GlobalsPINVOKE.OdUnitsFormatter_formatL__SWIG_1(value, (int)lUnits, precision, dimzin, unitMode, decsep);
174 return ret;
175}
176
177 public static String formatL(double value, OdUnitsFormatter.LUnits lUnits, int precision, int dimzin, int unitMode) {
178 string ret = GlobalsPINVOKE.OdUnitsFormatter_formatL__SWIG_2(value, (int)lUnits, precision, dimzin, unitMode);
180 return ret;
181}
182
183 public static String formatArea(double value, OdUnitsFormatter.LUnits lUnits, int precision, int dimzin, int unitMode, String decsep, String thsep) {
184 string ret = GlobalsPINVOKE.OdUnitsFormatter_formatArea__SWIG_0(value, (int)lUnits, precision, dimzin, unitMode, decsep, thsep);
186 return ret;
187}
188
189 public static String formatArea(double value, OdUnitsFormatter.LUnits lUnits, int precision, int dimzin, int unitMode, String decsep) {
190 string ret = GlobalsPINVOKE.OdUnitsFormatter_formatArea__SWIG_1(value, (int)lUnits, precision, dimzin, unitMode, decsep);
192 return ret;
193}
194
195 public static String formatArea(double value, OdUnitsFormatter.LUnits lUnits, int precision, int dimzin, int unitMode) {
196 string ret = GlobalsPINVOKE.OdUnitsFormatter_formatArea__SWIG_2(value, (int)lUnits, precision, dimzin, unitMode);
198 return ret;
199}
200
201 public static double unformatL(String string_) {
202 double ret = GlobalsPINVOKE.OdUnitsFormatter_unformatL(string_);
204 return ret;
205 }
206
207 public static String formatA(double value, OdUnitsFormatter.AUnits aUnits, int precision, int dimzin, int unitMode, String decsep) {
208 string ret = GlobalsPINVOKE.OdUnitsFormatter_formatA__SWIG_0(value, (int)aUnits, precision, dimzin, unitMode, decsep);
210 return ret;
211}
212
213 public static String formatA(double value, OdUnitsFormatter.AUnits aUnits, int precision, int dimzin, int unitMode) {
214 string ret = GlobalsPINVOKE.OdUnitsFormatter_formatA__SWIG_1(value, (int)aUnits, precision, dimzin, unitMode);
216 return ret;
217}
218
219 public static String formatA_unnorm(double value, OdUnitsFormatter.AUnits aUnits, int precision, int dimzin, int unitMode, String decsep) {
220 string ret = GlobalsPINVOKE.OdUnitsFormatter_formatA_unnorm__SWIG_0(value, (int)aUnits, precision, dimzin, unitMode, decsep);
222 return ret;
223}
224
225 public static String formatA_unnorm(double value, OdUnitsFormatter.AUnits aUnits, int precision, int dimzin, int unitMode) {
226 string ret = GlobalsPINVOKE.OdUnitsFormatter_formatA_unnorm__SWIG_1(value, (int)aUnits, precision, dimzin, unitMode);
228 return ret;
229}
230
231 public static double unformatA(String string_) {
232 double ret = GlobalsPINVOKE.OdUnitsFormatter_unformatA(string_);
234 return ret;
235 }
236
237 public static double unformatA_unnorm(String string_, bool refuseDots) {
238 double ret = GlobalsPINVOKE.OdUnitsFormatter_unformatA_unnorm__SWIG_0(string_, refuseDots);
240 return ret;
241 }
242
243 public static double unformatA_unnorm(String string_) {
246 return ret;
247 }
248
249 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
250 string ret = GlobalsPINVOKE.OdUnitsFormatter_getRealClassName(ptr /*SIMPLETYPE*/);
252 return ret;
253 }
254
255 public enum LUnits {
256 kScientific = 1,
257 kDecimal = 2,
258 kEngineering = 3,
259 kArchitectural = 4,
260 kFractional = 5,
262 }
263
264 public enum DimzinValues {
272 }
273
274 public enum AUnits {
275 kDegrees = 0,
276 kDegMinSec = 1,
277 kGrads = 2,
278 kRadians = 3,
279 kSurveyors = 4
280 }
281
282}
283
284}
static global::System.Exception Retrieve()
static double OdUnitsFormatter_unformatA([MarshalAs(UnmanagedType.LPWStr)]String jarg1)
static String OdUnitsFormatter_formatAngle(HandleRef jarg1, double jarg2)
static double OdUnitsFormatter_unformatA_unnorm__SWIG_1([MarshalAs(UnmanagedType.LPWStr)]String jarg1)
static String OdUnitsFormatter_formatL__SWIG_0(double jarg1, int jarg2, int jarg3, int jarg4, int jarg5, [MarshalAs(UnmanagedType.LPWStr)]String jarg6, [MarshalAs(UnmanagedType.LPWStr)]String jarg7)
static IntPtr OdUnitsFormatter_cast(HandleRef jarg1)
static String OdUnitsFormatter_formatL__SWIG_1(double jarg1, int jarg2, int jarg3, int jarg4, int jarg5, [MarshalAs(UnmanagedType.LPWStr)]String jarg6)
static double OdUnitsFormatter_unformatLinear(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void delete_OdUnitsFormatter(HandleRef jarg1)
static double OdUnitsFormatter_unformatL([MarshalAs(UnmanagedType.LPWStr)]String jarg1)
static String OdUnitsFormatter_formatA__SWIG_0(double jarg1, int jarg2, int jarg3, int jarg4, int jarg5, [MarshalAs(UnmanagedType.LPWStr)]String jarg6)
static String OdUnitsFormatter_formatA_unnorm__SWIG_0(double jarg1, int jarg2, int jarg3, int jarg4, int jarg5, [MarshalAs(UnmanagedType.LPWStr)]String jarg6)
static IntPtr OdUnitsFormatter_createObject()
static String OdUnitsFormatter_formatArea__SWIG_2(double jarg1, int jarg2, int jarg3, int jarg4, int jarg5)
static bool OdUnitsFormatter_isZeroInchesSuppressed(int jarg1)
static String OdUnitsFormatter_formatArea__SWIG_1(double jarg1, int jarg2, int jarg3, int jarg4, int jarg5, [MarshalAs(UnmanagedType.LPWStr)]String jarg6)
static double OdUnitsFormatter_unformatA_unnorm__SWIG_0([MarshalAs(UnmanagedType.LPWStr)]String jarg1, bool jarg2)
static String OdUnitsFormatter_formatL__SWIG_2(double jarg1, int jarg2, int jarg3, int jarg4, int jarg5)
static IntPtr OdUnitsFormatter_isA(HandleRef jarg1)
static String OdUnitsFormatter_formatArea__SWIG_0(double jarg1, int jarg2, int jarg3, int jarg4, int jarg5, [MarshalAs(UnmanagedType.LPWStr)]String jarg6, [MarshalAs(UnmanagedType.LPWStr)]String jarg7)
static double OdUnitsFormatter_unformatAngle(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static String OdUnitsFormatter_formatA__SWIG_1(double jarg1, int jarg2, int jarg3, int jarg4, int jarg5)
static bool OdUnitsFormatter_isZeroFeetSuppressed(int jarg1)
static String OdUnitsFormatter_formatLinear(HandleRef jarg1, double jarg2)
static IntPtr OdUnitsFormatter_queryX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdUnitsFormatter_desc()
static string OdUnitsFormatter_getRealClassName(IntPtr jarg1)
static IntPtr OdUnitsFormatter_unformatCmColor(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static String OdUnitsFormatter_formatA_unnorm__SWIG_1(double jarg1, int jarg2, int jarg3, int jarg4, int jarg5)
static String OdUnitsFormatter_formatCmColor(HandleRef jarg1, HandleRef jarg2)
static HandleRef getCPtr(OdCmColorBase obj)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
virtual String formatAngle(double value)
static String formatA(double value, OdUnitsFormatter.AUnits aUnits, int precision, int dimzin, int unitMode)
static String formatL(double value, OdUnitsFormatter.LUnits lUnits, int precision, int dimzin, int unitMode)
static String formatL(double value, OdUnitsFormatter.LUnits lUnits, int precision, int dimzin, int unitMode, String decsep, String thsep)
static double unformatL(String string_)
static OdUnitsFormatter cast(OdRxObject pObj)
static String formatA_unnorm(double value, OdUnitsFormatter.AUnits aUnits, int precision, int dimzin, int unitMode)
static OdUnitsFormatter createObject()
static String formatA_unnorm(double value, OdUnitsFormatter.AUnits aUnits, int precision, int dimzin, int unitMode, String decsep)
static String formatArea(double value, OdUnitsFormatter.LUnits lUnits, int precision, int dimzin, int unitMode)
static new OdRxClass desc()
override OdRxClass isA()
static String formatL(double value, OdUnitsFormatter.LUnits lUnits, int precision, int dimzin, int unitMode, String decsep)
static string getRealClassName(IntPtr ptr)
virtual OdCmColorBase unformatCmColor(String string_)
static String formatArea(double value, OdUnitsFormatter.LUnits lUnits, int precision, int dimzin, int unitMode, String decsep)
virtual double unformatAngle(String string_)
static double unformatA_unnorm(String string_, bool refuseDots)
static HandleRef getCPtr(OdUnitsFormatter obj)
virtual String formatLinear(double value)
static bool isZeroInchesSuppressed(int dimzin)
OdUnitsFormatter(IntPtr cPtr, bool cMemoryOwn)
static String formatArea(double value, OdUnitsFormatter.LUnits lUnits, int precision, int dimzin, int unitMode, String decsep, String thsep)
override void Dispose(bool disposing)
static bool isZeroFeetSuppressed(int dimzin)
static double unformatA_unnorm(String string_)
virtual double unformatLinear(String string_)
override OdRxObject queryX(OdRxClass protocolClass)
static String formatA(double value, OdUnitsFormatter.AUnits aUnits, int precision, int dimzin, int unitMode, String decsep)
static double unformatA(String string_)
virtual String formatCmColor(OdCmColorBase value)