29 #include "WDataSetFiberClustering.h"
61 return "DataSetFiberClustering";
66 return "A collection of fiber clusters.";
79 throw WInvalidID(
"The cluster with the specified ID does not exist." );
86 ClusterMap::const_iterator it =
m_clusters.find(
id );
89 throw WInvalidID(
"The cluster with the specified ID does not exist." );
virtual WFiberCluster::SPtr getOrCreateCluster(size_t id)
Returns the cluster with the given ID.
static std::shared_ptr< WPrototyped > m_prototype
Prototype for this dataset.
WDataSetFiberClustering()
Default constructor.
static std::shared_ptr< WPrototyped > getPrototype()
Returns a prototype instantiated with the true type of the deriving class.
virtual ~WDataSetFiberClustering()
Destructor.
ClusterMap::const_iterator begin() const
The begin iterator of the clustering for const iteration.
size_t size() const
Returns the amount of clusters in the clustering.
virtual const std::string getName() const
The name of this transferable.
ClusterMap::const_iterator end() const
The end iterator of the clustering for const iteration.
virtual const std::string getDescription() const
The description of this transferable.
virtual void setCluster(size_t id, WFiberCluster::SPtr cluster)
Sets the cluster at the given ID.
std::map< size_t, WFiberCluster::SPtr > m_clusters
The map between ID and cluster.
std::map< size_t, WFiberCluster::SPtr > ClusterMap
The type of the cluster map.
virtual WFiberCluster::SPtr getCluster(size_t id)
Returns the cluster with the given ID.
virtual void removeCluster(size_t id)
Removes the cluster with the specified ID.
Represents a cluster of indices of a WDataSetFiberVector.
std::shared_ptr< WFiberCluster > SPtr
Shared pointer abbreviation.
std::shared_ptr< const WFiberCluster > ConstSPtr
Const shared pointer abbreviation.
Indicates invalid element access of a container.