TTK
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ttk::MetricDistortion Class Reference

#include <MetricDistortion.h>

Inheritance diagram for ttk::MetricDistortion:
ttk::Debug ttk::BaseClass ttkMetricDistortion

Public Member Functions

 MetricDistortion ()
 
int preconditionTriangulation (AbstractTriangulation *triangulation)
 
template<class triangulationType , class tableDataType >
void computeSurfaceCurvature (const triangulationType *triangulation, std::vector< tableDataType * > &distanceMatrix, std::vector< double > &surfaceCurvature, std::vector< double > &metricCurvature, std::vector< double > &diffCurvature)
 
void initIndicators (double &min, double &max, double &avg)
 
void updateIndicators (double &min, double &max, double &avg, double value, int noValue)
 
template<class triangulationType , class tableDataType >
void computeSurfaceDistance (const triangulationType *triangulation, std::vector< tableDataType * > &distanceMatrix, std::vector< double > &surfaceDistance, std::vector< double > &metricDistance, std::vector< double > &ratioDistance, std::vector< std::array< double, 3 > > &surfacePointDistance, std::vector< std::array< double, 3 > > &metricPointDistance, std::vector< std::array< double, 3 > > &ratioPointDistance)
 
template<class triangulationType , class tableDataType >
void computeSurfaceArea (const triangulationType *triangulation, std::vector< tableDataType * > &distanceMatrix, std::vector< double > &surfaceArea, std::vector< double > &metricArea, std::vector< double > &ratioArea)
 
- 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)
 

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)
 
- 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 inherited from ttk::Debug
static COMMON_EXPORTS debug::LineMode lastLineMode = ttk::debug::LineMode::NEW
 

Detailed Description

The MetricDistortion class provides methods to compute distance, area and curvature information about a surface and an optional distance matrix (giving the distance between the points of the surface in a metric space).

Author
Mathieu Pont mathi.nosp@m.eu.p.nosp@m.ont@l.nosp@m.ip6..nosp@m.fr
Date
2022.

This module defines the MetricDistortion class that computes distance, area and curvature information about a surface and an optional distance matrix (giving the distance between the points of the surface in a metric space).

Definition at line 27 of file MetricDistortion.h.

Constructor & Destructor Documentation

◆ MetricDistortion()

ttk::MetricDistortion::MetricDistortion ( )

Definition at line 3 of file MetricDistortion.cpp.

Member Function Documentation

◆ computeSurfaceArea()

template<class triangulationType , class tableDataType >
void ttk::MetricDistortion::computeSurfaceArea ( const triangulationType *  triangulation,
std::vector< tableDataType * > &  distanceMatrix,
std::vector< double > &  surfaceArea,
std::vector< double > &  metricArea,
std::vector< double > &  ratioArea 
)
inline

Definition at line 223 of file MetricDistortion.h.

◆ computeSurfaceCurvature()

template<class triangulationType , class tableDataType >
void ttk::MetricDistortion::computeSurfaceCurvature ( const triangulationType *  triangulation,
std::vector< tableDataType * > &  distanceMatrix,
std::vector< double > &  surfaceCurvature,
std::vector< double > &  metricCurvature,
std::vector< double > &  diffCurvature 
)
inline

Definition at line 42 of file MetricDistortion.h.

◆ computeSurfaceDistance()

template<class triangulationType , class tableDataType >
void ttk::MetricDistortion::computeSurfaceDistance ( const triangulationType *  triangulation,
std::vector< tableDataType * > &  distanceMatrix,
std::vector< double > &  surfaceDistance,
std::vector< double > &  metricDistance,
std::vector< double > &  ratioDistance,
std::vector< std::array< double, 3 > > &  surfacePointDistance,
std::vector< std::array< double, 3 > > &  metricPointDistance,
std::vector< std::array< double, 3 > > &  ratioPointDistance 
)
inline

Definition at line 140 of file MetricDistortion.h.

◆ initIndicators()

void ttk::MetricDistortion::initIndicators ( double &  min,
double &  max,
double &  avg 
)
inline

Definition at line 126 of file MetricDistortion.h.

◆ preconditionTriangulation()

int ttk::MetricDistortion::preconditionTriangulation ( AbstractTriangulation triangulation)
inline

Definition at line 32 of file MetricDistortion.h.

◆ updateIndicators()

void ttk::MetricDistortion::updateIndicators ( double &  min,
double &  max,
double &  avg,
double  value,
int  noValue 
)
inline

Definition at line 132 of file MetricDistortion.h.


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