MrSID Decode SDK for LiDAR Reference Manual  1.1.5.5244
PointInfo Class Reference

PointInfo is a group of ChannelInfo objects. More...

#include <PointData.h>

Public Member Functions

 ~PointInfo (void)
 
 PointInfo (void)
 
void init (size_t numChannels)
 
void init (const PointInfo &pointInfo)
 
void init (const PointData &pointData)
 
void init (const PointInfo &pointInfo, const char *const *channels, size_t numChannels)
 
void init (const PointData &pointData, const char *const *channels, size_t numChannels)
 
void init (const PointInfo &pointInfo, const size_t *channels, size_t numChannels)
 
void init (const PointData &pointData, const size_t *channels, size_t numChannels)
 
size_t getNumChannels (void) const
 Get the number of channels. More...
 
const ChannelInfo & getChannel (size_t idx) const
 Access the channel info. More...
 
ChannelInfo & getChannel (size_t idx)
 Access the channel info. More...
 
bool hasChannel (const char *name) const
 Determine if there is a channel with a given name. More...
 
const ChannelInfo * getChannel (const char *name) const
 Access the channel data. More...
 
ChannelInfo * getChannel (const char *name)
 Access the channel data. More...
 
size_t getChannelIndex (const char *name) const
 Get the index for a given channel. More...
 
bool hasValidXYZ (void) const
 Make sure the PointInfo has X, Y, and Z channels. More...
 
size_t getBits (void) const
 Get the total bits used by all channels. More...
 
bool operator== (const PointInfo &rhs) const
 
bool operator!= (const PointInfo &rhs) const
 

Protected Attributes

size_t m_numChannels
 
ChannelInfo * m_channel
 

Detailed Description

PointInfo is a group of ChannelInfo objects for specifying channels.

See also
See examples/src/UserTutorial.cpp for examples on setting up and using PointInfo.

Definition at line 181 of file PointData.h.

Constructor & Destructor Documentation

◆ ~PointInfo()

PointInfo::~PointInfo ( void  )

◆ PointInfo()

PointInfo::PointInfo ( void  )

Member Function Documentation

◆ getBits()

size_t PointInfo::getBits ( void  ) const

This functon returns the total number of bits used in the data types of all underlying channels. Floating point channels will contribute the number of bits they require after quantization.

◆ getChannel() [1/4]

ChannelInfo* PointInfo::getChannel ( const char *  name)

This method returns the ChannelInfo for a given name.

Parameters
namethe name of the wanted channel
Returns
the channel data for the given channel

◆ getChannel() [2/4]

const ChannelInfo* PointInfo::getChannel ( const char *  name) const

This method returns the ChannelInfo for a given name.

Parameters
namethe name of the wanted channel
Returns
the channel data for the given channel

◆ getChannel() [3/4]

ChannelInfo& PointInfo::getChannel ( size_t  idx)

This method returns the ChannelInfo for a given index.

Parameters
idxthe index of the wanted channel
Returns
the channel info for the given channel

◆ getChannel() [4/4]

const ChannelInfo& PointInfo::getChannel ( size_t  idx) const

This method returns the ChannelInfo for a given index.

Parameters
idxthe index of the wanted channel
Returns
the channel info for the given channel

◆ getChannelIndex()

size_t PointInfo::getChannelIndex ( const char *  name) const

This method returns index of the given channel name.

Parameters
namethe name of the wanted channel
Returns
the index for the given channel

◆ getNumChannels()

size_t PointInfo::getNumChannels ( void  ) const

This method returns the number of channels.

◆ hasChannel()

bool PointInfo::hasChannel ( const char *  name) const

The method determines if this object has a channel with the given name.

Parameters
namethe channel name
Returns
true if the channel was found

◆ hasValidXYZ()

bool PointInfo::hasValidXYZ ( void  ) const

This function checks the PointInfo object for X, Y, and Z channels and that their data type is DATATYPE_FLOAT64

◆ init() [1/7]

void PointInfo::init ( const PointData &  pointData)

◆ init() [2/7]

void PointInfo::init ( const PointData &  pointData,
const char *const *  channels,
size_t  numChannels 
)

◆ init() [3/7]

void PointInfo::init ( const PointData &  pointData,
const size_t *  channels,
size_t  numChannels 
)

◆ init() [4/7]

void PointInfo::init ( const PointInfo &  pointInfo)

◆ init() [5/7]

void PointInfo::init ( const PointInfo &  pointInfo,
const char *const *  channels,
size_t  numChannels 
)

◆ init() [6/7]

void PointInfo::init ( const PointInfo &  pointInfo,
const size_t *  channels,
size_t  numChannels 
)

◆ init() [7/7]

void PointInfo::init ( size_t  numChannels)

◆ operator!=()

bool PointInfo::operator!= ( const PointInfo &  rhs) const
inline

Definition at line 285 of file PointData.h.

References operator==().

◆ operator==()

bool PointInfo::operator== ( const PointInfo &  rhs) const

Referenced by operator!=().

Member Data Documentation

◆ m_channel

ChannelInfo* PointInfo::m_channel
protected

Definition at line 289 of file PointData.h.

◆ m_numChannels

size_t PointInfo::m_numChannels
protected

Definition at line 288 of file PointData.h.


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

Extensis