Changeset 908
- Timestamp:
- 10/09/08 08:57:58 (3 months ago)
- Files:
-
- 1 modified
-
trunk/csharp/dotnetLibLAS/LibLASCAPI.cs (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/csharp/dotnetLibLAS/LibLASCAPI.cs
r901 r908 1 1 /****************************************************************************** 2 * 2 * $Id$ 3 3 * 4 4 * Project: libLAS - http://liblas.org - A BSD library for LAS format data. … … 40 40 ****************************************************************************/ 41 41 42 43 42 using System; 44 43 using System.Collections.Generic; … … 53 52 using LASHeaderH = System.IntPtr; 54 53 55 56 54 namespace LibLAS 57 55 { 58 internal class CAPI56 internal class CAPI 59 57 { 60 61 62 58 /** Returns the version string for this library. 63 * @return the version string for this library. 64 */ 65 public const string DLL_LAS_VERSION = "mingw_liblas1.dll"; 66 67 [DllImport(DLL_LAS_VERSION)] 68 public static extern String LAS_GetVersion(); 69 59 * @return the version string for this library. 60 * 61 * If libLAS is built using solution from trunk/build/msvc80/liblas.sln 62 * then C API DLL is called liblas_c_dll.dll, so value of the constant below 63 * should be updated to "liblas_c_dll.dll". 64 */ 65 public const string DLL_LAS_VERSION = "mingw_liblas1.dll"; 66 67 [DllImport(DLL_LAS_VERSION)] 68 public static extern String LAS_GetVersion(); 70 69 71 70 /****************************************************************************/ … … 174 173 /* Point operations */ 175 174 /****************************************************************************/ 176 175 177 176 178 177 /** Returns the X value for the point. This value is not scaled or offset … … 373 372 */ 374 373 [DllImport(DLL_LAS_VERSION)] 375 public static extern LASError LASPoint_SetScanAngleRank(LASPointH hPoint, SByte value);374 public static extern LASError LASPoint_SetScanAngleRank(LASPointH hPoint, SByte value); 376 375 377 376 /** Returns the arbitrary user data for the point … … 405 404 */ 406 405 [DllImport(DLL_LAS_VERSION)] 407 public static extern int LASPoint_Validate(LASPointH hPoint);406 public static extern int LASPoint_Validate(LASPointH hPoint); 408 407 409 408 /** Returns a boolean whether or not the point is valid … … 469 468 public static extern UInt16 LASHeader_GetFileSourceId(LASHeaderH hHeader); 470 469 471 [DllImport(DLL_LAS_VERSION)]472 public static extern LASError LASHeader_SetFileSourceId(LASHeaderH hHeader, UInt16 value);470 [DllImport(DLL_LAS_VERSION)] 471 public static extern LASError LASHeader_SetFileSourceId(LASHeaderH hHeader, UInt16 value); 473 472 474 473 /** Returns the project id for the header as a GUID string … … 1030 1029 1031 1030 [DllImport(DLL_LAS_VERSION)] 1032 public static extern LASError LASVLR_SetData(LASVLRH hVLR, ref byte[] data, int length); 1033 1034 1031 public static extern LASError LASVLR_SetData(LASVLRH hVLR, ref byte[] data, int length); 1035 1032 } 1036 1033 }
