25 #ifndef WDATASETFIBERCLUSTERING_H
26 #define WDATASETFIBERCLUSTERING_H
33 #include "../common/WTransferable.h"
34 #include "../common/exceptions/WInvalidID.h"
35 #include "datastructures/WFiberCluster.h"
49 typedef std::shared_ptr< WDataSetFiberClustering >
SPtr;
54 typedef std::shared_ptr< const WDataSetFiberClustering >
ConstSPtr;
59 typedef std::map< size_t, WFiberCluster::SPtr >
ClusterMap;
83 virtual const std::string
getName()
const;
151 ClusterMap::const_iterator
begin()
const;
158 ClusterMap::iterator
begin();
165 ClusterMap::const_iterator
end()
const;
172 ClusterMap::iterator
end();
This is a dataset which represent a clustering of fibers.
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.
std::shared_ptr< WDataSetFiberClustering > SPtr
Convenience typedef for a std::shared_ptr< WDataSetFiberClustering >.
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::shared_ptr< const WDataSetFiberClustering > ConstSPtr
Convenience typedef for a std::shared_ptr< const WDataSetFiberClustering >.
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.
std::shared_ptr< WFiberCluster > SPtr
Shared pointer abbreviation.
std::shared_ptr< const WFiberCluster > ConstSPtr
Const shared pointer abbreviation.
Class building the interface for classes that might be transferred using WModuleConnector.