libLAS API Reference
1.8.1
|
Defines public interface to LAS reader implementation. More...
#include <reader.hpp>
Public Member Functions | |||
Reader (std::istream &ifs) | |||
Consructor initializes reader with input stream as source of LAS records. More... | |||
Reader (ReaderIPtr reader) | |||
Reader (Reader const &other) | |||
Reader & | operator= (Reader const &rhs) | ||
~Reader () | |||
Destructor. More... | |||
Header const & | GetHeader () const | ||
Provides read-only access to header of LAS file being read. More... | |||
void | SetHeader (Header const &) | ||
Point const & | GetPoint () const | ||
Provides read-only access to current point record. More... | |||
bool | ReadNextPoint () | ||
Fetches next point record in file. More... | |||
bool | ReadPointAt (std::size_t n) | ||
Fetches n-th point record from file. More... | |||
void | Reset () | ||
Reinitializes state of the reader. More... | |||
bool | Seek (std::size_t n) | ||
Move to the specified point to start ReadNextPoint operations
| |||
Point const & | operator[] (std::size_t n) | ||
Provides index-based access to point records. More... | |||
void | SetFilters (std::vector< liblas::FilterPtr > const &filters) | ||
Sets filters that are used to determine whether or not to keep a point that was read from the file. More... | |||
std::vector< liblas::FilterPtr > | GetFilters () const | ||
Gets the list of filters to be applied to points as they are read. 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 reader implementation.
liblas::Reader::Reader | ( | std::istream & | ifs | ) |
Consructor initializes reader with input stream as source of LAS records.
ifs | - stream used as source of LAS records. |
std::runtime_error | - on failure state of the input stream. |
liblas::Reader::Reader | ( | ReaderIPtr | reader | ) |
liblas::Reader::Reader | ( | Reader const & | other | ) |
liblas::Reader::~Reader | ( | ) |
Destructor.
nothrow |
std::vector<liblas::FilterPtr> liblas::Reader::GetFilters | ( | ) | const |
Gets the list of filters to be applied to points as they are read.
Header const& liblas::Reader::GetHeader | ( | ) | const |
Provides read-only access to header of LAS file being read.
nothrow |
Point const& liblas::Reader::GetPoint | ( | ) | const |
Provides read-only access to current point record.
nothrow |
std::vector<liblas::TransformPtr> liblas::Reader::GetTransforms | ( | ) | const |
Gets the list of transforms to be applied to points as they are read.
Point const& liblas::Reader::operator[] | ( | std::size_t | n | ) |
Provides index-based access to point records.
The operator is implemented in terms of ReadPointAt method and is not const-qualified because it updates file stream position.
may | throw std::exception |
bool liblas::Reader::ReadNextPoint | ( | ) |
Fetches next point record in file.
may | throw std::exception |
bool liblas::Reader::ReadPointAt | ( | std::size_t | n | ) |
Fetches n-th point record from file.
may | throw std::exception |
void liblas::Reader::Reset | ( | ) |
Reinitializes state of the reader.
may | throw std::exception |
bool liblas::Reader::Seek | ( | std::size_t | n | ) |
Move to the specified point to start ReadNextPoint operations
may | throw std::exception. |
void liblas::Reader::SetFilters | ( | std::vector< liblas::FilterPtr > const & | filters | ) |
Sets filters that are used to determine whether or not to keep a point that was read from the file.
Filters have no effect for reading data at specific locations in the file. They only affect reading ReadNextPoint-style operations Filters are applied before transforms.
void liblas::Reader::SetHeader | ( | Header const & | ) |
void liblas::Reader::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.