libLAS API Reference
1.8.1
|
Defines public interface to LAS writer implementation. More...
#include <writer.hpp>
Public Member Functions | |
Writer (std::ostream &ofs, Header const &header) | |
Consructor initializes reader with specified output stream and header specification. More... | |
Writer (Writer const &other) | |
Writer (WriterIPtr ptr) | |
Writer & | operator= (Writer const &rhs) |
~Writer () | |
Destructor does not close file attached to the output stream Header may be updated after writing operation completed, if necessary in order to maintain data consistency. More... | |
Header const & | GetHeader () const |
Provides access to header structure. More... | |
void | SetHeader (Header const &header) |
bool | WritePoint (Point const &point) |
void | WriteHeader () |
Allow in-place writing of header. More... | |
void | SetFilters (std::vector< liblas::FilterPtr > const &filters) |
Sets filters that are used to determine wither or not to keep a point that before we write it Filters are applied before transforms. More... | |
std::vector< liblas::FilterPtr > | GetFilters () const |
Gets the list of filters to be applied to points as they are written. More... | |
void | SetTransforms (std::vector< liblas::TransformPtr > const &transforms) |
Sets transforms to apply to points. More... | |
std::vector< liblas::TransformPtr > | GetTransforms () const |
Gets the list of transforms to be applied to points as they are read. More... | |
Defines public interface to LAS writer implementation.
This class
liblas::Writer::Writer | ( | std::ostream & | ofs, |
Header const & | header | ||
) |
Consructor initializes reader with specified output stream and header specification.
ofs | - stream used as destination for LAS records. |
header | - specifies obligatory properties of LAS file. |
std::runtime_error | - on failure state of the input stream. |
liblas::Writer::Writer | ( | Writer const & | other | ) |
liblas::Writer::Writer | ( | WriterIPtr | ptr | ) |
liblas::Writer::~Writer | ( | ) |
Destructor does not close file attached to the output stream Header may be updated after writing operation completed, if necessary in order to maintain data consistency.
std::vector<liblas::FilterPtr> liblas::Writer::GetFilters | ( | ) | const |
Gets the list of filters to be applied to points as they are written.
Header const& liblas::Writer::GetHeader | ( | ) | const |
Provides access to header structure.
std::vector<liblas::TransformPtr> liblas::Writer::GetTransforms | ( | ) | const |
Gets the list of transforms to be applied to points as they are read.
void liblas::Writer::SetFilters | ( | std::vector< liblas::FilterPtr > const & | filters | ) |
Sets filters that are used to determine wither or not to keep a point that before we write it Filters are applied before transforms.
void liblas::Writer::SetHeader | ( | Header const & | header | ) |
void liblas::Writer::SetTransforms | ( | std::vector< liblas::TransformPtr > const & | transforms | ) |
Sets transforms to apply to points.
Points are transformed in place in the order of the transform list. Filters are applied before transforms.
void liblas::Writer::WriteHeader | ( | ) |
Allow in-place writing of header.
bool liblas::Writer::WritePoint | ( | Point const & | point | ) |