25 #ifndef WTRACTADAPTER_H
26 #define WTRACTADAPTER_H
32 #include "../common/math/linearAlgebra/WPosition.h"
48 WTractAdapter( std::shared_ptr<
const std::vector< float > > pointComponents,
size_t startIndex,
size_t numPoints );
This only is a 3d double vector.
size_t m_numPoints
How many points aka WPositions this tract consists of.
size_t numPoints() const
How many positions this tract incorporates.
WPosition operator[](size_t index) const
Constructs and returns a WPosition out of the i'th position of this tract.
std::shared_ptr< const std::vector< float > > m_pointComponents
The array where the components of this tracts live.
WTractAdapter(std::shared_ptr< const std::vector< float > > pointComponents, size_t startIndex, size_t numPoints)
Constructs a new WTract which has numPoints points and a startIndex inside of the given components ar...
size_t m_startIndex
The index of the x-component of the first point of this tract inside the m_pointComponents array.