libLAS API Reference  1.8.1
Public Member Functions | List of all members
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. More...
 
 Writer (Writer const &other)
 
 Writer (WriterIPtr ptr)
 
Writeroperator= (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::FilterPtrGetFilters () 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::TransformPtrGetTransforms () const
 Gets the list of transforms to be applied to points as they are read. More...
 

Detailed Description

Defines public interface to LAS writer implementation.

This class

Constructor & Destructor Documentation

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

Member Function Documentation

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.

Writer& liblas::Writer::operator= ( Writer const &  rhs)
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)
Todo:
TODO: Move point record composition deep into writer implementation.
Todo:
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: