/// <summary> /// Creates a new GUID opaque pointer using the given string. /// </summary> /// <remarks>An example GUID might be something like '8388F1B8-AA1B-4108-BCA3-6BC68E7B062E'</remarks> /// <param name="guidString">string A GUID string in the form "00000000-0000-0000-0000-000000000000"</param> public LASGuid(String guidString) { hguid = CAPI.LASGuid_CreateFromString(guidString); }
/// <summary> /// The object user should call this method when they finished with the object. /// </summary> /// public void Dispose() { CAPI.LASGuid_Destroy(hguid); // Clean up unmanaged resources here. // Dispose other contained disposable objects. }
/// <summary> /// Create a new random GUID. /// </summary> public LASGuid() { hguid = CAPI.LASGuid_Create(); }
/// <summary> /// Copy a LASPoint object creating a new one. /// </summary> /// <returns>a new LASPoint instance copied.</returns> public LASPoint Copy() { LASPointH laspointhTemp = CAPI.LASPoint_Copy(hPoint); return(new LASPoint(laspointhTemp)); }
/// <summary> /// Gets the String value of the Guid /// </summary> /// <returns>the String value of the Guid</returns> public override string ToString() { return(CAPI.LASGuid_AsString(hguid)); }
/// <summary> /// /// </summary> /// <returns></returns> public string GetVersion() { return(CAPI.LAS_GetVersion()); }
/// <summary> /// Create a generic LASPoint /// </summary> public LASPoint() { hPoint = CAPI.LASPoint_Create(); }
/// <summary> /// Creates a LASReaderH object that can be used to read LASHeaderH and LASPointH objects with. /// </summary> /// <remarks>The LASReaderH must not be created with a filename that is opened for read or write by any other API functions. </remarks> /// <param name="filename">filename to open for read</param> public LASReader(String filename) { hReader = CAPI.LASReader_Create(filename); }
/// <summary> /// Get the header for the file associated with this Reader Class. /// </summary> /// <returns>LASHeader representing the header for the file.</returns> public LASHeader GetHeader() { return(new LASHeader(CAPI.LASReader_GetHeader(hReader))); }
/// <summary> /// Reads a LASPointH from the given position in the LAS file represented by the LASReader instance. /// </summary> /// <remarks> If no point is available at that location, NULL is returned. </remarks> /// <param name="position">the integer position of the point in the file to read.</param> /// <returns>LASPoint object</returns> public LASPoint GetPointAt(UInt32 position) { return(new LASPoint(CAPI.LASReader_GetPointAt(hReader, position))); }
/// <summary> /// Default constructor. /// </summary> public LASVariableLengthRecord() { hvlrh = CAPI.LASVLR_Create(); }
/// <summary> /// Default constructor of the class /// </summary> /// <param name="filename">string with the path of the LAS file</param> /// <param name="hHeader">LASHeader to add the LAS file</param> /// <param name="mode">mode to use the file by LASReadWriteMode enumeration</param> public LASWriter(String filename, LASHeader hHeader, LASReadWriteMode mode) { hwriter = CAPI.LASWriter_Create(filename, hHeader.GetPointer(), (int)mode); }