25 #ifndef WJOINCONTOURTREE_H
26 #define WJOINCONTOURTREE_H
34 #include "../../common/WTransferable.h"
35 #include "../WDataSetSingle.h"
88 virtual const std::string
getName()
const;
113 std::shared_ptr< WGridRegular3D >
m_grid;
151 return "JoinContourTree";
156 return "Computes the Join-Tree out of a given dataset.";
Unit tests the Join Tree of the Contour Tree!
Comperator for indirect sort so the value set is not modified.
bool operator()(size_t i, size_t j)
Compares the isovalue of the elments with index i and j.
IndirectCompare(std::shared_ptr< WValueSet< double > > valueSet)
Since we must have access to the value set we need a reference to it.
std::shared_ptr< WValueSet< double > > m_valueSet
Reference to the isovalues.
Processes a dataset for join tree computation.
std::vector< size_t > m_elementIndices
Stores the component number for the i'th vertex in the value set.
std::vector< size_t > m_lowestVoxel
Stores the index of lowest element for the i'th component.
std::vector< size_t > m_joinTree
For each index stores which node it is connected to.
std::shared_ptr< WGridRegular3D > m_grid
Stores the reference to the grid of the given dataset to get the neighbours of a voxel.
void buildJoinTree()
Build the join tree.
static std::shared_ptr< WPrototyped > m_prototype
The prototype as singleton.
static std::shared_ptr< WPrototyped > getPrototype()
Returns a prototype instantiated with the true type of the deriving class.
void sortIndexArray()
Sort the indices on their element value of the value set in descending order.
std::shared_ptr< std::set< size_t > > getVolumeVoxelsEnclosedByIsoSurface(const double isoValue) const
For a given isovalue all the voxel which are enclosed by the biggest isosurface are computed.
virtual const std::string getDescription() const
Gets the description for this prototype.
std::shared_ptr< WValueSet< double > > m_valueSet
Stores reference to the isovalues, so we may sort them indirect on their value.
virtual const std::string getName() const
Gets the name of this prototype.
Class building the interface for classes that might be transferred using WModuleConnector.
Base Class for all value set types.