MG4PointReader Class Reference

MG4PointReader reads LiDAR-based MrSID files. More...

#include <MG4PointReader.h>

Inheritance diagram for MG4PointReader:

Inheritance graph
[legend]
Collaboration diagram for MG4PointReader:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void init (const char *path)
 Initalize with a filename.
void init (IO *io)
 Initalize with a IO object.
void loadMetadata (Metadata &metadata, bool sanitize) const
 Load the point clouds metadata.
char const *const * getClassIdNames (void) const
 Get the classification names.
size_t getNumClassIdNames (void) const
 Get the number of classification names.
const char * getFileFormatString (void) const
 Get the file type and version.
double getTotalWork (const Bounds &bounds, double fraction) const
 Get the amount of work needed to decode bounds.
PointIteratorcreateIterator (const Bounds &bounds, double fraction, const PointInfo &pointInfo, ProgressDelegate *delegate) const
 Get a PointIterator for a given bounds.

Protected Attributes

char m_version [32]
WaveletDecoderInfo * m_waveletInfo
IO::Location m_metadata
char ** m_classId
size_t m_numClasses


Detailed Description

The MG4PointReader class reads MrSID files that contain LiDAR data.

See also:
See examples/src/DecodeMG4ToTXT.cpp and examples/src/UserTutorial.cpp for examples on reading MG4 files.

Definition at line 30 of file MG4PointReader.h.


Member Function Documentation

void MG4PointReader::init ( const char *  path  ) 

This method initalizes the reader with a filename.

Parameters:
path the filename

void MG4PointReader::init ( IO io  ) 

This method initalizes the reader with a IO object.

Parameters:
io the data source

void MG4PointReader::loadMetadata ( Metadata metadata,
bool  sanitize 
) const [virtual]

This method loads the metadata for the point cloud. PointSource only load metadata on demand to reduce memory usage.

Parameters:
metadata The metadata object to fill.
sanitize If true remove vendor-specific metadata that we don't understand for example, Merrick::102 ("Index to page of point records")

Implements PointSource.

char const* const* MG4PointReader::getClassIdNames ( void   )  const [virtual]

This methods returns an array of classification names with length getNumClassIdNames().

Reimplemented from PointReader.

size_t MG4PointReader::getNumClassIdNames ( void   )  const [virtual]

This methods returns the number of classification names.

Reimplemented from PointReader.

const char* MG4PointReader::getFileFormatString ( void   )  const [virtual]

This method returns a string the contains the File Type and version of the PointReader. For example for a MrSID file this will will return "MG4 4.0.0.1".

Implements PointReader.

double MG4PointReader::getTotalWork ( const Bounds bounds,
double  fraction 
) const [virtual]

This method returns the amount of work needed to decode the points in bounds. getTotalWork() is used with ProgressDelegate to track the progress of a decode or encode.

Parameters:
bounds the region of interest
fraction the fraction of the points you want (use 1.0 for all the points and use 0.1 to keep every tenth point)
Returns:
the work needed to decode bounds

Reimplemented from PointReader.

PointIterator* MG4PointReader::createIterator ( const Bounds bounds,
double  fraction,
const PointInfo pointInfo,
ProgressDelegate delegate 
) const [virtual]

This methods returns a PointIterator for the given bounds.

Parameters:
bounds the region of interest (HUGE_VAL are handled)
fraction the fraction of the points you want (use 1.0 for all the points and use 0.1 to keep every tenth point)
channelInfo the list of channels to be extracted
numChannels the number of channels to be extracted
delegate a ProgressDelegate for feedback (can be NULL)

Implements PointSource.


Member Data Documentation

char MG4PointReader::m_version[32] [protected]

Definition at line 65 of file MG4PointReader.h.

WaveletDecoderInfo* MG4PointReader::m_waveletInfo [protected]

Definition at line 67 of file MG4PointReader.h.

Definition at line 68 of file MG4PointReader.h.

char** MG4PointReader::m_classId [protected]

Definition at line 69 of file MG4PointReader.h.

size_t MG4PointReader::m_numClasses [protected]

Definition at line 70 of file MG4PointReader.h.


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

LizardTech