Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGeodeticTransformationDefinition.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 OdGeodeticTransformationDefinition(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGeodeticTransformationDefinition_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGeodeticTransformationDefinition 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 OdGeodeticTransformationDefinition cast(OdRxObject pObj) {// OdSmartPtr<OdSpatialReference::OdGeodeticTransformationDefinition>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdGeodeticTransformationDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGeodeticTransformationDefinition),ptr, true));
51 ret = (OdGeodeticTransformationDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGeodeticTransformationDefinition),ptr, false);
52 }
53 else
54 {
55 ret = (OdGeodeticTransformationDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGeodeticTransformationDefinition),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.OdGeodeticTransformationDefinition_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.OdGeodeticTransformationDefinition_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.OdGeodeticTransformationDefinition_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdGeodeticTransformationDefinition createObject() {// OdSmartPtr<OdSpatialReference::OdGeodeticTransformationDefinition>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdGeodeticTransformationDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGeodeticTransformationDefinition),ptr, true));
92 ret = (OdGeodeticTransformationDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGeodeticTransformationDefinition),ptr, false);
93 }
94 else
95 {
96 ret = (OdGeodeticTransformationDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGeodeticTransformationDefinition),ptr, true);
97 }
98
100 return ret;
101}
102
103 public static OdResult load(String sCode, ref OdGeodeticTransformationDefinition /*OUT_PARAM for SMARTPTR*/ pGeodeticTransformationDefinition) {
104 /*OUT_PARAM for SMARTPTR pre*/ IntPtr tmp_pGeodeticTransformationDefinition = pGeodeticTransformationDefinition == null ? IntPtr.Zero : OdGeodeticTransformationDefinition.getCPtr(pGeodeticTransformationDefinition).Handle;
105 IntPtr saved_pGeodeticTransformationDefinition = tmp_pGeodeticTransformationDefinition;
106 /*OUT_PARAM for SMARTPTR pre*/
107 try {
108 OdResult ret = (OdResult)GlobalsPINVOKE.OdGeodeticTransformationDefinition_load(sCode, ref tmp_pGeodeticTransformationDefinition /*OUT_PARAM for SMARTPTR*/);
110 return ret;
111 } finally {
112if(tmp_pGeodeticTransformationDefinition == IntPtr.Zero) pGeodeticTransformationDefinition = null;
113 if(tmp_pGeodeticTransformationDefinition != IntPtr.Zero && tmp_pGeodeticTransformationDefinition != saved_pGeodeticTransformationDefinition)
114 {
115 MemoryTransaction mTrans_pGeodeticTransformationDefinition = MemoryManager.GetMemoryManager().GetCurrentTransaction();
116 if(mTrans_pGeodeticTransformationDefinition != null)
117 mTrans_pGeodeticTransformationDefinition.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdGeodeticTransformationDefinition>(typeof(OdGeodeticTransformationDefinition), tmp_pGeodeticTransformationDefinition, true));
118 pGeodeticTransformationDefinition = Teigha.Core.Helpers.odCreateObjectInternal<OdGeodeticTransformationDefinition>(typeof(OdGeodeticTransformationDefinition), tmp_pGeodeticTransformationDefinition, mTrans_pGeodeticTransformationDefinition == null);
119 /*OUT_PARAM for SMARTPTR*/
120 }
121 }
122 }
123
129
130 public OdResult getSourceDatum(ref string sSourceDatum) {
131IntPtr tmp_sSourceDatum = Marshal.StringToCoTaskMemUni(sSourceDatum);
132 IntPtr saved_sSourceDatum = tmp_sSourceDatum;
133 try {
136 return ret;
137 } finally {
138if (tmp_sSourceDatum != saved_sSourceDatum) sSourceDatum = Marshal.PtrToStringUni(tmp_sSourceDatum);
139 }
140 }
141
147
148 public OdResult getTargetDatum(ref string sTargetDatum) {
149IntPtr tmp_sTargetDatum = Marshal.StringToCoTaskMemUni(sTargetDatum);
150 IntPtr saved_sTargetDatum = tmp_sTargetDatum;
151 try {
154 return ret;
155 } finally {
156if (tmp_sTargetDatum != saved_sTargetDatum) sTargetDatum = Marshal.PtrToStringUni(tmp_sTargetDatum);
157 }
158 }
159
165
166 public OdResult getGroup(ref string sGroup) {
167IntPtr tmp_sGroup = Marshal.StringToCoTaskMemUni(sGroup);
168 IntPtr saved_sGroup = tmp_sGroup;
169 try {
172 return ret;
173 } finally {
174if (tmp_sGroup != saved_sGroup) sGroup = Marshal.PtrToStringUni(tmp_sGroup);
175 }
176 }
177
183
189
190 public OdResult setEpsgCode(Int16 nEpsgCode) {
191 OdResult ret = (OdResult)GlobalsPINVOKE.OdGeodeticTransformationDefinition_setEpsgCode(swigCPtr, nEpsgCode /*SIMPLETYPE*/);
193 return ret;
194 }
195
196 public OdResult getEpsgVariation(out Int16 nEpsgVariation) {
199 return ret;
200 }
201
202 public OdResult setEpsgVariation(Int16 nEpsgVariation) {
203 OdResult ret = (OdResult)GlobalsPINVOKE.OdGeodeticTransformationDefinition_setEpsgVariation(swigCPtr, nEpsgVariation /*SIMPLETYPE*/);
205 return ret;
206 }
207
208 public OdResult getInverseSupported(out bool bInverseSupported) {
211 return ret;
212 }
213
219
220 public OdResult getMaxIterations(out Int16 nMaxIterations) {
223 return ret;
224 }
225
226 public OdResult setMaxIterations(Int16 nMaxIterations) {
227 OdResult ret = (OdResult)GlobalsPINVOKE.OdGeodeticTransformationDefinition_setMaxIterations(swigCPtr, nMaxIterations /*SIMPLETYPE*/);
229 return ret;
230 }
231
232 public OdResult getConvergenceValue(out double dConvergenceValue) {
235 return ret;
236 }
237
243
244 public OdResult getErrorValue(out double dErrorValue) {
247 return ret;
248 }
249
255
261
267
273
279
285
291
297
303
309
315
321
322 public OdResult getParameters(ref OdGeodeticTransformationParameters /*OUT_PARAM for SMARTPTR*/ pParameters) {
323 /*OUT_PARAM for SMARTPTR pre*/ IntPtr tmp_pParameters = pParameters == null ? IntPtr.Zero : OdGeodeticTransformationParameters.getCPtr(pParameters).Handle;
324 IntPtr saved_pParameters = tmp_pParameters;
325 /*OUT_PARAM for SMARTPTR pre*/
326 try {
327 OdResult ret = (OdResult)GlobalsPINVOKE.OdGeodeticTransformationDefinition_getParameters(swigCPtr, ref tmp_pParameters /*OUT_PARAM for SMARTPTR*/);
329 return ret;
330 } finally {
331if(tmp_pParameters == IntPtr.Zero) pParameters = null;
332 if(tmp_pParameters != IntPtr.Zero && tmp_pParameters != saved_pParameters)
333 {
334 MemoryTransaction mTrans_pParameters = MemoryManager.GetMemoryManager().GetCurrentTransaction();
335 if(mTrans_pParameters != null)
336 mTrans_pParameters.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdGeodeticTransformationParameters>(typeof(OdGeodeticTransformationParameters), tmp_pParameters, true));
337 pParameters = Teigha.Core.Helpers.odCreateObjectInternal<OdGeodeticTransformationParameters>(typeof(OdGeodeticTransformationParameters), tmp_pParameters, mTrans_pParameters == null);
338 /*OUT_PARAM for SMARTPTR*/
339 }
340 }
341 }
342
348
354
360
366
372
373 protected static string getRealClassName(IntPtr ptr) {
376 return ret;
377 }
378
379}
380
381}
static global::System.Exception Retrieve()
static IntPtr OdGeodeticTransformationDefinition_desc()
static IntPtr OdGeodeticTransformationDefinition_isA(HandleRef jarg1)
static int OdGeodeticTransformationDefinition_load([MarshalAs(UnmanagedType.LPWStr)]String jarg1, ref IntPtr jarg2)
static int OdGeodeticTransformationDefinition_getRangeMaxLongitude(HandleRef jarg1, out double jarg2)
static int OdGeodeticTransformationDefinition_getEpsgCode(HandleRef jarg1, out Int16 jarg2)
static int OdGeodeticTransformationDefinition_getInverseSupported(HandleRef jarg1, out bool jarg2)
static int OdGeodeticTransformationDefinition_setRangeMaxLatitude(HandleRef jarg1, double jarg2)
static int OdGeodeticTransformationDefinition_setInverseSupported(HandleRef jarg1, bool jarg2)
static bool OdGeodeticTransformationDefinition_isLegalDescription([MarshalAs(UnmanagedType.LPWStr)]String jarg1)
static int OdGeodeticTransformationDefinition_getConvergenceValue(HandleRef jarg1, out double jarg2)
static int OdGeodeticTransformationDefinition_getGroup(HandleRef jarg1, ref IntPtr jarg2)
static int OdGeodeticTransformationDefinition_getAccuracy(HandleRef jarg1, out double jarg2)
static bool OdGeodeticTransformationDefinition_isLegalCode([MarshalAs(UnmanagedType.LPWStr)]String jarg1)
static int OdGeodeticTransformationDefinition_setRangeMinLatitude(HandleRef jarg1, double jarg2)
static bool OdGeodeticTransformationDefinition_isLegalGroup([MarshalAs(UnmanagedType.LPWStr)]String jarg1)
static int OdGeodeticTransformationDefinition_getEpsgVariation(HandleRef jarg1, out Int16 jarg2)
static IntPtr OdGeodeticTransformationDefinition_createObject()
static int OdGeodeticTransformationDefinition_setEpsgVariation(HandleRef jarg1, Int16 jarg2)
static int OdGeodeticTransformationDefinition_getSourceDatum(HandleRef jarg1, ref IntPtr jarg2)
static int OdGeodeticTransformationDefinition_setRangeMinLongitude(HandleRef jarg1, double jarg2)
static int OdGeodeticTransformationDefinition_loadAll(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGeodeticTransformationDefinition_setConvergenceValue(HandleRef jarg1, double jarg2)
static int OdGeodeticTransformationDefinition_getTargetDatum(HandleRef jarg1, ref IntPtr jarg2)
static int OdGeodeticTransformationDefinition_setRangeMaxLongitude(HandleRef jarg1, double jarg2)
static int OdGeodeticTransformationDefinition_getTransformationDefType(HandleRef jarg1, out TransformationDefType jarg2)
static int OdGeodeticTransformationDefinition_getRangeMinLatitude(HandleRef jarg1, out double jarg2)
static int OdGeodeticTransformationDefinition_setParameters(HandleRef jarg1, HandleRef jarg2)
static int OdGeodeticTransformationDefinition_setGroup(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static int OdGeodeticTransformationDefinition_setMaxIterations(HandleRef jarg1, Int16 jarg2)
static int OdGeodeticTransformationDefinition_setErrorValue(HandleRef jarg1, double jarg2)
static int OdGeodeticTransformationDefinition_getRangeMinLongitude(HandleRef jarg1, out double jarg2)
static int OdGeodeticTransformationDefinition_setEpsgCode(HandleRef jarg1, Int16 jarg2)
static int OdGeodeticTransformationDefinition_setAccuracy(HandleRef jarg1, double jarg2)
static int OdGeodeticTransformationDefinition_getMaxIterations(HandleRef jarg1, out Int16 jarg2)
static int OdGeodeticTransformationDefinition_getRangeMaxLatitude(HandleRef jarg1, out double jarg2)
static IntPtr OdGeodeticTransformationDefinition_cast(HandleRef jarg1)
static bool OdGeodeticTransformationDefinition_isLegalSource([MarshalAs(UnmanagedType.LPWStr)]String jarg1)
static int OdGeodeticTransformationDefinition_setTargetDatum(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static int OdGeodeticTransformationDefinition_setSourceDatum(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static int OdGeodeticTransformationDefinition_getParameters(HandleRef jarg1, ref IntPtr jarg2)
static string OdGeodeticTransformationDefinition_getRealClassName(IntPtr jarg1)
static int OdGeodeticTransformationDefinition_getErrorValue(HandleRef jarg1, out double jarg2)
static void delete_OdGeodeticTransformationDefinition(HandleRef jarg1)
static IntPtr OdGeodeticTransformationDefinition_queryX(HandleRef jarg1, HandleRef jarg2)
static HandleRef getCPtr(OdGeodeticTransformationDefinition obj)
OdResult setParameters(OdGeodeticTransformationParameters pParameters)
static OdGeodeticTransformationDefinition cast(OdRxObject pObj)
OdResult getParameters(ref OdGeodeticTransformationParameters pParameters)
static OdResult loadAll(SWIGTYPE_p_OdArrayT_OdSmartPtrT_OdSpatialReference__OdGeodeticTransformationDefinition_t_t arrGeodeticTransformationDefinition)
override OdRxObject queryX(OdRxClass protocolClass)
static OdResult load(String sCode, ref OdGeodeticTransformationDefinition pGeodeticTransformationDefinition)
OdResult getTransformationDefType(out TransformationDefType eType)
static OdGeodeticTransformationDefinition createObject()
static HandleRef getCPtr(OdGeodeticTransformationParameters 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