25 #ifndef WDATASETFIBERCLUSTERING_H
26 #define WDATASETFIBERCLUSTERING_H
32 #include <boost/shared_ptr.hpp>
35 #include "datastructures/WFiberCluster.h"
37 #include "../common/exceptions/WInvalidID.h"
38 #include "../common/WTransferable.h"
52 typedef boost::shared_ptr< WDataSetFiberClustering >
SPtr;
57 typedef boost::shared_ptr< const WDataSetFiberClustering >
ConstSPtr;
62 typedef std::map< size_t, WFiberCluster::SPtr >
ClusterMap;
86 virtual const std::string
getName()
const;
154 ClusterMap::const_iterator
begin()
const;
161 ClusterMap::iterator
begin();
168 ClusterMap::const_iterator
end()
const;
175 ClusterMap::iterator
end();
196 #endif // WDATASETFIBERCLUSTERING_H
size_t size() const
Returns the amount of clusters in the clustering.
std::map< size_t, WFiberCluster::SPtr > m_clusters
The map between ID and cluster.
static boost::shared_ptr< WPrototyped > m_prototype
Prototype for this dataset.
virtual void removeCluster(size_t id)
Removes the cluster with the specified ID.
virtual ~WDataSetFiberClustering()
Destructor.
virtual WFiberCluster::SPtr getOrCreateCluster(size_t id)
Returns the cluster with the given ID.
boost::shared_ptr< const WDataSetFiberClustering > ConstSPtr
Convenience typedef for a boost::shared_ptr< const WDataSetFiberClustering >.
ClusterMap::const_iterator begin() const
The begin iterator of the clustering for const iteration.
Class building the interface for classes that might be transferred using WModuleConnector.
virtual void setCluster(size_t id, WFiberCluster::SPtr cluster)
Sets the cluster at the given ID.
virtual const std::string getDescription() const
The description of this transferable.
boost::shared_ptr< WDataSetFiberClustering > SPtr
Convenience typedef for a boost::shared_ptr< WDataSetFiberClustering >.
ClusterMap::const_iterator end() const
The end iterator of the clustering for const iteration.
WDataSetFiberClustering()
Default constructor.
std::map< size_t, WFiberCluster::SPtr > ClusterMap
The type of the cluster map.
boost::shared_ptr< WFiberCluster > SPtr
Shared pointer abbreviation.
boost::shared_ptr< const WFiberCluster > ConstSPtr
Const shared pointer abbreviation.
This is a dataset which represent a clustering of fibers.
virtual WFiberCluster::SPtr getCluster(size_t id)
Returns the cluster with the given ID.
static boost::shared_ptr< WPrototyped > getPrototype()
Returns a prototype instantiated with the true type of the deriving class.
virtual const std::string getName() const
The name of this transferable.