OpenWalnut
1.5.0dev
|
Represents a hierarchy of clusters. More...
#include <WDataSetHierarchicalClustering.h>
Public Types | |
typedef std::shared_ptr< WDataSetHierarchicalClustering > | SPtr |
Pointer to dataset. More... | |
typedef std::shared_ptr< const WDataSetHierarchicalClustering > | ConstSPtr |
Pointer to const dataset. More... | |
Public Types inherited from WDataSet | |
typedef std::shared_ptr< WDataSet > | SPtr |
Shared pointer abbreviation to a instance of this class. More... | |
typedef std::shared_ptr< const WDataSet > | ConstSPtr |
Shared pointer abbreviation to a const instance of this class. More... | |
Public Member Functions | |
WDataSetHierarchicalClustering (WTreeNode::SPtr rootNode, std::map< size_t, WFiberCluster::SPtr > clusterMap) | |
Constructs a hierarchical clustering dataset. More... | |
WDataSetHierarchicalClustering () | |
Constructs a new set of tracts. More... | |
virtual | ~WDataSetHierarchicalClustering () |
Destructor. More... | |
virtual const std::string | getName () const |
Gets the name of this prototype. More... | |
virtual const std::string | getDescription () const |
Gets the description for this prototype. More... | |
WTreeNode::SPtr | getRootNode () |
Returns the root cluster. More... | |
std::map< size_t, WFiberCluster::SPtr > | getClusterMap () |
Returns the whole cluster map. More... | |
std::vector< WTreeNode::SPtr > | getClustersDownToLevel (WTreeNode::SPtr node, size_t level) |
Returns all clusters down (root node has highest level) to a certain level in the hierarchy. More... | |
Public Member Functions inherited from WDataSet | |
WDataSet () | |
This constructor should be used if a dataSet does not stem from a file. More... | |
virtual | ~WDataSet () |
Since WDataSet is a base class and thus should be polymorphic we add virtual destructor. More... | |
void | setFilename (const std::string filename) |
Set the name of the file that this data set stems from. More... | |
std::string | getFilename () const |
Get the name of the file that this data set stems from. More... | |
OW_API_DEPRECATED void | setFileName (const std::string filename) |
Set the name of the file that this data set stems from. More... | |
OW_API_DEPRECATED std::string | getFileName () const |
Get the name of the file that this data set stems from. More... | |
virtual bool | isTexture () const |
Determines whether this dataset can be used as a texture. More... | |
virtual std::shared_ptr< WDataSetVector > | isVectorDataSet () |
Checks if this dataset is a vector dataset. More... | |
virtual osg::ref_ptr< WDataTexture3D > | getTexture () const |
Returns the texture- representation of the dataset. More... | |
std::shared_ptr< WProperties > | getProperties () const |
Return a pointer to the properties object of the dataset. More... | |
std::shared_ptr< WProperties > | getInformationProperties () const |
Return a pointer to the information properties object of the dataset. 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 std::shared_ptr< WPrototyped > | getPrototype () |
Returns a prototype instantiated with the true type of the deriving class. More... | |
Static Public Member Functions inherited from WDataSet | |
static std::shared_ptr< WPrototyped > | getPrototype () |
Returns a prototype instantiated with the true type of the deriving class. More... | |
Static Protected Attributes | |
static std::shared_ptr< WPrototyped > | m_prototype = std::shared_ptr< WPrototyped >() |
The prototype as singleton. More... | |
Static Protected Attributes inherited from WDataSet | |
static std::shared_ptr< WPrototyped > | m_prototype = std::shared_ptr< WPrototyped >() |
The prototype as singleton. More... | |
Private Attributes | |
WTreeNode::SPtr | m_rootNode |
Pointer to the root cluster. More... | |
std::map< size_t, WFiberCluster::SPtr > | m_clusters |
Stores the cluster map. More... | |
Additional Inherited Members | |
Protected Attributes inherited from WDataSet | |
std::shared_ptr< WProperties > | m_properties |
The property object for the dataset. More... | |
std::shared_ptr< WProperties > | m_infoProperties |
The property object for the dataset containing only props whose purpose is "PV_PURPOSE_INFORMNATION". More... | |
Represents a hierarchy of clusters.
Definition at line 44 of file WDataSetHierarchicalClustering.h.
typedef std::shared_ptr< const WDataSetHierarchicalClustering > WDataSetHierarchicalClustering::ConstSPtr |
Pointer to const dataset.
Definition at line 56 of file WDataSetHierarchicalClustering.h.
typedef std::shared_ptr< WDataSetHierarchicalClustering > WDataSetHierarchicalClustering::SPtr |
Pointer to dataset.
Definition at line 51 of file WDataSetHierarchicalClustering.h.
WDataSetHierarchicalClustering::WDataSetHierarchicalClustering | ( | WTreeNode::SPtr | rootNode, |
std::map< size_t, WFiberCluster::SPtr > | clusterMap | ||
) |
Constructs a hierarchical clustering dataset.
rootNode | the root node of the WTreeNode-tree holding indices to the clusterMap |
clusterMap | a map of fiber clusters accessible via index |
Definition at line 41 of file WDataSetHierarchicalClustering.cpp.
References m_clusters, and m_rootNode.
WDataSetHierarchicalClustering::WDataSetHierarchicalClustering | ( | ) |
Constructs a new set of tracts.
The constructed instance is not usable but needed for prototype mechanism.
Definition at line 36 of file WDataSetHierarchicalClustering.cpp.
Referenced by getPrototype().
|
virtual |
Destructor.
Definition at line 49 of file WDataSetHierarchicalClustering.cpp.
std::map< size_t, WFiberCluster::SPtr > WDataSetHierarchicalClustering::getClusterMap | ( | ) |
Returns the whole cluster map.
Definition at line 78 of file WDataSetHierarchicalClustering.cpp.
References m_clusters.
std::vector< WTreeNode::SPtr > WDataSetHierarchicalClustering::getClustersDownToLevel | ( | WTreeNode::SPtr | node, |
size_t | level | ||
) |
Returns all clusters down (root node has highest level) to a certain level in the hierarchy.
node | the node used as a starting point for the recursive lookup |
level | the maximum level for a node to be selected |
Definition at line 84 of file WDataSetHierarchicalClustering.cpp.
|
virtual |
Gets the description for this prototype.
Reimplemented from WDataSet.
Definition at line 68 of file WDataSetHierarchicalClustering.cpp.
|
virtual |
Gets the name of this prototype.
Reimplemented from WDataSet.
Definition at line 63 of file WDataSetHierarchicalClustering.cpp.
|
static |
Returns a prototype instantiated with the true type of the deriving class.
Definition at line 54 of file WDataSetHierarchicalClustering.cpp.
References m_prototype, and WDataSetHierarchicalClustering().
WTreeNode::SPtr WDataSetHierarchicalClustering::getRootNode | ( | ) |
Returns the root cluster.
Definition at line 73 of file WDataSetHierarchicalClustering.cpp.
References m_rootNode.
|
private |
Stores the cluster map.
Definition at line 135 of file WDataSetHierarchicalClustering.h.
Referenced by getClusterMap(), and WDataSetHierarchicalClustering().
|
staticprotected |
The prototype as singleton.
Definition at line 124 of file WDataSetHierarchicalClustering.h.
Referenced by getPrototype().
|
private |
Pointer to the root cluster.
Definition at line 130 of file WDataSetHierarchicalClustering.h.
Referenced by getRootNode(), and WDataSetHierarchicalClustering().