25 #ifndef WDATASETFIBERVECTOR_H
26 #define WDATASETFIBERVECTOR_H
33 #include "../common/datastructures/WFiber.h"
35 #include "WDataSetFibers.h"
47 typedef std::shared_ptr< WDataSetFiberVector >
SPtr;
116 virtual const std::string
getName()
const;
146 std::shared_ptr< WFiber > centerLine( std::shared_ptr< const WDataSetFibers > tracts );
148 std::shared_ptr< WFiber > longestLine( std::shared_ptr< const WDataSetFibers > tracts );
150 std::shared_ptr< WFiber > centerLine( std::shared_ptr< const WDataSetFiberVector > tracts );
152 std::shared_ptr< WFiber > longestLine( std::shared_ptr< const WDataSetFiberVector > tracts );
Represents a simple set of WFibers.
virtual const std::string getDescription() const
Gets the description for this prototype.
std::shared_ptr< WDataSetFiberVector > generateDataSetOutOfUsedFibers(const std::vector< bool > &unused) const
Generates new WDataSetFiberVector out of the used fibers from this dataset.
std::shared_ptr< WDataSetFiberVector > SPtr
Short hand for a std::shared_ptr on such classes.
std::shared_ptr< WDataSetFibers > toWDataSetFibers() const
Convert this dataset into WDataSetFibers format for other purposes if needed.
virtual ~WDataSetFiberVector()
Destructs WDataSetFiberVector instances.
static std::shared_ptr< WPrototyped > getPrototype()
Returns a prototype instantiated with the true type of the deriving class.
WDataSetFiberVector()
Default constructor for creating an empty fiber vector.
void sortDescLength()
Sort fibers descending on their length and update.
virtual bool isTexture() const
Determines whether this dataset can be used as a texture.
static std::shared_ptr< WPrototyped > m_prototype
The prototype as singleton.
virtual const std::string getName() const
Gets the name of this prototype.
WDataSetFiberVector & operator=(const WDataSetFiberVector &other)
Operator for assigning instances of WDataSetFiberVector.
Base class for all data set types.
This is taken from OpenSceneGraph <osg/MixinVector> but copy and pasted in order to reduce dependency...