MrSID Decode SDK for LiDAR Reference Manual  1.1.4.4709
PointData Class Reference

PointData is a group of ChannelData objects. More...

#include <PointData.h>

Public Member Functions

 ~PointData (void)
 
 PointData (void)
 
void init (const PointInfo &pointInfo, size_t numSamples)
 
size_t getNumChannels (void) const
 Get the number of channels. More...
 
size_t getNumSamples (void) const
 Get the number of samples. More...
 
const ChannelDatagetChannel (size_t idx) const
 Access the channel data. More...
 
ChannelDatagetChannel (size_t idx)
 Access the channel data. More...
 
bool hasChannel (const char *name) const
 Determine if there is a channel with a given name. More...
 
const ChannelDatagetChannel (const char *name) const
 Access the channel data. More...
 
ChannelDatagetChannel (const char *name)
 Access the channel data. More...
 
const double * getX (void) const
 Get the X values. More...
 
double * getX (void)
 Get the X values. More...
 
const double * getY (void) const
 Get the Y values. More...
 
double * getY (void)
 Get the Y values. More...
 
const double * getZ (void) const
 Get the Z values. More...
 
double * getZ (void)
 Get the Z values. More...
 
void resize (size_t newNumSamples)
 Resize the data buffer. More...
 
void setOffset (size_t offset)
 dirty hack – only use this if you're the buffer onwer More...
 

Static Public Member Functions

static void copy (PointData &dst, size_t dstOffset, const PointData &src, size_t srcOffset, size_t length)
 Copy samples between buffers. More...
 
static void merge (PointData &dst, size_t dstNumPoints, const PointData &src, size_t srcNumPoints)
 Merge points. More...
 

Protected Attributes

size_t m_numChannels
 
ChannelDatam_channel
 
size_t m_numSamples
 
size_t m_offset
 
double * m_x
 
double * m_y
 
double * m_z
 

Detailed Description

PointData is a group of ChannelData objects for extracting the point cloud.

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

Definition at line 427 of file PointData.h.

Constructor & Destructor Documentation

§ ~PointData()

PointData::~PointData ( void  )

§ PointData()

PointData::PointData ( void  )

Member Function Documentation

§ copy()

static void PointData::copy ( PointData dst,
size_t  dstOffset,
const PointData src,
size_t  srcOffset,
size_t  length 
)
static
Parameters
dstthe destination buffer
dstOffsetthe first sample to overwrite
srcthe source buffer
srcOffsetthe fisrt sample to copy
lengththe number of samples to copy
Note
The source and destination data types must be the same. The source and destination may be the same object and sample ranges may overlap.

§ getChannel() [1/4]

const ChannelData& PointData::getChannel ( size_t  idx) const

This method returns the ChannelData for a given index.

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

§ getChannel() [2/4]

ChannelData& PointData::getChannel ( size_t  idx)

This method returns the ChannelData for a given index.

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

§ getChannel() [3/4]

const ChannelData* PointData::getChannel ( const char *  name) const

This method returns the ChannelData for a given name.

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

§ getChannel() [4/4]

ChannelData* PointData::getChannel ( const char *  name)

This method returns the ChannelData for a given name.

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

§ getNumChannels()

size_t PointData::getNumChannels ( void  ) const

This method returns the number of channels.

§ getNumSamples()

size_t PointData::getNumSamples ( void  ) const

This method returns the maximum number of samples that can be stored in the object.

§ getX() [1/2]

const double* PointData::getX ( void  ) const

This method returns a pointer to the X channel samples.

§ getX() [2/2]

double* PointData::getX ( void  )

This method returns a pointer to the X channel samples.

§ getY() [1/2]

const double* PointData::getY ( void  ) const

This method returns a pointer to the Y channel samples.

§ getY() [2/2]

double* PointData::getY ( void  )

This method returns a pointer to the Y channel samples.

§ getZ() [1/2]

const double* PointData::getZ ( void  ) const

This method returns a pointer to the Z channel samples.

§ getZ() [2/2]

double* PointData::getZ ( void  )

This method returns a pointer to the Z channel samples.

§ hasChannel()

bool PointData::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

§ init()

void PointData::init ( const PointInfo pointInfo,
size_t  numSamples 
)

§ merge()

static void PointData::merge ( PointData dst,
size_t  dstNumPoints,
const PointData src,
size_t  srcNumPoints 
)
static

This function merges the the source buffer into the destination buffer in a manner the destination becomes a uniform sampling of both buffers.

Parameters
dstthe destination buffer
dstNumPointthe number of point the destination buffer represents (it may be large than the buffer size)
srcthe source buffer
srcNumPointthe number of point the source buffer represents (it may be large than the buffer size)

§ resize()

void PointData::resize ( size_t  newNumSamples)

This method change the size of the data buffer.

Parameters
newNumSamplesthe new size of the buffer

§ setOffset()

void PointData::setOffset ( size_t  offset)

Member Data Documentation

§ m_channel

ChannelData* PointData::m_channel
protected

Definition at line 588 of file PointData.h.

§ m_numChannels

size_t PointData::m_numChannels
protected

Definition at line 587 of file PointData.h.

§ m_numSamples

size_t PointData::m_numSamples
protected

Definition at line 589 of file PointData.h.

§ m_offset

size_t PointData::m_offset
protected

Definition at line 590 of file PointData.h.

§ m_x

double* PointData::m_x
protected

Definition at line 593 of file PointData.h.

§ m_y

double* PointData::m_y
protected

Definition at line 594 of file PointData.h.

§ m_z

double* PointData::m_z
protected

Definition at line 595 of file PointData.h.


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

LizardTech