Class PointBuffer
Defined in File PointBuffer.hpp
Inheritance Relationships
Base Type
public lvr2::BaseBuffer(Class BaseBuffer)
Derived Type
public lvr2::WaveformBuffer(Class WaveformBuffer)
Class Documentation
-
class PointBuffer : public lvr2::BaseBuffer
A class to handle point information with an arbitrarily large number of attribute channels. The added channels should always have the same length as the point array to keep the mapping between geometry (channel ‘points’) and the associated layers like RGB colors or point normals consistent.
Subclassed by lvr2::WaveformBuffer
Public Functions
-
PointBuffer()
-
inline virtual ~PointBuffer()
-
floatArr getNormalArray()
If the buffer stores normals, the call we return an empty array, i.e., the shared pointer contains a nullptr.
-
ucharArr getColorArray(size_t &w)
If the buffer stores color information, the call we return an empty array, i.e., the shared pointer contains a nullptr.
-
bool hasColors() const
True, if buffer contains colors.
-
bool hasNormals() const
True, if buffer has normals.
-
size_t numPoints() const
Returns the number of points in the buffer.
-
PointBuffer clone() const
Makes a clone.
-
template<typename V>
inline PointBuffer manipulate(V visitor)
-
PointBuffer()