25 #ifndef WFIBERACCUMULATOR_H
26 #define WFIBERACCUMULATOR_H
31 #include <boost/thread.hpp>
33 #include "../common/math/linearAlgebra/WVectorFixed.h"
34 #include "WDataSetFiberVector.h"
35 #include "WDataSetFibers.h"
61 void add( std::vector< WVector3d >
const& in );
89 std::shared_ptr< std::vector< float > >
m_points;
A class that encapsulates the data needed to construct a WDataSetFibers.
std::shared_ptr< std::vector< size_t > > m_fiberLengths
One of the vectors needed to construct a WDataSetFibers.
void add(std::vector< WVector3d > const &in)
Add a fiber to the dataset.
std::shared_ptr< WDataSetFibers > buildDataSet()
Return the dataset that has been accumulated to this point and start a new dataset.
boost::mutex m_fiberMutex
A mutex needed to guarantee thread-safety.
void clear()
Clears all data.
std::shared_ptr< std::vector< size_t > > m_fiberIndices
One of the vectors needed to construct a WDataSetFibers.
virtual ~WFiberAccumulator()
Destructor.
WFiberAccumulator()
Constructor.
std::shared_ptr< std::vector< float > > m_points
One of the vectors needed to construct a WDataSetFibers.
std::shared_ptr< std::vector< size_t > > m_pointToFiber
One of the vectors needed to construct a WDataSetFibers.