libLAS API Reference (svn-trunk)
liblas::Writer Class Reference

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

#include <writer.hpp>

Collaboration diagram for liblas::Writer:
Collaboration graph

Public Member Functions

 Writer (std::ostream &ofs, Header const &header)
 Consructor initializes reader with specified output stream and header specification.
 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.
Header const & GetHeader () const
 Provides access to header structure.
void SetHeader (Header const &header)
bool WritePoint (Point const &point)
void WriteHeader ()
 Allow in-place writing of header.
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.
std::vector< liblas::FilterPtr > GetFilters () const
 Gets the list of filters to be applied to points as they are written.
void SetTransforms (std::vector< liblas::TransformPtr > const &transforms)
 Sets transforms to apply to points.
std::vector< liblas::TransformPtr > GetTransforms () const
 Gets the list of transforms to be applied to points as they are read.

Detailed Description

Defines public interface to LAS writer implementation.

This class

Constructor & Destructor Documentation

◆ Writer() [1/3]

liblas::Writer::Writer ( std::ostream & ofs,
Header const & header )

Consructor initializes reader with specified output stream and header specification.

Parameters
ofs- stream used as destination for LAS records.
header- specifies obligatory properties of LAS file.
Exceptions
std::runtime_error- on failure state of the input stream.

Referenced by operator=(), and Writer().

Here is the caller graph for this function:

◆ Writer() [2/3]

liblas::Writer::Writer ( Writer const & other)

References Writer().

Here is the call graph for this function:

◆ Writer() [3/3]

liblas::Writer::Writer ( WriterIPtr ptr)

◆ ~Writer()

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.

Member Function Documentation

◆ GetFilters()

std::vector< liblas::FilterPtr > liblas::Writer::GetFilters ( ) const

Gets the list of filters to be applied to points as they are written.

◆ GetHeader()

Header const & liblas::Writer::GetHeader ( ) const

Provides access to header structure.

◆ GetTransforms()

std::vector< liblas::TransformPtr > liblas::Writer::GetTransforms ( ) const

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

◆ operator=()

Writer & liblas::Writer::operator= ( Writer const & rhs)

References Writer().

Here is the call graph for this function:

◆ SetFilters()

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.

◆ SetHeader()

void liblas::Writer::SetHeader ( Header const & header)

◆ SetTransforms()

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.

◆ WriteHeader()

void liblas::Writer::WriteHeader ( )

Allow in-place writing of header.

◆ WritePoint()

bool liblas::Writer::WritePoint ( Point const & point)
Todo

TODO: Move point record composition deep into writer implementation.

TODO: How to handle point_source_id in portable way, for LAS 1.0 and 1.1


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