Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDbUnitsFormatterImpl.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
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDbUnitsFormatterImpl(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbUnitsFormatterImpl_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDbUnitsFormatterImpl 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 OdDbUnitsFormatterImpl cast(OdRxObject pObj) {// OdSmartPtr<OdDbUnitsFormatterImpl>
44 MemoryManager mMan = MemoryManager.GetMemoryManager();
45 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
47
48 OdDbUnitsFormatterImpl ret = null;
49 if (null != mTrans)
50 {
51 mTrans.AddObject((OdDbUnitsFormatterImpl)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbUnitsFormatterImpl),ptr, true));
52 ret = (OdDbUnitsFormatterImpl)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbUnitsFormatterImpl),ptr, false);
53 }
54 else
55 {
56 ret = (OdDbUnitsFormatterImpl)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbUnitsFormatterImpl),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.OdDbUnitsFormatterImpl_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.OdDbUnitsFormatterImpl_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.OdDbUnitsFormatterImpl_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public new static OdDbUnitsFormatterImpl createObject() {// OdSmartPtr<OdDbUnitsFormatterImpl>
85 MemoryManager mMan = MemoryManager.GetMemoryManager();
86 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
88
89 OdDbUnitsFormatterImpl ret = null;
90 if (null != mTrans)
91 {
92 mTrans.AddObject((OdDbUnitsFormatterImpl)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbUnitsFormatterImpl),ptr, true));
93 ret = (OdDbUnitsFormatterImpl)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbUnitsFormatterImpl),ptr, false);
94 }
95 else
96 {
97 ret = (OdDbUnitsFormatterImpl)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbUnitsFormatterImpl),ptr, true);
98 }
99
101 return ret;
102}
103
107 return ret;
108}
109
110 public override OdCmColorBase unformatCmColor(String string_) {
111 //MemoryManager mMan = MemoryManager.GetMemoryManager();
112 //MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #15
113 IntPtr ptr = TD_DbPINVOKE.OdDbUnitsFormatterImpl_unformatCmColor(swigCPtr, string_);
114
115 OdCmColorBase ret = null;
116 //if (null != mTrans)
117 //{
118 //mTrans.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdCmColorBase>(typeof(OdCmColorBase), ptr, true));
119 ret = Teigha.Core.Helpers.odCreateObjectInternal<OdCmColorBase>(typeof(OdCmColorBase), ptr, false);
120 //}
121 //else
122 //{
123 // ret = Teigha.Core.Helpers.odCreateObjectInternal<OdCmColorBase>(typeof(OdCmColorBase), ptr, true);
124 //}
125
127 return ret;
128}
129
130 public override String formatLinear(double value) {
133 return ret;
134}
135
136 public override double unformatLinear(String string_) {
137 double ret = TD_DbPINVOKE.OdDbUnitsFormatterImpl_unformatLinear(swigCPtr, string_);
139 return ret;
140 }
141
142 public override String formatAngle(double value) {
145 return ret;
146}
147
148 public override double unformatAngle(String string_) {
149 double ret = TD_DbPINVOKE.OdDbUnitsFormatterImpl_unformatAngle(swigCPtr, string_);
151 return ret;
152 }
153
154 public override double toUserAngle(double wcsAngle) {
155 double ret = TD_DbPINVOKE.OdDbUnitsFormatterImpl_toUserAngle(swigCPtr, wcsAngle);
157 return ret;
158 }
159
160 public override double fromUserAngle(double ucsAngle) {
161 double ret = TD_DbPINVOKE.OdDbUnitsFormatterImpl_fromUserAngle(swigCPtr, ucsAngle);
163 return ret;
164 }
165
169 return ret;
170}
171
172 public override OdGePoint3d unformatPoint(String string_) {
175 return ret;
176 }
177
178 public override OdGePoint3d toUCS(OdGePoint3d wcsPt) {
181 return ret;
182 }
183
184 public override OdGePoint3d fromUCS(OdGePoint3d ucsPt) {
187 return ret;
188 }
189
190 public void setDatabase(OdDbDatabase db) {
193 }
194
195 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
196 string ret = TD_DbPINVOKE.OdDbUnitsFormatterImpl_getRealClassName(ptr /*SIMPLETYPE*/);
198 return ret;
199 }
200
201}
202
203}
static HandleRef getCPtr(OdCmColorBase obj)
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdDbDatabase obj)
Definition: OdDbDatabase.cs:26
override OdGePoint3d unformatPoint(String string_)
override double fromUserAngle(double ucsAngle)
override String formatPoint(OdGePoint3d value)
override String formatLinear(double value)
static OdDbUnitsFormatterImpl cast(OdRxObject pObj)
override OdCmColorBase unformatCmColor(String string_)
OdDbUnitsFormatterImpl(IntPtr cPtr, bool cMemoryOwn)
override double unformatAngle(String string_)
static string getRealClassName(IntPtr ptr)
override OdGePoint3d fromUCS(OdGePoint3d ucsPt)
override OdGePoint3d toUCS(OdGePoint3d wcsPt)
override OdRxObject queryX(OdRxClass protocolClass)
static new OdDbUnitsFormatterImpl createObject()
override void Dispose(bool disposing)
override String formatAngle(double value)
override double toUserAngle(double wcsAngle)
override double unformatLinear(String string_)
static HandleRef getCPtr(OdDbUnitsFormatterImpl obj)
override String formatCmColor(OdCmColorBase value)
static global::System.Exception Retrieve()
static String OdDbUnitsFormatterImpl_formatLinear(HandleRef jarg1, double jarg2)
static double OdDbUnitsFormatterImpl_unformatAngle(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static String OdDbUnitsFormatterImpl_formatPoint(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDbUnitsFormatterImpl_unformatCmColor(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static double OdDbUnitsFormatterImpl_fromUserAngle(HandleRef jarg1, double jarg2)
static IntPtr OdDbUnitsFormatterImpl_cast(HandleRef jarg1)
static IntPtr OdDbUnitsFormatterImpl_desc()
static global::System.IntPtr OdDbUnitsFormatterImpl_unformatPoint(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void delete_OdDbUnitsFormatterImpl(HandleRef jarg1)
static String OdDbUnitsFormatterImpl_formatAngle(HandleRef jarg1, double jarg2)
static void OdDbUnitsFormatterImpl_setDatabase(HandleRef jarg1, HandleRef jarg2)
static String OdDbUnitsFormatterImpl_formatCmColor(HandleRef jarg1, HandleRef jarg2)
static string OdDbUnitsFormatterImpl_getRealClassName(IntPtr jarg1)
static IntPtr OdDbUnitsFormatterImpl_queryX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDbUnitsFormatterImpl_createObject()
static double OdDbUnitsFormatterImpl_toUserAngle(HandleRef jarg1, double jarg2)
static global::System.IntPtr OdDbUnitsFormatterImpl_fromUCS(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdDbUnitsFormatterImpl_toUCS(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDbUnitsFormatterImpl_isA(HandleRef jarg1)
static double OdDbUnitsFormatterImpl_unformatLinear(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)