113 return hasChannel<unsigned char>(
"colors");
118 return hasChannel<float>(
"normals");
140 for(
const auto& elem : *
this)
142 pb.insert({elem.first, elem.second.clone()});
A class to handle point information with an arbitrarily large number of attribute channels...
bool hasNormals() const
True, if buffer has normals.
void setNormalArray(floatArr normals, size_t n)
floatArr getNormalArray()
bool hasColors() const
True, if buffer contains colors.
const DataPtr dataPtr() const
boost::shared_array< unsigned char > ucharArr
void addFloatChannel(FloatChannelPtr data, const std::string &name)
Adds a float channel pointer to the map.
Channel< float > FloatChannel
ucharArr getColorArray(size_t &w)
void setPointArray(floatArr points, size_t n)
boost::shared_array< float > floatArr
void addUCharChannel(UCharChannelPtr data, const std::string &name)
Adds an uchar channel pointer to the map.
size_t numPoints() const
Returns the number of points in the buffer.
Channel< unsigned char > UCharChannel
boost::optional< Channel< T > > Optional
floatArr getPointArray()
Returns the internal point array.
UCharChannel::Ptr UCharChannelPtr
PointBuffer clone() const
Makes a clone.
void setColorArray(ucharArr colors, size_t n, size_t width=3)
FloatChannel::Ptr FloatChannelPtr
size_t numElements() const
ChannelManager class Store and access AttributeChannels. It expands the MultiChannelMap with downwoar...