14using System.Runtime.InteropServices;
18 private Object locker =
new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 swigCPtr =
new HandleRef(
this, cPtr);
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
30 protected override void Dispose(
bool disposing) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
37 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
39 base.Dispose(disposing);
44 MemoryManager mMan = MemoryManager.GetMemoryManager();
45 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
85 MemoryManager mMan = MemoryManager.GetMemoryManager();
86 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
105IntPtr tmp_coordSysId = Marshal.StringToCoTaskMemUni(coordSysId);
106 IntPtr saved_coordSysId = tmp_coordSysId;
112if (tmp_coordSysId != saved_coordSysId) coordSysId = Marshal.PtrToStringUni(tmp_coordSysId);
129IntPtr tmp_coordSysDesc = Marshal.StringToCoTaskMemUni(coordSysDesc);
130 IntPtr saved_coordSysDesc = tmp_coordSysDesc;
136if (tmp_coordSysDesc != saved_coordSysDesc) coordSysDesc = Marshal.PtrToStringUni(tmp_coordSysDesc);
201IntPtr tmp_strXml = Marshal.StringToCoTaskMemUni(strXml);
202 IntPtr saved_strXml = tmp_strXml;
208if (tmp_strXml != saved_strXml) strXml = Marshal.PtrToStringUni(tmp_strXml);
213IntPtr tmp_strWkt = Marshal.StringToCoTaskMemUni(strWkt);
214 IntPtr saved_strWkt = tmp_strWkt;
220if (tmp_strWkt != saved_strWkt) strWkt = Marshal.PtrToStringUni(tmp_strWkt);
226 IntPtr saved_pCoordSys = tmp_pCoordSys;
233if(tmp_pCoordSys == IntPtr.Zero) pCoordSys =
null;
234 if(tmp_pCoordSys != IntPtr.Zero && tmp_pCoordSys != saved_pCoordSys)
236 MemoryTransaction mTrans_pCoordSys = MemoryManager.GetMemoryManager().GetCurrentTransaction();
237 if(mTrans_pCoordSys !=
null)
static HandleRef getCPtr(OdGeExtents2d obj)
static HandleRef getCPtr(OdGePoint3d obj)
static HandleRef getCPtr(OdGeVector2d obj)
static HandleRef getCPtr(OdRxClass obj)
static HandleRef getCPtr(OdRxObject obj)
static HandleRef getCPtr(OdDbGeoCoordinateSystemCategory obj)
virtual OdResult getUnit(out UnitsValue unit)
virtual OdResult getType(out OdDbGeoCoordinateSystem.Type type)
@ kProjectionCodeSys34_99
@ kProjectionCodeMollweid
@ kProjectionCodeGnomonic
@ kProjectionCodeNzealand
@ kProjectionCodePvMercator
@ kProjectionCodeSys34_01
@ kProjectionCodeRobinson
@ kProjectionCodePlateCarree
virtual OdResult getProjectionCode(out OdDbGeoCoordinateSystem.ProjectionCode prjCode)
static OdResult createAll(OdGePoint3d geoPt, out OdDbGeoCoordinateSystemPtrArray allCoordSys)
virtual OdResult getGeodeticExtents(OdGeExtents2d exts)
static String unitNameToString(OdDbGeoCoordinateSystem.Unit eUnit)
OdDbGeoCoordinateSystem(IntPtr cPtr, bool cMemoryOwn)
static OdDbGeoCoordinateSystem cast(OdRxObject pObj)
static new OdRxClass desc()
virtual OdResult getUnitScale(out double unitScale)
static HandleRef getCPtr(OdDbGeoCoordinateSystem obj)
@ kUnitInternationalChain
virtual OdResult getWktRepresentation(ref string strWkt)
virtual OdResult getId(ref string coordSysId)
virtual OdResult getOffset(OdGeVector2d offsetVec)
virtual OdResult getDatum(OdDbGeoDatum datum)
virtual OdResult getEpsgCode(out int epsgCode)
virtual OdResult getCartesianExtents(OdGeExtents2d exts)
virtual OdResult getEllipsoid(OdDbGeoEllipsoid ellipsoid)
static OdResult create(String coordSysIdOrFullDef, ref OdDbGeoCoordinateSystem pCoordSys)
static string getRealClassName(IntPtr ptr)
override OdRxObject queryX(OdRxClass protocolClass)
virtual OdResult getXmlRepresentation(ref string strXml)
static OdDbGeoCoordinateSystem createObject()
virtual OdResult getProjectionParameters(OdDbGeoProjectionParameterArray prjParams, bool includeSpecialParams)
virtual OdResult getDescription(ref string coordSysDesc)
override void Dispose(bool disposing)
static OdResult createAll(out OdDbGeoCoordinateSystemPtrArray allCoordSys, OdDbGeoCoordinateSystemCategory pCategory)
virtual OdResult getUnit(out OdDbGeoCoordinateSystem.Unit unit)
static OdResult createAll(out OdDbGeoCoordinateSystemPtrArray allCoordSys)
static HandleRef getCPtr(OdDbGeoDatum obj)
static HandleRef getCPtr(OdDbGeoEllipsoid obj)
static HandleRef getCPtr(OdDbGeoProjectionParameterArray obj)
static global::System.Exception Retrieve()
static int OdDbGeoCoordinateSystem_getUnitScale(HandleRef jarg1, out double jarg2)
static int OdDbGeoCoordinateSystem_createAll__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, out OdDbGeoCoordinateSystemPtrArray jarg2)
static int OdDbGeoCoordinateSystem_getCartesianExtents(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDbGeoCoordinateSystem_getEpsgCode(HandleRef jarg1, out int jarg2)
static int OdDbGeoCoordinateSystem_getGeodeticExtents(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDbGeoCoordinateSystem_getDatum(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDbGeoCoordinateSystem_getXmlRepresentation(HandleRef jarg1, ref IntPtr jarg2)
static int OdDbGeoCoordinateSystem_createAll__SWIG_1(out OdDbGeoCoordinateSystemPtrArray jarg1, HandleRef jarg2)
static int OdDbGeoCoordinateSystem_getDescription(HandleRef jarg1, ref IntPtr jarg2)
static int OdDbGeoCoordinateSystem_getWktRepresentation(HandleRef jarg1, ref IntPtr jarg2)
static string OdDbGeoCoordinateSystem_getRealClassName(IntPtr jarg1)
static int OdDbGeoCoordinateSystem_getEllipsoid(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDbGeoCoordinateSystem_getProjectionCode(HandleRef jarg1, out OdDbGeoCoordinateSystem.ProjectionCode jarg2)
static IntPtr OdDbGeoCoordinateSystem_desc()
static int OdDbGeoCoordinateSystem_getType(HandleRef jarg1, out OdDbGeoCoordinateSystem.Type jarg2)
static IntPtr OdDbGeoCoordinateSystem_isA(HandleRef jarg1)
static IntPtr OdDbGeoCoordinateSystem_cast(HandleRef jarg1)
static int OdDbGeoCoordinateSystem_getId(HandleRef jarg1, ref IntPtr jarg2)
static int OdDbGeoCoordinateSystem_createAll__SWIG_2(out OdDbGeoCoordinateSystemPtrArray jarg1)
static IntPtr OdDbGeoCoordinateSystem_createObject()
static int OdDbGeoCoordinateSystem_getUnit__SWIG_0(HandleRef jarg1, out UnitsValue jarg2)
static int OdDbGeoCoordinateSystem_getProjectionParameters(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3)
static int OdDbGeoCoordinateSystem_create([MarshalAs(UnmanagedType.LPWStr)]String jarg1, ref IntPtr jarg2)
static int OdDbGeoCoordinateSystem_getOffset(HandleRef jarg1, IntPtr jarg2)
static int OdDbGeoCoordinateSystem_getUnit__SWIG_1(HandleRef jarg1, out OdDbGeoCoordinateSystem.Unit jarg2)
static void delete_OdDbGeoCoordinateSystem(HandleRef jarg1)
static IntPtr OdDbGeoCoordinateSystem_queryX(HandleRef jarg1, HandleRef jarg2)
static String OdDbGeoCoordinateSystem_unitNameToString(int jarg1)