TTK
|
#include <ContourTree.h>
Public Member Functions | |
SubLevelSetTree () | |
int | build () |
int | buildExtremumList (std::vector< int > &extremumList, const bool &isSubLevelSet=true) |
bool | buildPlanarLayout (const double &scaleX, const double &scaleY) |
int | buildSaddleList (std::vector< int > &vertexList) const |
int | clearArc (const int &vertexId0, const int &vertexId1) |
int | clearRegularNode (const int &vertexId) |
int | clearRoot (const int &vertexId) |
int | exportPersistenceCurve (const std::string &fileName="output.plot") const |
int | exportPersistenceDiagram (const std::string &fileName="output.plot") const |
int | exportToSvg (const std::string &fileName, const double &scaleX=1, const double &scaleY=1) |
int | exportToVtk (const std::string &fileName, const std::vector< float > *origin=nullptr, const std::vector< float > *voxelSize=nullptr) |
int | flush () |
const Arc * | getArc (const int &arcId) const |
const std::vector< int > * | getExtremumList () const |
const Node * | getNode (const int &nodeId) const |
const Node * | getNodeDownNeighbor (const Node *n, const int &neighborId) const |
const Node * | getNodeDownNeighbor (const int &nodeId, const int &neighborId) const |
const Node * | getNodeUpNeighbor (const Node *n, const int &neighborId) const |
const Node * | getNodeUpNeighbor (const int &nodeId, const int &neighborId) const |
double | getNodeScalar (const int &nodeId) const |
int | getNumberOfArcs () const |
int | getNumberOfSuperArcs () const |
int | getNumberOfNodes () const |
int | getPersistenceDiagram (std::vector< std::pair< double, double > > &diagram, std::vector< std::pair< std::pair< int, int >, double > > *pairs=nullptr) const |
virtual int | getPersistencePairs (std::vector< std::pair< std::pair< int, int >, double > > &pairs, std::vector< std::pair< std::pair< int, int >, double > > *mergePairs=nullptr, std::vector< std::pair< std::pair< int, int >, double > > *splitPairs=nullptr) const |
int | getPersistencePlot (std::vector< std::pair< double, int > > &plot, std::vector< std::pair< std::pair< int, int >, double > > *persistencePairs=nullptr) const |
const SuperArc * | getSuperArc (const int &superArcId) const |
int | getVertexScalar (const int &vertexId, double &scalar) |
const SuperArc * | getVertexSuperArc (const int &vertexId) const |
int | getVertexSuperArcId (const int &vertexId) const |
const Node * | getVertexNode (const int &vertexId) const |
int | getVertexNodeId (const int &vertexId) const |
bool | isJoinTree () const |
bool | isSplitTree () const |
bool | isSosLowerThan (const int &vertexId0, const int &vertexId1) const |
bool | isSosHigherThan (const int &vertexId0, const int &vertexId1) const |
virtual int | maintainRegularVertices (const bool &onOff) |
int | moveRegularNode (const Node *n, const Node *oldDown, const Node *oldUp, const Node *newDown, const Node *newUp) |
int | print () const |
void | setMaximumList (std::vector< int > &maximumList) |
void | setMinimumList (std::vector< int > &minimumList) |
void | setNumberOfVertices (const int &vertexNumber) |
void | setTriangulation (const AbstractTriangulation *const triangulation) |
void | setVertexPositions (std::vector< std::vector< double > > *vertexPositions) |
void | setVertexScalars (const std::vector< real > *const vertexScalars) |
void | setVertexSoSoffsets (std::vector< int > *vertexSoSoffsets) |
virtual int | simplify (const double &simplificationThreshold, ContourTreeSimplificationMetric *metric=nullptr) |
int | sample (unsigned int samplingLevel=3) |
int | computeBarycenters () |
int | getSkeletonScalars (const std::vector< double > &scalars, std::vector< std::vector< double > > &skeletonScalars) const |
virtual int | computeSkeleton (unsigned int arcResolution=3) |
virtual int | smoothSkeleton (unsigned int skeletonSmoothing) |
virtual int | clearSkeleton () |
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 Member Functions | |
int | appendRegularNode (const int &superArcId, const int &nodeId) |
int | closeSuperArc (const int &superArcId, const int &nodeId) |
int | exportNodeColorToVtk (const int &nodeId, std::ofstream &o) |
int | exportNodePosToVtk (const int &nodeId, const int &pointId, std::vector< int > &vertexIds, const std::vector< float > *origin, const std::vector< float > *voxelSize, std::ofstream &o) |
int | exportArcPosToVtk (const int &arcId, const int &pointId, std::vector< int > &vertexIds, const std::vector< float > *origin, const std::vector< float > *voxelSize, std::ofstream &o) |
int | makeArc (const int &nodeId0, const int &nodeId1) |
int | makeNode (const int &vertexId) |
int | openSuperArc (const int &nodeId) |
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) |
Protected Attributes | |
int | vertexNumber_ {0} |
bool | maintainRegularVertices_ {true} |
double | minScalar_ {} |
double | maxScalar_ {} |
const std::vector< real > * | vertexScalars_ {} |
std::vector< int > * | vertexSoSoffsets_ {} |
bool | externalOffsets_ {false} |
const AbstractTriangulation * | triangulation_ {} |
std::vector< int > * | minimumList_ {} |
std::vector< int > * | maximumList_ {} |
std::vector< Node > | nodeList_ {} |
std::vector< Node > | originalNodeList_ {} |
std::vector< Arc > | arcList_ {} |
std::vector< SuperArc > | superArcList_ {} |
std::vector< SuperArc > | originalSuperArcList_ {} |
std::vector< int > | vertex2node_ {} |
std::vector< int > | vertex2superArc_ {} |
std::vector< int > | vertex2superArcNode_ {} |
std::vector< std::vector< double > > * | vertexPositions_ {} |
bool | isSkeletonComputed_ {false} |
Protected Attributes inherited from ttk::Debug | |
int | debugLevel_ |
std::string | debugMsgPrefix_ |
std::string | debugMsgNamePrefix_ |
Protected Attributes inherited from ttk::BaseClass | |
bool | lastObject_ |
int | threadNumber_ |
Wrapper * | wrapper_ |
Additional Inherited Members | |
Static Protected Attributes inherited from ttk::Debug | |
static COMMON_EXPORTS debug::LineMode | lastLineMode = ttk::debug::LineMode::NEW |
Definition at line 248 of file ContourTree.h.
SubLevelSetTree::SubLevelSetTree | ( | ) |
Definition at line 168 of file ContourTree.cpp.
|
protected |
Definition at line 172 of file ContourTree.cpp.
int SubLevelSetTree::build | ( | ) |
Definition at line 195 of file ContourTree.cpp.
int SubLevelSetTree::buildExtremumList | ( | std::vector< int > & | extremumList, |
const bool & | isSubLevelSet = true |
||
) |
Definition at line 1177 of file ContourTree.cpp.
bool SubLevelSetTree::buildPlanarLayout | ( | const double & | scaleX, |
const double & | scaleY | ||
) |
Definition at line 1480 of file ContourTree.cpp.
int SubLevelSetTree::buildSaddleList | ( | std::vector< int > & | vertexList | ) | const |
Definition at line 1673 of file ContourTree.cpp.
int SubLevelSetTree::clearArc | ( | const int & | vertexId0, |
const int & | vertexId1 | ||
) |
Definition at line 370 of file ContourTree.cpp.
int SubLevelSetTree::clearRegularNode | ( | const int & | vertexId | ) |
Definition at line 401 of file ContourTree.cpp.
int SubLevelSetTree::clearRoot | ( | const int & | vertexId | ) |
Definition at line 437 of file ContourTree.cpp.
|
virtual |
Reimplemented in ttk::ContourTree.
Definition at line 2305 of file ContourTree.cpp.
|
protected |
Definition at line 1242 of file ContourTree.cpp.
int SubLevelSetTree::computeBarycenters | ( | ) |
Definition at line 2116 of file ContourTree.cpp.
|
virtual |
Reimplemented in ttk::ContourTree.
Definition at line 2223 of file ContourTree.cpp.
|
protected |
Definition at line 455 of file ContourTree.cpp.
|
protected |
Definition at line 574 of file ContourTree.cpp.
|
protected |
Definition at line 601 of file ContourTree.cpp.
int SubLevelSetTree::exportPersistenceCurve | ( | const std::string & | fileName = "output.plot" | ) | const |
Definition at line 726 of file ContourTree.cpp.
int SubLevelSetTree::exportPersistenceDiagram | ( | const std::string & | fileName = "output.plot" | ) | const |
Definition at line 748 of file ContourTree.cpp.
int SubLevelSetTree::exportToSvg | ( | const std::string & | fileName, |
const double & | scaleX = 1 , |
||
const double & | scaleY = 1 |
||
) |
Definition at line 774 of file ContourTree.cpp.
int SubLevelSetTree::exportToVtk | ( | const std::string & | fileName, |
const std::vector< float > * | origin = nullptr , |
||
const std::vector< float > * | voxelSize = nullptr |
||
) |
Definition at line 970 of file ContourTree.cpp.
int SubLevelSetTree::flush | ( | ) |
Definition at line 1161 of file ContourTree.cpp.
|
inline |
Definition at line 288 of file ContourTree.h.
|
inline |
Definition at line 299 of file ContourTree.h.
|
inline |
Definition at line 305 of file ContourTree.h.
|
inline |
Definition at line 324 of file ContourTree.h.
|
inline |
Definition at line 315 of file ContourTree.h.
|
inline |
Definition at line 357 of file ContourTree.h.
|
inline |
Definition at line 345 of file ContourTree.h.
|
inline |
Definition at line 336 of file ContourTree.h.
|
inline |
Definition at line 365 of file ContourTree.h.
|
inline |
Definition at line 373 of file ContourTree.h.
|
inline |
Definition at line 369 of file ContourTree.h.
int SubLevelSetTree::getPersistenceDiagram | ( | std::vector< std::pair< double, double > > & | diagram, |
std::vector< std::pair< std::pair< int, int >, double > > * | pairs = nullptr |
||
) | const |
Definition at line 1269 of file ContourTree.cpp.
|
virtual |
Reimplemented in ttk::ContourTree.
Definition at line 1301 of file ContourTree.cpp.
int SubLevelSetTree::getPersistencePlot | ( | std::vector< std::pair< double, int > > & | plot, |
std::vector< std::pair< std::pair< int, int >, double > > * | persistencePairs = nullptr |
||
) | const |
Definition at line 1455 of file ContourTree.cpp.
int SubLevelSetTree::getSkeletonScalars | ( | const std::vector< double > & | scalars, |
std::vector< std::vector< double > > & | skeletonScalars | ||
) | const |
Definition at line 2151 of file ContourTree.cpp.
|
inline |
Definition at line 398 of file ContourTree.h.
|
inline |
Definition at line 446 of file ContourTree.h.
|
inline |
Definition at line 459 of file ContourTree.h.
|
inline |
Definition at line 408 of file ContourTree.h.
|
inline |
Definition at line 422 of file ContourTree.h.
|
inline |
Definition at line 436 of file ContourTree.h.
|
inline |
Definition at line 465 of file ContourTree.h.
bool SubLevelSetTree::isSosHigherThan | ( | const int & | vertexId0, |
const int & | vertexId1 | ||
) | const |
Definition at line 1735 of file ContourTree.cpp.
bool SubLevelSetTree::isSosLowerThan | ( | const int & | vertexId0, |
const int & | vertexId1 | ||
) | const |
Definition at line 1744 of file ContourTree.cpp.
|
inline |
Definition at line 470 of file ContourTree.h.
|
inlinevirtual |
Reimplemented in ttk::ContourTree.
Definition at line 479 of file ContourTree.h.
|
protected |
Definition at line 1688 of file ContourTree.cpp.
|
protected |
Definition at line 1705 of file ContourTree.cpp.
int SubLevelSetTree::moveRegularNode | ( | const Node * | n, |
const Node * | oldDown, | ||
const Node * | oldUp, | ||
const Node * | newDown, | ||
const Node * | newUp | ||
) |
Definition at line 1753 of file ContourTree.cpp.
|
protected |
Definition at line 1722 of file ContourTree.cpp.
int SubLevelSetTree::print | ( | ) | const |
Definition at line 1816 of file ContourTree.cpp.
int SubLevelSetTree::sample | ( | unsigned int | samplingLevel = 3 | ) |
Definition at line 2246 of file ContourTree.cpp.
|
inline |
Definition at line 492 of file ContourTree.h.
|
inline |
Definition at line 496 of file ContourTree.h.
|
inline |
Definition at line 500 of file ContourTree.h.
|
inline |
Definition at line 508 of file ContourTree.h.
|
inline |
Definition at line 513 of file ContourTree.h.
|
inline |
Definition at line 517 of file ContourTree.h.
|
inline |
Definition at line 530 of file ContourTree.h.
|
virtual |
Reimplemented in ttk::ContourTree.
Definition at line 1897 of file ContourTree.cpp.
|
virtual |
Reimplemented in ttk::ContourTree.
Definition at line 2231 of file ContourTree.cpp.
|
protected |
Definition at line 584 of file ContourTree.h.
|
protected |
Definition at line 580 of file ContourTree.h.
|
protected |
Definition at line 588 of file ContourTree.h.
|
protected |
Definition at line 576 of file ContourTree.h.
|
protected |
Definition at line 582 of file ContourTree.h.
|
protected |
Definition at line 577 of file ContourTree.h.
|
protected |
Definition at line 582 of file ContourTree.h.
|
protected |
Definition at line 577 of file ContourTree.h.
|
protected |
Definition at line 583 of file ContourTree.h.
|
protected |
Definition at line 583 of file ContourTree.h.
|
protected |
Definition at line 585 of file ContourTree.h.
|
protected |
Definition at line 585 of file ContourTree.h.
|
protected |
Definition at line 581 of file ContourTree.h.
|
protected |
Definition at line 586 of file ContourTree.h.
|
protected |
Definition at line 586 of file ContourTree.h.
|
protected |
Definition at line 586 of file ContourTree.h.
|
protected |
Definition at line 575 of file ContourTree.h.
|
protected |
Definition at line 587 of file ContourTree.h.
|
protected |
Definition at line 578 of file ContourTree.h.
|
protected |
Definition at line 579 of file ContourTree.h.