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