TTK
Loading...
Searching...
No Matches
ttk::MergeTreeVisualization Class Reference

#include <MergeTreeVisualization.h>

Inheritance diagram for ttk::MergeTreeVisualization:
ttk::Debug ttk::BaseClass ttkMergeTreeVisualization

Public Member Functions

 MergeTreeVisualization ()=default
 ~MergeTreeVisualization () override=default
void setBranchDecompositionPlanarLayout (bool b)
void setPathPlanarLayout (bool b)
void setBranchSpacing (double d)
void setRescaleTreesIndividually (bool b)
void setImportantPairs (double d)
void setImportantPairsSpacing (double d)
void setNonImportantPairsSpacing (double d)
void setNonImportantPairsProximity (double d)
void setExcludeImportantPairsHigher (std::string &d)
void setExcludeImportantPairsLower (std::string &d)
template<class dataType>
void treePlanarLayoutBDImpl (ftm::FTMTree_MT *tree, std::vector< float > &retVec, std::vector< LongSimplexId > &treeSimplexId, std::vector< ftm::idNode > &ttkNotUsed(branching), std::vector< std::vector< ftm::idNode > > &nodeBranching)
template<class dataType>
void pathPlanarLayout (ftm::FTMTree_MT *tree, std::vector< float > &retVec, std::vector< LongSimplexId > &treeSimplexId, std::vector< ftm::idNode > &leaves, double importantPairsGap)
void shiftSubtreeBounds (ftm::FTMTree_MT *tree, ftm::idNode subtreeRoot, double shift, std::vector< float > &retVec, std::vector< LongSimplexId > &treeSimplexId)
template<class dataType>
void treePlanarLayoutImpl (ftm::FTMTree_MT *tree, std::tuple< double, double, double, double, double, double > oldBounds, double ttkNotUsed(refPersistence), std::vector< float > &retVec)
template<class dataType>
void treePlanarLayout (ftm::FTMTree_MT *tree, std::tuple< double, double, double, double, double, double > oldBounds, double refPersistence, std::vector< float > &res)
template<class dataType>
void persistenceDiagramPlanarLayout (ftm::FTMTree_MT *tree, std::vector< float > &res)
void printTuple (std::tuple< float, float, float, float > tup)
std::tuple< float, float, float, float > getBranchBounds (std::vector< float > &retVec, std::vector< LongSimplexId > &treeSimplexId, std::vector< ftm::idNode > &branching, ftm::FTMTree_MT *tree, ftm::idNode branchRoot, bool restricted=false)
bool isConflictingBoundsXOneWay (std::tuple< float, float, float, float > first, std::tuple< float, float, float, float > second)
bool isConflictingBoundsX (std::tuple< float, float, float, float > first, std::tuple< float, float, float, float > second)
bool isConflictingBoundsYOneWay (std::tuple< float, float, float, float > first, std::tuple< float, float, float, float > second)
bool isConflictingBoundsY (std::tuple< float, float, float, float > first, std::tuple< float, float, float, float > second)
bool isConflictingBounds (std::tuple< float, float, float, float > first, std::tuple< float, float, float, float > second)
bool isConflictingBranchAndBound (std::tuple< float, float, float, float > first, std::tuple< float, float, float, float > second, ftm::FTMTree_MT *tree, ftm::idNode branchNodeOrigin, std::vector< float > &retVec, std::vector< LongSimplexId > &treeSimplexId)
std::tuple< float, float, float, float > shiftBranchBoundsTuple (std::tuple< float, float, float, float > branchBound, float realShift)
void shiftBranchBounds (std::vector< float > &retVec, std::vector< LongSimplexId > &treeSimplexId, std::vector< ftm::idNode > &branching, std::vector< std::tuple< float, float, float, float > > &allBranchBounds, std::vector< ftm::idNode > &branchOrigins, ftm::FTMTree_MT *tree, ftm::idNode branchRoot, float shift)
void tupleToVector (std::tuple< double, double, double, double, double, double > &tup, std::vector< double > &vec)
std::tuple< double, double, double, double, double, double > vectorToTuple (std::vector< double > &vec)
std::tuple< double, double, double, double, double, double > getMaximalBounds (std::vector< std::tuple< double, double, double, double, double, double > > &allBounds, std::vector< int > &clusteringAssignmentT, int clusterID)
void parseExcludeImportantPairsString (std::string &excludeString, std::vector< double > &excludeVector)
Public Member Functions inherited from ttk::Debug
 Debug ()
 ~Debug () override
virtual int setDebugLevel (const int &debugLevel)
int setWrapper (const Wrapper *wrapper) override
int printMsg (const std::string &msg, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
int printMsg (const std::vector< std::string > &msgs, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
int printErr (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const
int printWrn (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const
int printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const double &memory, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
int printMsg (const std::string &msg, const double &progress, const double &time, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
int printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
int printMsg (const std::string &msg, const double &progress, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
int printMsg (const std::string &msg, const double &progress, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
int printMsg (const std::vector< std::vector< std::string > > &rows, const debug::Priority &priority=debug::Priority::INFO, const bool hasHeader=true, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
int printMsg (const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const
int printMsg (const debug::Separator &separator, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
int printMsg (const std::string &msg, const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const
void setDebugMsgPrefix (const std::string &prefix)
Public Member Functions inherited from ttk::BaseClass
 BaseClass ()
virtual ~BaseClass ()=default
int getThreadNumber () const
virtual int setThreadNumber (const int threadNumber)

Protected Attributes

bool branchDecompositionPlanarLayout_ = false
bool pathPlanarLayout_ = false
double branchSpacing_ = 1.
bool rescaleTreesIndividually_ = false
double importantPairs_ = 50.
double importantPairsSpacing_ = 1.
double nonImportantPairsSpacing_ = 1.
double nonImportantPairsProximity_ = 0.05
std::string excludeImportantPairsLower_ = ""
std::string excludeImportantPairsHigher_ = ""
std::vector< double > excludeImportantPairsLowerValues_
std::vector< double > excludeImportantPairsHigherValues_
Protected Attributes inherited from ttk::Debug
int debugLevel_
std::string debugMsgPrefix_
std::string debugMsgNamePrefix_
Protected Attributes inherited from ttk::BaseClass
bool lastObject_
int threadNumber_
Wrapperwrapper_

Additional Inherited Members

Protected Member Functions inherited from ttk::Debug
int printMsgInternal (const std::string &msg, const std::string &right, const std::string &filler, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
int printMsgInternal (const std::string &msg, const debug::Priority &priority, const debug::LineMode &lineMode, std::ostream &stream=std::cout) const
int welcomeMsg (std::ostream &stream)
Static Protected Attributes inherited from ttk::Debug
static COMMON_EXPORTS debug::LineMode lastLineMode = ttk::debug::LineMode::NEW

Detailed Description

Definition at line 16 of file MergeTreeVisualization.h.

Constructor & Destructor Documentation

◆ MergeTreeVisualization()

ttk::MergeTreeVisualization::MergeTreeVisualization ( )
default

◆ ~MergeTreeVisualization()

ttk::MergeTreeVisualization::~MergeTreeVisualization ( )
overridedefault

Member Function Documentation

◆ getBranchBounds()

std::tuple< float, float, float, float > ttk::MergeTreeVisualization::getBranchBounds ( std::vector< float > & retVec,
std::vector< LongSimplexId > & treeSimplexId,
std::vector< ftm::idNode > & branching,
ftm::FTMTree_MT * tree,
ftm::idNode branchRoot,
bool restricted = false )
inline

Definition at line 932 of file MergeTreeVisualization.h.

◆ getMaximalBounds()

std::tuple< double, double, double, double, double, double > ttk::MergeTreeVisualization::getMaximalBounds ( std::vector< std::tuple< double, double, double, double, double, double > > & allBounds,
std::vector< int > & clusteringAssignmentT,
int clusterID )
inline

Definition at line 1086 of file MergeTreeVisualization.h.

◆ isConflictingBounds()

bool ttk::MergeTreeVisualization::isConflictingBounds ( std::tuple< float, float, float, float > first,
std::tuple< float, float, float, float > second )
inline

Definition at line 1005 of file MergeTreeVisualization.h.

◆ isConflictingBoundsX()

bool ttk::MergeTreeVisualization::isConflictingBoundsX ( std::tuple< float, float, float, float > first,
std::tuple< float, float, float, float > second )
inline

Definition at line 984 of file MergeTreeVisualization.h.

◆ isConflictingBoundsXOneWay()

bool ttk::MergeTreeVisualization::isConflictingBoundsXOneWay ( std::tuple< float, float, float, float > first,
std::tuple< float, float, float, float > second )
inline

Definition at line 975 of file MergeTreeVisualization.h.

◆ isConflictingBoundsY()

bool ttk::MergeTreeVisualization::isConflictingBoundsY ( std::tuple< float, float, float, float > first,
std::tuple< float, float, float, float > second )
inline

Definition at line 999 of file MergeTreeVisualization.h.

◆ isConflictingBoundsYOneWay()

bool ttk::MergeTreeVisualization::isConflictingBoundsYOneWay ( std::tuple< float, float, float, float > first,
std::tuple< float, float, float, float > second )
inline

Definition at line 990 of file MergeTreeVisualization.h.

◆ isConflictingBranchAndBound()

bool ttk::MergeTreeVisualization::isConflictingBranchAndBound ( std::tuple< float, float, float, float > first,
std::tuple< float, float, float, float > second,
ftm::FTMTree_MT * tree,
ftm::idNode branchNodeOrigin,
std::vector< float > & retVec,
std::vector< LongSimplexId > & treeSimplexId )
inline

Definition at line 1012 of file MergeTreeVisualization.h.

◆ parseExcludeImportantPairsString()

void ttk::MergeTreeVisualization::parseExcludeImportantPairsString ( std::string & excludeString,
std::vector< double > & excludeVector )
inline

Definition at line 1112 of file MergeTreeVisualization.h.

◆ pathPlanarLayout()

template<class dataType>
void ttk::MergeTreeVisualization::pathPlanarLayout ( ftm::FTMTree_MT * tree,
std::vector< float > & retVec,
std::vector< LongSimplexId > & treeSimplexId,
std::vector< ftm::idNode > & leaves,
double importantPairsGap )
inline

Definition at line 274 of file MergeTreeVisualization.h.

◆ persistenceDiagramPlanarLayout()

template<class dataType>
void ttk::MergeTreeVisualization::persistenceDiagramPlanarLayout ( ftm::FTMTree_MT * tree,
std::vector< float > & res )
inline

Definition at line 894 of file MergeTreeVisualization.h.

◆ printTuple()

void ttk::MergeTreeVisualization::printTuple ( std::tuple< float, float, float, float > tup)
inline

Definition at line 922 of file MergeTreeVisualization.h.

◆ setBranchDecompositionPlanarLayout()

void ttk::MergeTreeVisualization::setBranchDecompositionPlanarLayout ( bool b)
inline

Definition at line 40 of file MergeTreeVisualization.h.

◆ setBranchSpacing()

void ttk::MergeTreeVisualization::setBranchSpacing ( double d)
inline

Definition at line 46 of file MergeTreeVisualization.h.

◆ setExcludeImportantPairsHigher()

void ttk::MergeTreeVisualization::setExcludeImportantPairsHigher ( std::string & d)
inline

Definition at line 64 of file MergeTreeVisualization.h.

◆ setExcludeImportantPairsLower()

void ttk::MergeTreeVisualization::setExcludeImportantPairsLower ( std::string & d)
inline

Definition at line 68 of file MergeTreeVisualization.h.

◆ setImportantPairs()

void ttk::MergeTreeVisualization::setImportantPairs ( double d)
inline

Definition at line 52 of file MergeTreeVisualization.h.

◆ setImportantPairsSpacing()

void ttk::MergeTreeVisualization::setImportantPairsSpacing ( double d)
inline

Definition at line 55 of file MergeTreeVisualization.h.

◆ setNonImportantPairsProximity()

void ttk::MergeTreeVisualization::setNonImportantPairsProximity ( double d)
inline

Definition at line 61 of file MergeTreeVisualization.h.

◆ setNonImportantPairsSpacing()

void ttk::MergeTreeVisualization::setNonImportantPairsSpacing ( double d)
inline

Definition at line 58 of file MergeTreeVisualization.h.

◆ setPathPlanarLayout()

void ttk::MergeTreeVisualization::setPathPlanarLayout ( bool b)
inline

Definition at line 43 of file MergeTreeVisualization.h.

◆ setRescaleTreesIndividually()

void ttk::MergeTreeVisualization::setRescaleTreesIndividually ( bool b)
inline

Definition at line 49 of file MergeTreeVisualization.h.

◆ shiftBranchBounds()

void ttk::MergeTreeVisualization::shiftBranchBounds ( std::vector< float > & retVec,
std::vector< LongSimplexId > & treeSimplexId,
std::vector< ftm::idNode > & branching,
std::vector< std::tuple< float, float, float, float > > & allBranchBounds,
std::vector< ftm::idNode > & branchOrigins,
ftm::FTMTree_MT * tree,
ftm::idNode branchRoot,
float shift )
inline

Definition at line 1039 of file MergeTreeVisualization.h.

◆ shiftBranchBoundsTuple()

std::tuple< float, float, float, float > ttk::MergeTreeVisualization::shiftBranchBoundsTuple ( std::tuple< float, float, float, float > branchBound,
float realShift )
inline

Definition at line 1031 of file MergeTreeVisualization.h.

◆ shiftSubtreeBounds()

void ttk::MergeTreeVisualization::shiftSubtreeBounds ( ftm::FTMTree_MT * tree,
ftm::idNode subtreeRoot,
double shift,
std::vector< float > & retVec,
std::vector< LongSimplexId > & treeSimplexId )
inline

Definition at line 381 of file MergeTreeVisualization.h.

◆ treePlanarLayout()

template<class dataType>
void ttk::MergeTreeVisualization::treePlanarLayout ( ftm::FTMTree_MT * tree,
std::tuple< double, double, double, double, double, double > oldBounds,
double refPersistence,
std::vector< float > & res )
inline

Definition at line 882 of file MergeTreeVisualization.h.

◆ treePlanarLayoutBDImpl()

template<class dataType>
void ttk::MergeTreeVisualization::treePlanarLayoutBDImpl ( ftm::FTMTree_MT * tree,
std::vector< float > & retVec,
std::vector< LongSimplexId > & treeSimplexId,
std::vector< ftm::idNode > & ttkNotUsedbranching,
std::vector< std::vector< ftm::idNode > > & nodeBranching )
inline

Definition at line 78 of file MergeTreeVisualization.h.

◆ treePlanarLayoutImpl()

template<class dataType>
void ttk::MergeTreeVisualization::treePlanarLayoutImpl ( ftm::FTMTree_MT * tree,
std::tuple< double, double, double, double, double, double > oldBounds,
double ttkNotUsedrefPersistence,
std::vector< float > & retVec )
inline

Definition at line 406 of file MergeTreeVisualization.h.

◆ tupleToVector()

void ttk::MergeTreeVisualization::tupleToVector ( std::tuple< double, double, double, double, double, double > & tup,
std::vector< double > & vec )
inline

Definition at line 1073 of file MergeTreeVisualization.h.

◆ vectorToTuple()

std::tuple< double, double, double, double, double, double > ttk::MergeTreeVisualization::vectorToTuple ( std::vector< double > & vec)
inline

Definition at line 1082 of file MergeTreeVisualization.h.

Member Data Documentation

◆ branchDecompositionPlanarLayout_

bool ttk::MergeTreeVisualization::branchDecompositionPlanarLayout_ = false
protected

Definition at line 19 of file MergeTreeVisualization.h.

◆ branchSpacing_

double ttk::MergeTreeVisualization::branchSpacing_ = 1.
protected

Definition at line 21 of file MergeTreeVisualization.h.

◆ excludeImportantPairsHigher_

std::string ttk::MergeTreeVisualization::excludeImportantPairsHigher_ = ""
protected

Definition at line 28 of file MergeTreeVisualization.h.

◆ excludeImportantPairsHigherValues_

std::vector<double> ttk::MergeTreeVisualization::excludeImportantPairsHigherValues_
protected

Definition at line 30 of file MergeTreeVisualization.h.

◆ excludeImportantPairsLower_

std::string ttk::MergeTreeVisualization::excludeImportantPairsLower_ = ""
protected

Definition at line 27 of file MergeTreeVisualization.h.

◆ excludeImportantPairsLowerValues_

std::vector<double> ttk::MergeTreeVisualization::excludeImportantPairsLowerValues_
protected

Definition at line 29 of file MergeTreeVisualization.h.

◆ importantPairs_

double ttk::MergeTreeVisualization::importantPairs_ = 50.
protected

Definition at line 23 of file MergeTreeVisualization.h.

◆ importantPairsSpacing_

double ttk::MergeTreeVisualization::importantPairsSpacing_ = 1.
protected

Definition at line 24 of file MergeTreeVisualization.h.

◆ nonImportantPairsProximity_

double ttk::MergeTreeVisualization::nonImportantPairsProximity_ = 0.05
protected

Definition at line 26 of file MergeTreeVisualization.h.

◆ nonImportantPairsSpacing_

double ttk::MergeTreeVisualization::nonImportantPairsSpacing_ = 1.
protected

Definition at line 25 of file MergeTreeVisualization.h.

◆ pathPlanarLayout_

bool ttk::MergeTreeVisualization::pathPlanarLayout_ = false
protected

Definition at line 20 of file MergeTreeVisualization.h.

◆ rescaleTreesIndividually_

bool ttk::MergeTreeVisualization::rescaleTreesIndividually_ = false
protected

Definition at line 22 of file MergeTreeVisualization.h.


The documentation for this class was generated from the following file: