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

#include <Quadrangulation.h>

Inheritance diagram for ttk::Quadrangulation:
ttk::Debug ttk::BaseClass

Public Types

using Quad = std::array< ttk::LongSimplexId, 4 >
 Ad-hoc quad data structure (4 vertex ids)
 
using Point = ttk::SurfaceGeometrySmoother::Point
 Ad-hoc vertex coordinates data structure (3 floats)
 

Public Member Functions

 Quadrangulation ()
 
 ~Quadrangulation () override=default
 
int preconditionVertexNeighbors ()
 
int preconditionVertexStars ()
 
int preconditionEdges ()
 
void setInputCells (const SimplexId cellNumber, void *const quadCells)
 
void setInputPoints (const SimplexId pointNumber, void *const pointCoords)
 
int isVertexExtraordinary (const SimplexId v)
 
void getVertexPoint (const SimplexId v, float &x, float &y, float &z) const
 
void getCellVertex (const SimplexId c, const int l, SimplexId &v) const
 
SimplexId getVertexNeighborNumber (const SimplexId v) const
 
void getVertexNeighbor (const SimplexId v, const int l, SimplexId &n) const
 
SimplexId getVertexStarNumber (const SimplexId v) const
 
SimplexId getVertexStar (const SimplexId v, const int l) const
 
void getVertexStar (const SimplexId v, const int l, SimplexId &vs) const
 
SimplexId getEdgeStarNumber (const SimplexId e) const
 
SimplexId getEdgeStar (const SimplexId e, const int l) const
 
SimplexId getCellEdge (const SimplexId c, const int l)
 
const std::array< SimplexId, 2 > & getEdge (const SimplexId e) const
 
SimplexId getCellVertexNumber (const SimplexId ttkNotUsed(c)) const
 
int getDimensionality () const
 
const SimplexIdgetNumberOfVertices () const
 
const SimplexIdgetNumberOfCells () const
 
SimplexId getNumberOfEdges () const
 
void computeDensityAndDeformity (const SimplexId v, float &density, float &deformity) const
 
void computeStatistics (std::vector< SimplexId > &vertsValence, std::vector< float > &vertsDensity, std::vector< float > &vertsDifformity, std::vector< float > &quadArea, std::vector< float > &quadDiagsRatio, std::vector< float > &quadEdgesRatio, std::vector< float > &quadAnglesRatio) 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)
 

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

Definition at line 8 of file Quadrangulation.h.

Member Typedef Documentation

◆ Point

Ad-hoc vertex coordinates data structure (3 floats)

Definition at line 128 of file Quadrangulation.h.

◆ Quad

Ad-hoc quad data structure (4 vertex ids)

Definition at line 124 of file Quadrangulation.h.

Constructor & Destructor Documentation

◆ Quadrangulation()

ttk::Quadrangulation::Quadrangulation ( )

Definition at line 6 of file Quadrangulation.cpp.

◆ ~Quadrangulation()

ttk::Quadrangulation::~Quadrangulation ( )
overridedefault

Member Function Documentation

◆ computeDensityAndDeformity()

void ttk::Quadrangulation::computeDensityAndDeformity ( const SimplexId  v,
float &  density,
float &  deformity 
) const
inline

Definition at line 97 of file Quadrangulation.h.

◆ computeStatistics()

void ttk::Quadrangulation::computeStatistics ( std::vector< SimplexId > &  vertsValence,
std::vector< float > &  vertsDensity,
std::vector< float > &  vertsDifformity,
std::vector< float > &  quadArea,
std::vector< float > &  quadDiagsRatio,
std::vector< float > &  quadEdgesRatio,
std::vector< float > &  quadAnglesRatio 
) const

Definition at line 59 of file Quadrangulation.cpp.

◆ getCellEdge()

SimplexId ttk::Quadrangulation::getCellEdge ( const SimplexId  c,
const int  l 
)
inline

Definition at line 73 of file Quadrangulation.h.

◆ getCellVertex()

void ttk::Quadrangulation::getCellVertex ( const SimplexId  c,
const int  l,
SimplexId v 
) const
inline

Definition at line 43 of file Quadrangulation.h.

◆ getCellVertexNumber()

SimplexId ttk::Quadrangulation::getCellVertexNumber ( const SimplexId   ttkNotUsedc) const
inline

Definition at line 81 of file Quadrangulation.h.

◆ getDimensionality()

int ttk::Quadrangulation::getDimensionality ( ) const
inline

Definition at line 84 of file Quadrangulation.h.

◆ getEdge()

const std::array< SimplexId, 2 > & ttk::Quadrangulation::getEdge ( const SimplexId  e) const
inline

Definition at line 77 of file Quadrangulation.h.

◆ getEdgeStar()

SimplexId ttk::Quadrangulation::getEdgeStar ( const SimplexId  e,
const int  l 
) const
inline

Definition at line 69 of file Quadrangulation.h.

◆ getEdgeStarNumber()

SimplexId ttk::Quadrangulation::getEdgeStarNumber ( const SimplexId  e) const
inline

Definition at line 66 of file Quadrangulation.h.

◆ getNumberOfCells()

const SimplexId & ttk::Quadrangulation::getNumberOfCells ( ) const
inline

Definition at line 90 of file Quadrangulation.h.

◆ getNumberOfEdges()

SimplexId ttk::Quadrangulation::getNumberOfEdges ( ) const
inline

Definition at line 93 of file Quadrangulation.h.

◆ getNumberOfVertices()

const SimplexId & ttk::Quadrangulation::getNumberOfVertices ( ) const
inline

Definition at line 87 of file Quadrangulation.h.

◆ getVertexNeighbor()

void ttk::Quadrangulation::getVertexNeighbor ( const SimplexId  v,
const int  l,
SimplexId n 
) const
inline

Definition at line 51 of file Quadrangulation.h.

◆ getVertexNeighborNumber()

SimplexId ttk::Quadrangulation::getVertexNeighborNumber ( const SimplexId  v) const
inline

Definition at line 47 of file Quadrangulation.h.

◆ getVertexPoint()

void ttk::Quadrangulation::getVertexPoint ( const SimplexId  v,
float &  x,
float &  y,
float &  z 
) const
inline

Definition at line 35 of file Quadrangulation.h.

◆ getVertexStar() [1/2]

SimplexId ttk::Quadrangulation::getVertexStar ( const SimplexId  v,
const int  l 
) const
inline

Definition at line 58 of file Quadrangulation.h.

◆ getVertexStar() [2/2]

void ttk::Quadrangulation::getVertexStar ( const SimplexId  v,
const int  l,
SimplexId vs 
) const
inline

Definition at line 62 of file Quadrangulation.h.

◆ getVertexStarNumber()

SimplexId ttk::Quadrangulation::getVertexStarNumber ( const SimplexId  v) const
inline

Definition at line 55 of file Quadrangulation.h.

◆ isVertexExtraordinary()

int ttk::Quadrangulation::isVertexExtraordinary ( const SimplexId  v)
inline

Definition at line 29 of file Quadrangulation.h.

◆ preconditionEdges()

int ttk::Quadrangulation::preconditionEdges ( )

Definition at line 32 of file Quadrangulation.cpp.

◆ preconditionVertexNeighbors()

int ttk::Quadrangulation::preconditionVertexNeighbors ( )

Definition at line 10 of file Quadrangulation.cpp.

◆ preconditionVertexStars()

int ttk::Quadrangulation::preconditionVertexStars ( )

Definition at line 22 of file Quadrangulation.cpp.

◆ setInputCells()

void ttk::Quadrangulation::setInputCells ( const SimplexId  cellNumber,
void *const  quadCells 
)
inline

Definition at line 17 of file Quadrangulation.h.

◆ setInputPoints()

void ttk::Quadrangulation::setInputPoints ( const SimplexId  pointNumber,
void *const  pointCoords 
)
inline

Definition at line 23 of file Quadrangulation.h.


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