PointData is a group of ChannelData objects.
More...
#include <PointData.h>
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 411 of file PointData.h.
PointData::~PointData |
( |
void |
| ) |
|
PointData::PointData |
( |
void |
| ) |
|
static void PointData::copy |
( |
PointData & |
dst, |
|
|
size_t |
dstOffset, |
|
|
const PointData & |
src, |
|
|
size_t |
srcOffset, |
|
|
size_t |
length |
|
) |
| |
|
static |
- Parameters
-
dst | the destination buffer |
dstOffset | the first sample to overwrite |
src | the source buffer |
srcOffset | the fisrt sample to copy |
length | the 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.
const ChannelData& PointData::getChannel |
( |
size_t |
idx | ) |
const |
This method returns the ChannelData for a given index.
- Parameters
-
idx | the index of the channel wanted |
- Returns
- the channel data for the given channel
This method returns the ChannelData for a given index.
- Parameters
-
idx | the index of the channel wanted |
- Returns
- the channel data for the given channel
const ChannelData* PointData::getChannel |
( |
const char * |
name | ) |
const |
This method returns the ChannelData for a given name.
- Parameters
-
name | the name of the channel wanted |
- Returns
- the channel data for the given channel
ChannelData* PointData::getChannel |
( |
const char * |
name | ) |
|
This method returns the ChannelData for a given name.
- Parameters
-
name | the name of the channel wanted |
- Returns
- the channel data for the given channel
size_t PointData::getNumChannels |
( |
void |
| ) |
const |
This method returns the number of channels.
size_t PointData::getNumSamples |
( |
void |
| ) |
const |
This method returns the maximum number of samples that can be stored in the object.
const double* PointData::getX |
( |
void |
| ) |
const |
This method returns a pointer to the X channel samples.
double* PointData::getX |
( |
void |
| ) |
|
This method returns a pointer to the X channel samples.
const double* PointData::getY |
( |
void |
| ) |
const |
This method returns a pointer to the Y channel samples.
double* PointData::getY |
( |
void |
| ) |
|
This method returns a pointer to the Y channel samples.
const double* PointData::getZ |
( |
void |
| ) |
const |
This method returns a pointer to the Z channel samples.
double* PointData::getZ |
( |
void |
| ) |
|
This method returns a pointer to the Z channel samples.
bool PointData::hasChannel |
( |
const char * |
name | ) |
const |
The method determines if this object has a channel with the given name.
- Parameters
-
- Returns
- true if the channel was found
void PointData::init |
( |
const PointInfo & |
pointInfo, |
|
|
size_t |
numSamples |
|
) |
| |
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
-
dst | the destination buffer |
dstNumPoint | the number of point the destination buffer represents (it may be large than the buffer size) |
src | the source buffer |
srcNumPoint | the number of point the source buffer represents (it may be large than the buffer size) |
void PointData::resize |
( |
size_t |
newNumSamples | ) |
|
This method change the size of the data buffer.
- Parameters
-
newNumSamples | the new size of the buffer |
void PointData::setOffset |
( |
size_t |
offset | ) |
|
size_t PointData::m_numChannels |
|
protected |
size_t PointData::m_numSamples |
|
protected |
size_t PointData::m_offset |
|
protected |
The documentation for this class was generated from the following file: