25 #ifndef WJOINCONTOURTREE_H
26 #define WJOINCONTOURTREE_H
33 #include <boost/shared_ptr.hpp>
36 #include "../../common/WTransferable.h"
37 #include "../WDataSetSingle.h"
90 virtual const std::string
getName()
const;
115 boost::shared_ptr< WGridRegular3D >
m_grid;
153 return "JoinContourTree";
158 return "Computes the Join-Tree out of a given dataset.";
161 #endif // WJOINCONTOURTREE_H
boost::shared_ptr< WValueSet< double > > m_valueSet
Stores reference to the isovalues, so we may sort them indirect on their value.
boost::shared_ptr< WValueSet< double > > m_valueSet
Reference to the isovalues.
bool operator()(size_t i, size_t j)
Compares the isovalue of the elments with index i and j.
void buildJoinTree()
Build the join tree.
static boost::shared_ptr< WPrototyped > m_prototype
The prototype as singleton.
Unit tests the Join Tree of the Contour Tree!
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.
Class building the interface for classes that might be transferred using WModuleConnector.
Comperator for indirect sort so the value set is not modified.
boost::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...
boost::shared_ptr< WGridRegular3D > m_grid
Stores the reference to the grid of the given dataset to get the neighbours of a voxel.
void sortIndexArray()
Sort the indices on their element value of the value set in descending order.
Processes a dataset for join tree computation.
Base Class for all value set types.
virtual const std::string getDescription() const
Gets the description for this prototype.
std::vector< size_t > m_elementIndices
Stores the component number for the i'th vertex in the value set.
virtual const std::string getName() const
Gets the name of this prototype.
IndirectCompare(boost::shared_ptr< WValueSet< double > > valueSet)
Since we must have access to the value set we need a reference to it.
static boost::shared_ptr< WPrototyped > getPrototype()
Returns a prototype instantiated with the true type of the deriving class.