Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGeodeticPathDefinition.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 OdGeodeticPathDefinition(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGeodeticPathDefinition_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdGeodeticPathDefinition 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 OdGeodeticPathDefinition cast(OdRxObject pObj) {// OdSmartPtr<OdSpatialReference::OdGeodeticPathDefinition>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdGeodeticPathDefinition ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdGeodeticPathDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGeodeticPathDefinition),ptr, true));
51 ret = (OdGeodeticPathDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGeodeticPathDefinition),ptr, false);
52 }
53 else
54 {
55 ret = (OdGeodeticPathDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGeodeticPathDefinition),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.OdGeodeticPathDefinition_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.OdGeodeticPathDefinition_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.OdGeodeticPathDefinition_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdGeodeticPathDefinition createObject() {// OdSmartPtr<OdSpatialReference::OdGeodeticPathDefinition>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
88 OdGeodeticPathDefinition ret = null;
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdGeodeticPathDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGeodeticPathDefinition),ptr, true));
92 ret = (OdGeodeticPathDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGeodeticPathDefinition),ptr, false);
93 }
94 else
95 {
96 ret = (OdGeodeticPathDefinition)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdGeodeticPathDefinition),ptr, true);
97 }
98
100 return ret;
101}
102
103 public static OdResult load(String sCode, ref OdGeodeticPathDefinition /*OUT_PARAM for SMARTPTR*/ pGeodeticPathDefinition) {
104 /*OUT_PARAM for SMARTPTR pre*/ IntPtr tmp_pGeodeticPathDefinition = pGeodeticPathDefinition == null ? IntPtr.Zero : OdGeodeticPathDefinition.getCPtr(pGeodeticPathDefinition).Handle;
105 IntPtr saved_pGeodeticPathDefinition = tmp_pGeodeticPathDefinition;
106 /*OUT_PARAM for SMARTPTR pre*/
107 try {
108 OdResult ret = (OdResult)GlobalsPINVOKE.OdGeodeticPathDefinition_load(sCode, ref tmp_pGeodeticPathDefinition /*OUT_PARAM for SMARTPTR*/);
110 return ret;
111 } finally {
112if(tmp_pGeodeticPathDefinition == IntPtr.Zero) pGeodeticPathDefinition = null;
113 if(tmp_pGeodeticPathDefinition != IntPtr.Zero && tmp_pGeodeticPathDefinition != saved_pGeodeticPathDefinition)
114 {
115 MemoryTransaction mTrans_pGeodeticPathDefinition = MemoryManager.GetMemoryManager().GetCurrentTransaction();
116 if(mTrans_pGeodeticPathDefinition != null)
117 mTrans_pGeodeticPathDefinition.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdGeodeticPathDefinition>(typeof(OdGeodeticPathDefinition), tmp_pGeodeticPathDefinition, true));
118 pGeodeticPathDefinition = Teigha.Core.Helpers.odCreateObjectInternal<OdGeodeticPathDefinition>(typeof(OdGeodeticPathDefinition), tmp_pGeodeticPathDefinition, mTrans_pGeodeticPathDefinition == 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 {
134 OdResult ret = (OdResult)GlobalsPINVOKE.OdGeodeticPathDefinition_getSourceDatum(swigCPtr, ref tmp_sSourceDatum);
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 {
152 OdResult ret = (OdResult)GlobalsPINVOKE.OdGeodeticPathDefinition_getTargetDatum(swigCPtr, ref tmp_sTargetDatum);
154 return ret;
155 } finally {
156if (tmp_sTargetDatum != saved_sTargetDatum) sTargetDatum = Marshal.PtrToStringUni(tmp_sTargetDatum);
157 }
158 }
159
165
166 public OdResult getIsReversible(out bool bIsReversible) {
169 return ret;
170 }
171
177
183
189
190 public OdResult getGroup(ref string sGroup) {
191IntPtr tmp_sGroup = Marshal.StringToCoTaskMemUni(sGroup);
192 IntPtr saved_sGroup = tmp_sGroup;
193 try {
194 OdResult ret = (OdResult)GlobalsPINVOKE.OdGeodeticPathDefinition_getGroup(swigCPtr, ref tmp_sGroup);
196 return ret;
197 } finally {
198if (tmp_sGroup != saved_sGroup) sGroup = Marshal.PtrToStringUni(tmp_sGroup);
199 }
200 }
201
207
208 public OdResult getAccuracy(out double dAccuracy) {
211 return ret;
212 }
213
219
220 public OdResult getEpsgCode(out Int16 nEpsgCode) {
223 return ret;
224 }
225
226 public OdResult setEpsgCode(Int16 nEpsgCode) {
227 OdResult ret = (OdResult)GlobalsPINVOKE.OdGeodeticPathDefinition_setEpsgCode(swigCPtr, nEpsgCode /*SIMPLETYPE*/);
229 return ret;
230 }
231
232 public OdResult getEpsgVariant(out Int16 nEpsgVariant) {
235 return ret;
236 }
237
238 public OdResult setEpsgVariant(Int16 nEpsgVariant) {
239 OdResult ret = (OdResult)GlobalsPINVOKE.OdGeodeticPathDefinition_setEpsgVariant(swigCPtr, nEpsgVariant /*SIMPLETYPE*/);
241 return ret;
242 }
243
249
250 public static bool isLegalDescription(String sDescription) {
253 return ret;
254 }
255
256 public static bool isLegalSource(String sSource) {
259 return ret;
260 }
261
262 public static bool isLegalGroup(String sGroup) {
265 return ret;
266 }
267
268 protected static string getRealClassName(IntPtr ptr) {
269 string ret = GlobalsPINVOKE.OdGeodeticPathDefinition_getRealClassName(ptr /*SIMPLETYPE*/);
271 return ret;
272 }
273
274}
275
276}
static global::System.Exception Retrieve()
static bool OdGeodeticPathDefinition_isLegalGroup([MarshalAs(UnmanagedType.LPWStr)]String jarg1)
static int OdGeodeticPathDefinition_getIsReversible(HandleRef jarg1, out bool jarg2)
static IntPtr OdGeodeticPathDefinition_queryX(HandleRef jarg1, HandleRef jarg2)
static int OdGeodeticPathDefinition_setEpsgVariant(HandleRef jarg1, Int16 jarg2)
static int OdGeodeticPathDefinition_getTargetDatum(HandleRef jarg1, ref IntPtr jarg2)
static IntPtr OdGeodeticPathDefinition_cast(HandleRef jarg1)
static int OdGeodeticPathDefinition_loadAll(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdGeodeticPathDefinition_isA(HandleRef jarg1)
static bool OdGeodeticPathDefinition_isLegalSource([MarshalAs(UnmanagedType.LPWStr)]String jarg1)
static int OdGeodeticPathDefinition_getEpsgCode(HandleRef jarg1, out Int16 jarg2)
static int OdGeodeticPathDefinition_setAccuracy(HandleRef jarg1, double jarg2)
static string OdGeodeticPathDefinition_getRealClassName(IntPtr jarg1)
static IntPtr OdGeodeticPathDefinition_createObject()
static int OdGeodeticPathDefinition_setPathElements(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdGeodeticPathDefinition_setIsReversible(HandleRef jarg1, bool jarg2)
static int OdGeodeticPathDefinition_getGroup(HandleRef jarg1, ref IntPtr jarg2)
static int OdGeodeticPathDefinition_setGroup(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void delete_OdGeodeticPathDefinition(HandleRef jarg1)
static int OdGeodeticPathDefinition_getAccuracy(HandleRef jarg1, out double jarg2)
static int OdGeodeticPathDefinition_getSourceDatum(HandleRef jarg1, ref IntPtr jarg2)
static bool OdGeodeticPathDefinition_isLegalCode([MarshalAs(UnmanagedType.LPWStr)]String jarg1)
static int OdGeodeticPathDefinition_setEpsgCode(HandleRef jarg1, Int16 jarg2)
static int OdGeodeticPathDefinition_getEpsgVariant(HandleRef jarg1, out Int16 jarg2)
static int OdGeodeticPathDefinition_setSourceDatum(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static IntPtr OdGeodeticPathDefinition_desc()
static int OdGeodeticPathDefinition_load([MarshalAs(UnmanagedType.LPWStr)]String jarg1, ref IntPtr jarg2)
static int OdGeodeticPathDefinition_getPathElements(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdGeodeticPathDefinition_setTargetDatum(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static bool OdGeodeticPathDefinition_isLegalDescription([MarshalAs(UnmanagedType.LPWStr)]String jarg1)
OdResult getTargetDatum(ref string sTargetDatum)
OdResult getIsReversible(out bool bIsReversible)
OdGeodeticPathDefinition(IntPtr cPtr, bool cMemoryOwn)
static OdGeodeticPathDefinition createObject()
static bool isLegalDescription(String sDescription)
static HandleRef getCPtr(OdGeodeticPathDefinition obj)
OdResult getEpsgVariant(out Int16 nEpsgVariant)
OdResult getSourceDatum(ref string sSourceDatum)
OdResult setTargetDatum(String sTargetDatum)
override OdRxObject queryX(OdRxClass protocolClass)
static OdResult loadAll(SWIGTYPE_p_OdArrayT_OdSmartPtrT_OdSpatialReference__OdGeodeticPathDefinition_t_t arrGeodeticPathDefinition)
OdResult setPathElements(SWIGTYPE_p_OdArrayT_OdSmartPtrT_OdSpatialReference__OdGeodeticPathElement_t_t arrPathElements)
OdResult getPathElements(SWIGTYPE_p_OdArrayT_OdSmartPtrT_OdSpatialReference__OdGeodeticPathElement_t_t arrPathElements)
static OdGeodeticPathDefinition cast(OdRxObject pObj)
OdResult setSourceDatum(String sSourceDatum)
OdResult getAccuracy(out double dAccuracy)
static OdResult load(String sCode, ref OdGeodeticPathDefinition pGeodeticPathDefinition)
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