OpenWalnut  1.4.0
Public Member Functions | Private Attributes
WTractData Class Reference

Stores the data of deterministic fiber tractograms. More...

#include <WTractData.h>

List of all members.

Public Member Functions

 WTractData (boost::shared_ptr< std::vector< float > > pointComponents, boost::shared_ptr< std::vector< size_t > > startIndices)
 Constructs a new WTractData.
size_t numTracts () const

Private Attributes

boost::shared_ptr< std::vector
< float > > 
m_pointComponents
 Stores the all components of all vertices of all tracts.
boost::shared_ptr< std::vector
< size_t > > 
m_startIndices
 Stores for every tract the index number where it starts in the m_pointComponents array.

Detailed Description

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 36 of file WTractData.h.


Constructor & Destructor Documentation

WTractData::WTractData ( boost::shared_ptr< std::vector< float > >  pointComponents,
boost::shared_ptr< std::vector< size_t > >  startIndices 
)

Constructs a new WTractData.

Parameters:
pointComponentsx, y, and z components of each position of each tract
startIndicesFor each tract the index of the first x component in pointComponents.

Definition at line 31 of file WTractData.cpp.


Member Function Documentation

size_t WTractData::numTracts ( ) const [inline]
Returns:
Number of tracts.

Definition at line 75 of file WTractData.h.

References m_startIndices.


Member Data Documentation

boost::shared_ptr< std::vector< float > > WTractData::m_pointComponents [private]

Stores the all components of all vertices of all tracts.

First x, y and finally z component are arranged in this manner: $[x_0, y_0, z_0, ..., x_{m_0}, y_{m_0}, z_{m_0}, ... , ..., x_{m_k}, y_{m_k}, z_{m_k}]$ where there are $k$ many tracts where the i'th tract has $m_i$ vertices, but $3m_i$ compontents. In other words: m_points.size() / 3 == number of vertices.

Notes:
the reason for beeing restricted to float is, that graphic boards and also the tracking algorithms which produce those tracks are just using floats.

Definition at line 63 of file WTractData.h.

boost::shared_ptr< std::vector< size_t > > WTractData::m_startIndices [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 $x_0$.

Notes:
the reason for using size_t instead of unsigned int is that more tracts with more points are in sight.

Definition at line 72 of file WTractData.h.

Referenced by numTracts().


The documentation for this class was generated from the following files: