OpenWalnut
1.4.0
|
Stores the data of deterministic fiber tractograms. More...
#include <WTractData.h>
Public Member Functions | |
WTractData (boost::shared_ptr< std::vector< float > > pointComponents, boost::shared_ptr< std::vector< size_t > > startIndices) | |
Constructs a new WTractData. More... | |
size_t | numTracts () const |
Private Attributes | |
boost::shared_ptr< std::vector< float > > | m_pointComponents |
Stores the all components of all vertices of all tracts. More... | |
boost::shared_ptr< std::vector< size_t > > | m_startIndices |
Stores for every tract the index number where it starts in the m_pointComponents array. More... | |
Stores the data of deterministic fiber tractograms.
Derived or optional data as tangents, FA, etc. are not saved in here, and never will be! Just the polylines.
Definition at line 38 of file WTractData.h.
WTractData::WTractData | ( | boost::shared_ptr< std::vector< float > > | pointComponents, |
boost::shared_ptr< std::vector< size_t > > | startIndices | ||
) |
Constructs a new WTractData.
pointComponents | x, y, and z components of each position of each tract |
startIndices | For each tract the index of the first x component in pointComponents. |
Definition at line 31 of file WTractData.cpp.
|
inline |
|
private |
Stores the all components of all vertices of all tracts.
First x, y and finally z component are arranged in this manner: where there are
many tracts where the i'th tract has
vertices, but
compontents. In other words: m_points.size() / 3 == number of vertices.
Definition at line 65 of file WTractData.h.
|
private |
Stores for every tract the index number where it starts in the m_pointComponents array.
This means the index of each tracts first component .
size_t
instead of unsigned
int
is that more tracts with more points are in sight. Definition at line 74 of file WTractData.h.
Referenced by numTracts().