TTK
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ttkMergeTreeBase Class Reference

#include <ttkMergeTreeBase.h>

Inheritance diagram for ttkMergeTreeBase:
ttk::Debug ttk::BaseClass ttkContourTree ttkMergeTree

Public Member Functions

 ttkMergeTreeBase ()
 
 ~ttkMergeTreeBase () override=default
 
int getSkeletonNodes (vtkUnstructuredGrid *outputSkeletonNodes)
 
int addDirectSkeletonArc (const ttk::ftm::idSuperArc arcId, const int cc, vtkPoints *points, vtkUnstructuredGrid *skeletonArcs, ttk::ftm::ArcData &arcData)
 
int addSampledSkeletonArc (const ttk::ftm::idSuperArc arcId, const int cc, vtkPoints *points, vtkUnstructuredGrid *skeletonArcs, ttk::ftm::ArcData &arcData)
 
int addCompleteSkeletonArc (const ttk::ftm::idSuperArc arcId, const int cc, vtkPoints *points, vtkUnstructuredGrid *skeletonArcs, ttk::ftm::ArcData &arcData)
 
int getSkeletonArcs (vtkUnstructuredGrid *outputSkeletonArcs)
 
int getSegmentation (vtkDataSet *outputSegmentation)
 
ttk::ftm::TreeType GetTreeType () const
 
void identify (vtkDataSet *ds) const
 
- 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

template<class triangulationType >
int getMergeTree (vtkUnstructuredGrid *outputSkeletonArcs, std::vector< ttk::ExTreeM::Branch > &mergeTree, vtkDataArray *inputScalars, const triangulationType *triangulation)
 
template<class triangulationType >
int getMergeTreePoints (vtkUnstructuredGrid *outputSkeletonNodes, std::map< ttk::SimplexId, int > cpMap, std::vector< std::pair< ttk::SimplexId, ttk::SimplexId > > &persistencePairs, vtkDataArray *inputScalars, const triangulationType *triangulation)
 
- 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

bool ForceInputOffsetScalarField = false
 
ttk::ftm::Params params_
 
int nbCC_
 
std::vector< vtkSmartPointer< vtkDataSet > > connected_components_
 
std::vector< ttk::Triangulation * > triangulation_
 
std::vector< ttk::ftm::LocalFTMftmTree_
 
std::vector< vtkDataArray * > inputScalars_
 
std::vector< std::vector< ttk::SimplexId > > offsets_
 
- 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

- Static Protected Attributes inherited from ttk::Debug
static COMMON_EXPORTS debug::LineMode lastLineMode = ttk::debug::LineMode::NEW
 

Detailed Description

Definition at line 76 of file ttkMergeTreeBase.h.

Constructor & Destructor Documentation

◆ ttkMergeTreeBase()

ttkMergeTreeBase::ttkMergeTreeBase ( )

Definition at line 4 of file ttkMergeTreeBase.cpp.

◆ ~ttkMergeTreeBase()

ttkMergeTreeBase::~ttkMergeTreeBase ( )
overridedefault

Member Function Documentation

◆ addCompleteSkeletonArc()

int ttkMergeTreeBase::addCompleteSkeletonArc ( const ttk::ftm::idSuperArc  arcId,
const int  cc,
vtkPoints *  points,
vtkUnstructuredGrid *  skeletonArcs,
ttk::ftm::ArcData arcData 
)

Definition at line 8 of file ttkMergeTreeBase.cpp.

◆ addDirectSkeletonArc()

int ttkMergeTreeBase::addDirectSkeletonArc ( const ttk::ftm::idSuperArc  arcId,
const int  cc,
vtkPoints *  points,
vtkUnstructuredGrid *  skeletonArcs,
ttk::ftm::ArcData arcData 
)

Definition at line 78 of file ttkMergeTreeBase.cpp.

◆ addSampledSkeletonArc()

int ttkMergeTreeBase::addSampledSkeletonArc ( const ttk::ftm::idSuperArc  arcId,
const int  cc,
vtkPoints *  points,
vtkUnstructuredGrid *  skeletonArcs,
ttk::ftm::ArcData arcData 
)

Definition at line 129 of file ttkMergeTreeBase.cpp.

◆ getMergeTree()

template<class triangulationType >
int ttkMergeTreeBase::getMergeTree ( vtkUnstructuredGrid *  outputSkeletonArcs,
std::vector< ttk::ExTreeM::Branch > &  mergeTree,
vtkDataArray *  inputScalars,
const triangulationType *  triangulation 
)
inlineprotected

Definition at line 131 of file ttkMergeTreeBase.h.

◆ getMergeTreePoints()

template<class triangulationType >
int ttkMergeTreeBase::getMergeTreePoints ( vtkUnstructuredGrid *  outputSkeletonNodes,
std::map< ttk::SimplexId, int >  cpMap,
std::vector< std::pair< ttk::SimplexId, ttk::SimplexId > > &  persistencePairs,
vtkDataArray *  inputScalars,
const triangulationType *  triangulation 
)
inlineprotected

Definition at line 206 of file ttkMergeTreeBase.h.

◆ getSegmentation()

int ttkMergeTreeBase::getSegmentation ( vtkDataSet *  outputSegmentation)

Definition at line 228 of file ttkMergeTreeBase.cpp.

◆ getSkeletonArcs()

int ttkMergeTreeBase::getSkeletonArcs ( vtkUnstructuredGrid *  outputSkeletonArcs)

Definition at line 254 of file ttkMergeTreeBase.cpp.

◆ getSkeletonNodes()

int ttkMergeTreeBase::getSkeletonNodes ( vtkUnstructuredGrid *  outputSkeletonNodes)

Definition at line 302 of file ttkMergeTreeBase.cpp.

◆ GetTreeType()

ttk::ftm::TreeType ttkMergeTreeBase::GetTreeType ( ) const
inline

Definition at line 106 of file ttkMergeTreeBase.h.

◆ identify()

void ttkMergeTreeBase::identify ( vtkDataSet *  ds) const

Definition at line 401 of file ttkMergeTreeBase.cpp.

Member Data Documentation

◆ connected_components_

std::vector<vtkSmartPointer<vtkDataSet> > ttkMergeTreeBase::connected_components_
protected

Definition at line 121 of file ttkMergeTreeBase.h.

◆ ForceInputOffsetScalarField

bool ttkMergeTreeBase::ForceInputOffsetScalarField = false
protected

Definition at line 118 of file ttkMergeTreeBase.h.

◆ ftmTree_

std::vector<ttk::ftm::LocalFTM> ttkMergeTreeBase::ftmTree_
protected

Definition at line 123 of file ttkMergeTreeBase.h.

◆ inputScalars_

std::vector<vtkDataArray *> ttkMergeTreeBase::inputScalars_
protected

Definition at line 124 of file ttkMergeTreeBase.h.

◆ nbCC_

int ttkMergeTreeBase::nbCC_
protected

Definition at line 120 of file ttkMergeTreeBase.h.

◆ offsets_

std::vector<std::vector<ttk::SimplexId> > ttkMergeTreeBase::offsets_
protected

Definition at line 125 of file ttkMergeTreeBase.h.

◆ params_

ttk::ftm::Params ttkMergeTreeBase::params_
protected

Definition at line 119 of file ttkMergeTreeBase.h.

◆ triangulation_

std::vector<ttk::Triangulation *> ttkMergeTreeBase::triangulation_
protected

Definition at line 122 of file ttkMergeTreeBase.h.


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