Go to the documentation of this file.
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()});
boost::shared_array< float > floatArr
FloatChannel::Ptr FloatChannelPtr
ucharArr getColorArray(size_t &w)
boost::optional< Channel< T > > Optional
UCharChannel::Ptr UCharChannelPtr
bool hasNormals() const
True, if buffer has normals.
void setColorArray(ucharArr colors, size_t n, size_t width=3)
A class to handle point information with an arbitrarily large number of attribute channels....
PointBuffer clone() const
Makes a clone.
floatArr getNormalArray()
void setNormalArray(floatArr normals, size_t n)
floatArr getPointArray()
Returns the internal point array.
ChannelManager class Store and access AttributeChannels. It expands the MultiChannelMap with downwoar...
const DataPtr dataPtr() const
void addUCharChannel(UCharChannelPtr data, const std::string &name)
Adds an uchar channel pointer to the map.
void setPointArray(floatArr points, size_t n)
size_t numPoints() const
Returns the number of points in the buffer.
bool hasColors() const
True, if buffer contains colors.
Channel< float > FloatChannel
boost::shared_array< unsigned char > ucharArr
void addFloatChannel(FloatChannelPtr data, const std::string &name)
Adds a float channel pointer to the map.
Channel< unsigned char > UCharChannel
size_t numElements() const
lvr2
Author(s): Thomas Wiemann
, Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:24