#include <MG4PointReader.h>
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. | |
PointIterator * | createIterator (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 |
Definition at line 30 of file MG4PointReader.h.
void MG4PointReader::init | ( | const char * | path | ) |
This method initalizes the reader with a filename.
path | the filename |
void MG4PointReader::init | ( | IO * | io | ) |
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.
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.
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) |
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.
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.
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.
IO::Location MG4PointReader::m_metadata [protected] |
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.
LizardTech |