TTK
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ttk::MultiresTopology Class Reference

TTK processing package for progressive Topological Data Analysis. More...

#include <MultiresTopology.h>

Inheritance diagram for ttk::MultiresTopology:
ttk::Debug ttk::BaseClass ttk::ApproximateTopology ttk::ProgressiveTopology

Classes

struct  PersistencePair
 

Public Member Functions

 MultiresTopology ()
 
void setupTriangulation (ImplicitTriangulation *const data)
 
virtual void setStartingDecimationLevel (int data)
 
virtual void setStoppingDecimationLevel (int data)
 
virtual void setPreallocateMemory (const bool b)
 
int getStoppingDecimationLevel ()
 
void setStartingResolutionLevel (int rl)
 
void setStoppingResolutionLevel (int rl)
 
- 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 Types

using VLBoundaryType = std::array< std::vector< std::pair< SimplexId, SimplexId > >, nLink_ >
 

Protected Member Functions

void buildVertexLinkByBoundary (const SimplexId vertexId, VLBoundaryType &vlbt) const
 
char getCriticalTypeFromLink (const std::vector< std::pair< polarity, polarity > > &vlp, DynamicTree &link) const
 
void getValencesFromLink (const SimplexId vertexId, const std::vector< std::pair< polarity, polarity > > &vlp, DynamicTree &link, std::vector< polarity > &toPropagateMin, std::vector< polarity > &toPropagateMax, std::vector< std::vector< SimplexId > > &saddleCCMin, std::vector< std::vector< SimplexId > > &saddleCCMax) const
 
void getTripletsFromSaddles (const SimplexId vertexId, std::vector< triplet > &triplets, const std::vector< std::vector< SimplexId > > &vertexReps) const
 
void updateLinkPolarityPonctual (std::vector< std::pair< polarity, polarity > > &vlp) const
 
std::string resolutionInfoString ()
 
- 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

ImplicitTriangulationtriangulation_ {}
 
MultiresTriangulation multiresTriangulation_ {}
 
SimplexId globalMax_ {}
 
SimplexId globalMin_ {}
 
int decimationLevel_ {}
 
int startingDecimationLevel_ {}
 
int stoppingDecimationLevel_ {}
 
bool preallocateMemory_ {true}
 
std::vector< PersistencePairCTDiagram_ {}
 
- 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_
 

Static Protected Attributes

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

Detailed Description

TTK processing package for progressive Topological Data Analysis.

Author
Jules Vidal jules.nosp@m..vid.nosp@m.al@li.nosp@m.p6.f.nosp@m.r
Pierre Guillou pierr.nosp@m.e.gu.nosp@m.illou.nosp@m.@lip.nosp@m.6.fr
Date
2022.

This package introduces a multiresolution hierarchical representation of the data.

It allows the definition of efficient algorithms for approximate or progressive computation in TDA.

Definition at line 50 of file MultiresTopology.h.

Member Typedef Documentation

◆ VLBoundaryType

using ttk::MultiresTopology::VLBoundaryType = std::array<std::vector<std::pair<SimplexId, SimplexId> >, nLink_>
protected

Definition at line 103 of file MultiresTopology.h.

Constructor & Destructor Documentation

◆ MultiresTopology()

ttk::MultiresTopology::MultiresTopology ( )
inline

Definition at line 69 of file MultiresTopology.h.

Member Function Documentation

◆ buildVertexLinkByBoundary()

void ttk::MultiresTopology::buildVertexLinkByBoundary ( const SimplexId  vertexId,
VLBoundaryType vlbt 
) const
protected

Definition at line 53 of file MultiresTopology.cpp.

◆ getCriticalTypeFromLink()

char ttk::MultiresTopology::getCriticalTypeFromLink ( const std::vector< std::pair< polarity, polarity > > &  vlp,
DynamicTree link 
) const
protected

Definition at line 98 of file MultiresTopology.cpp.

◆ getStoppingDecimationLevel()

int ttk::MultiresTopology::getStoppingDecimationLevel ( )
inline

Definition at line 87 of file MultiresTopology.h.

◆ getTripletsFromSaddles()

void ttk::MultiresTopology::getTripletsFromSaddles ( const SimplexId  vertexId,
std::vector< triplet > &  triplets,
const std::vector< std::vector< SimplexId > > &  vertexReps 
) const
protected

Definition at line 73 of file MultiresTopology.cpp.

◆ getValencesFromLink()

void ttk::MultiresTopology::getValencesFromLink ( const SimplexId  vertexId,
const std::vector< std::pair< polarity, polarity > > &  vlp,
DynamicTree link,
std::vector< polarity > &  toPropagateMin,
std::vector< polarity > &  toPropagateMax,
std::vector< std::vector< SimplexId > > &  saddleCCMin,
std::vector< std::vector< SimplexId > > &  saddleCCMax 
) const
protected

Definition at line 3 of file MultiresTopology.cpp.

◆ resolutionInfoString()

std::string ttk::MultiresTopology::resolutionInfoString ( )
protected

Definition at line 162 of file MultiresTopology.cpp.

◆ setPreallocateMemory()

virtual void ttk::MultiresTopology::setPreallocateMemory ( const bool  b)
inlinevirtual

Reimplemented in ttk::ProgressiveTopology.

Definition at line 84 of file MultiresTopology.h.

◆ setStartingDecimationLevel()

virtual void ttk::MultiresTopology::setStartingDecimationLevel ( int  data)
inlinevirtual

Reimplemented in ttk::ProgressiveTopology.

Definition at line 78 of file MultiresTopology.h.

◆ setStartingResolutionLevel()

void ttk::MultiresTopology::setStartingResolutionLevel ( int  rl)
inline

Definition at line 91 of file MultiresTopology.h.

◆ setStoppingDecimationLevel()

virtual void ttk::MultiresTopology::setStoppingDecimationLevel ( int  data)
inlinevirtual

Reimplemented in ttk::ProgressiveTopology.

Definition at line 81 of file MultiresTopology.h.

◆ setStoppingResolutionLevel()

void ttk::MultiresTopology::setStoppingResolutionLevel ( int  rl)
inline

Definition at line 95 of file MultiresTopology.h.

◆ setupTriangulation()

void ttk::MultiresTopology::setupTriangulation ( ImplicitTriangulation *const  data)
inline

Definition at line 73 of file MultiresTopology.h.

◆ updateLinkPolarityPonctual()

void ttk::MultiresTopology::updateLinkPolarityPonctual ( std::vector< std::pair< polarity, polarity > > &  vlp) const
protected

Definition at line 172 of file MultiresTopology.cpp.

Member Data Documentation

◆ CTDiagram_

std::vector<PersistencePair> ttk::MultiresTopology::CTDiagram_ {}
protected

Definition at line 144 of file MultiresTopology.h.

◆ decimationLevel_

int ttk::MultiresTopology::decimationLevel_ {}
protected

Definition at line 140 of file MultiresTopology.h.

◆ globalMax_

SimplexId ttk::MultiresTopology::globalMax_ {}
mutableprotected

Definition at line 138 of file MultiresTopology.h.

◆ globalMin_

SimplexId ttk::MultiresTopology::globalMin_ {}
protected

Definition at line 138 of file MultiresTopology.h.

◆ multiresTriangulation_

MultiresTriangulation ttk::MultiresTopology::multiresTriangulation_ {}
protected

Definition at line 134 of file MultiresTopology.h.

◆ nLink_

const size_t ttk::MultiresTopology::nLink_ = 27
staticprotected

Definition at line 101 of file MultiresTopology.h.

◆ preallocateMemory_

bool ttk::MultiresTopology::preallocateMemory_ {true}
protected

Definition at line 143 of file MultiresTopology.h.

◆ startingDecimationLevel_

int ttk::MultiresTopology::startingDecimationLevel_ {}
protected

Definition at line 141 of file MultiresTopology.h.

◆ stoppingDecimationLevel_

int ttk::MultiresTopology::stoppingDecimationLevel_ {}
protected

Definition at line 142 of file MultiresTopology.h.

◆ triangulation_

ImplicitTriangulation* ttk::MultiresTopology::triangulation_ {}
protected

Definition at line 132 of file MultiresTopology.h.


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