libLAS API Reference  1.8.1
Public Member Functions | List of all members
liblas::Reader Class Reference

Defines public interface to LAS reader implementation. More...

#include <reader.hpp>

Collaboration diagram for liblas::Reader:
Collaboration graph

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)
 
Readeroperator= (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

Exceptions
maythrow std::exception.
More...
 
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::FilterPtrGetFilters () 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::TransformPtrGetTransforms () const
 Gets the list of transforms to be applied to points as they are read. More...
 

Detailed Description

Defines public interface to LAS reader implementation.

Constructor & Destructor Documentation

liblas::Reader::Reader ( std::istream &  ifs)

Consructor initializes reader with input stream as source of LAS records.

Parameters
ifs- stream used as source of LAS records.
Exceptions
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.

Exceptions
nothrow

Member Function Documentation

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.

Exceptions
nothrow
Point const& liblas::Reader::GetPoint ( ) const

Provides read-only access to current point record.

Exceptions
nothrow
std::vector<liblas::TransformPtr> liblas::Reader::GetTransforms ( ) const

Gets the list of transforms to be applied to points as they are read.

Reader& liblas::Reader::operator= ( Reader const &  rhs)
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.

Exceptions
maythrow std::exception
bool liblas::Reader::ReadNextPoint ( )

Fetches next point record in file.

Exceptions
maythrow std::exception
bool liblas::Reader::ReadPointAt ( std::size_t  n)

Fetches n-th point record from file.

Exceptions
maythrow std::exception
void liblas::Reader::Reset ( )

Reinitializes state of the reader.

Exceptions
maythrow std::exception
bool liblas::Reader::Seek ( std::size_t  n)

Move to the specified point to start ReadNextPoint operations

Exceptions
maythrow 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.


The documentation for this class was generated from the following file: