Class ReductionAlgorithm

Inheritance Relationships

Derived Types

Class Documentation

class ReductionAlgorithm

Interface defintion for algorithms that reduce point buffer objects.

Subclassed by lvr2::AllReductionAlgorithm, lvr2::FixedSizeReductionAlgorithm, lvr2::NoReductionAlgorithm, lvr2::OctreeReductionAlgorithm, lvr2::PercentageReductionAlgorithm

Public Functions

virtual PointBufferPtr getReducedPoints() = 0

Returns a reduced version of a point buffer object The structure of the reduced point buffer depends on the implementation that provides this interface method.

inline virtual void setPointBuffer(PointBufferPtr ptr)

Sets the Point Buffer object. Overriding classes may replace the default behavior, which just stores the internal pointer, to provided internal structures that are needed to reduce the data, e.g., Octrees.

Parameters:

ptr – Point buffer containing the original point cloud data

Protected Attributes

PointBufferPtr m_pointBuffer