|
OpenWalnut
1.4.0
|
This is a dataset which represent a clustering of fibers. More...
#include <WDataSetFiberClustering.h>
Inheritance diagram for WDataSetFiberClustering:Public Types | |
| typedef boost::shared_ptr< WDataSetFiberClustering > | SPtr |
| Convenience typedef for a boost::shared_ptr< WDataSetFiberClustering >. More... | |
| typedef boost::shared_ptr< const WDataSetFiberClustering > | ConstSPtr |
| Convenience typedef for a boost::shared_ptr< const WDataSetFiberClustering >. More... | |
| typedef std::map< size_t, WFiberCluster::SPtr > | ClusterMap |
| The type of the cluster map. More... | |
Public Member Functions | |
| WDataSetFiberClustering () | |
| Default constructor. More... | |
| WDataSetFiberClustering (const ClusterMap &clustering) | |
| constructor with cluster list. More... | |
| virtual | ~WDataSetFiberClustering () |
| Destructor. More... | |
| virtual const std::string | getName () const |
| The name of this transferable. More... | |
| virtual const std::string | getDescription () const |
| The description of this transferable. More... | |
| virtual void | setCluster (size_t id, WFiberCluster::SPtr cluster) |
| Sets the cluster at the given ID. More... | |
| virtual WFiberCluster::SPtr | getCluster (size_t id) |
| Returns the cluster with the given ID. More... | |
| virtual WFiberCluster::ConstSPtr | getCluster (size_t id) const |
| Returns the cluster with the given ID. More... | |
| virtual WFiberCluster::SPtr | getOrCreateCluster (size_t id) |
| Returns the cluster with the given ID. More... | |
| virtual void | removeCluster (size_t id) |
| Removes the cluster with the specified ID. More... | |
| ClusterMap::const_iterator | begin () const |
| The begin iterator of the clustering for const iteration. More... | |
| ClusterMap::iterator | begin () |
| The begin iterator of the clustering for non-const iteration. More... | |
| ClusterMap::const_iterator | end () const |
| The end iterator of the clustering for const iteration. More... | |
| ClusterMap::iterator | end () |
| The end iterator of the clustering for non-const iteration. More... | |
| size_t | size () const |
| Returns the amount of clusters in the clustering. More... | |
Public Member Functions inherited from WTransferable | |
| WTransferable () | |
| Default constructor. More... | |
| virtual | ~WTransferable () |
| Destructor. More... | |
Public Member Functions inherited from WPrototyped | |
| WPrototyped () | |
| Default constructor. More... | |
| virtual | ~WPrototyped () |
| Destructor. More... | |
| template<typename T > | |
| bool | isA () |
| Checks whether the actual prototype has the specified runtime type. More... | |
Static Public Member Functions | |
| static boost::shared_ptr< WPrototyped > | getPrototype () |
| Returns a prototype instantiated with the true type of the deriving class. More... | |
Static Protected Attributes | |
| static boost::shared_ptr< WPrototyped > | m_prototype = boost::shared_ptr< WPrototyped >() |
| Prototype for this dataset. More... | |
Private Attributes | |
| std::map< size_t, WFiberCluster::SPtr > | m_clusters |
| The map between ID and cluster. More... | |
This is a dataset which represent a clustering of fibers.
It does not itself contain the fiber-data. This dataset only contains the indices of fibers belonging to the clusters.
Each cluster has its own ID. A mapping between names and IDs is possible.
Definition at line 46 of file WDataSetFiberClustering.h.
| typedef std::map< size_t, WFiberCluster::SPtr > WDataSetFiberClustering::ClusterMap |
The type of the cluster map.
Definition at line 62 of file WDataSetFiberClustering.h.
| typedef boost::shared_ptr< const WDataSetFiberClustering > WDataSetFiberClustering::ConstSPtr |
Convenience typedef for a boost::shared_ptr< const WDataSetFiberClustering >.
Definition at line 57 of file WDataSetFiberClustering.h.
| typedef boost::shared_ptr< WDataSetFiberClustering > WDataSetFiberClustering::SPtr |
Convenience typedef for a boost::shared_ptr< WDataSetFiberClustering >.
Definition at line 52 of file WDataSetFiberClustering.h.
| WDataSetFiberClustering::WDataSetFiberClustering | ( | ) |
Default constructor.
Definition at line 32 of file WDataSetFiberClustering.cpp.
Referenced by getPrototype().
|
explicit |
constructor with cluster list.
| clustering | the cluster map defining the clustering |
Definition at line 37 of file WDataSetFiberClustering.cpp.
References m_clusters.
|
virtual |
Destructor.
Definition at line 43 of file WDataSetFiberClustering.cpp.
| WDataSetFiberClustering::ClusterMap::const_iterator WDataSetFiberClustering::begin | ( | ) | const |
The begin iterator of the clustering for const iteration.
Definition at line 114 of file WDataSetFiberClustering.cpp.
References m_clusters.
| WDataSetFiberClustering::ClusterMap::iterator WDataSetFiberClustering::begin | ( | ) |
The begin iterator of the clustering for non-const iteration.
Definition at line 119 of file WDataSetFiberClustering.cpp.
References m_clusters.
| WDataSetFiberClustering::ClusterMap::const_iterator WDataSetFiberClustering::end | ( | ) | const |
The end iterator of the clustering for const iteration.
Definition at line 124 of file WDataSetFiberClustering.cpp.
References m_clusters.
| WDataSetFiberClustering::ClusterMap::iterator WDataSetFiberClustering::end | ( | ) |
The end iterator of the clustering for non-const iteration.
Definition at line 129 of file WDataSetFiberClustering.cpp.
References m_clusters.
|
virtual |
Returns the cluster with the given ID.
| WInvalidID | if the ID is not known. |
| id | the ID of the cluster to get |
Definition at line 72 of file WDataSetFiberClustering.cpp.
References m_clusters.
|
virtual |
Returns the cluster with the given ID.
| WInvalidID | if the ID is not known. |
| id | the ID of the cluster to get |
Definition at line 82 of file WDataSetFiberClustering.cpp.
References m_clusters.
|
virtual |
The description of this transferable.
This is useful information for the users.
Implements WPrototyped.
Definition at line 62 of file WDataSetFiberClustering.cpp.
|
virtual |
The name of this transferable.
This is useful information for the users.
Implements WPrototyped.
Definition at line 57 of file WDataSetFiberClustering.cpp.
|
virtual |
Returns the cluster with the given ID.
If there is no cluster with this ID, an empty one is returned.
| id | the ID of the cluster to get |
Definition at line 92 of file WDataSetFiberClustering.cpp.
References m_clusters.
|
static |
Returns a prototype instantiated with the true type of the deriving class.
Definition at line 48 of file WDataSetFiberClustering.cpp.
References m_prototype, and WDataSetFiberClustering().
|
virtual |
Removes the cluster with the specified ID.
If it does not exist, nothing happens.
| id | the id of the cluster |
Definition at line 105 of file WDataSetFiberClustering.cpp.
References m_clusters.
|
virtual |
Sets the cluster at the given ID.
If there is a cluster at this ID, it is replaced.
| id | the ID of the cluster |
| cluster | the cluster |
Definition at line 67 of file WDataSetFiberClustering.cpp.
References m_clusters.
| size_t WDataSetFiberClustering::size | ( | ) | const |
Returns the amount of clusters in the clustering.
Definition at line 134 of file WDataSetFiberClustering.cpp.
References m_clusters.
|
private |
The map between ID and cluster.
Definition at line 193 of file WDataSetFiberClustering.h.
Referenced by begin(), end(), getCluster(), getOrCreateCluster(), removeCluster(), setCluster(), size(), and WDataSetFiberClustering().
|
staticprotected |
Prototype for this dataset.
Definition at line 188 of file WDataSetFiberClustering.h.
Referenced by getPrototype().
1.8.9.1