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

TTK meshGraph processing package. More...

#include <MeshGraph.h>

Inheritance diagram for ttk::MeshGraph:
ttk::Debug ttk::BaseClass ttkMeshGraph

Public Member Functions

 MeshGraph ()
 
 ~MeshGraph () override=default
 
size_t computeNumberOfOutputPoints (const size_t &nInputPoints, const size_t &nInputCells, const bool &useQuadraticCells, const size_t &nSubdivisions=0) const
 
size_t computeNumberOfOutputCells (const size_t &nInputCells, const bool &useQuadraticCells) const
 
size_t computeOutputCellSize (const size_t &nSubdivisions) const
 
size_t computeOutputConnectivityArraySize (const size_t &nInputCells, const bool &useQuadraticCells, const size_t &nSubdivisions=0) const
 
template<typename IT , typename CT , typename DT >
int execute (CT *outputPoints, IT *outputConnectivityArray, IT *outputOffsetArray, const CT *inputPoints, const IT *inputConnectivityArray, const size_t &nInputPoints, const size_t &nInputCells, const DT *inputPointSizes, const CT &sizeScale, const size_t &sizeAxis) const
 
template<typename IT , typename CT , typename DT >
int execute2 (CT *outputPoints, IT *outputConnectivityArray, IT *outputOffsetArray, const CT *inputPoints, const IT *inputConnectivityArray, const size_t nInputPoints, const size_t nInputCells, const size_t nSubdivisions, const DT *inputPointSizes, const CT sizeScale, const size_t sizeAxis) const
 
template<typename DT , typename IT >
int mapInputPointDataToOutputPointData (DT *outputPointData, const size_t &nInputPoints, const size_t &nInputCells, const IT *inputConnectivityArray, const DT *inputPointData, const bool &useQuadraticCells, const size_t &nSubdivisions=0) const
 
template<typename DT >
int mapInputCellDataToOutputCellData (DT *outputCellData, const size_t &nInputCells, const DT *inputCellData, const bool &useQuadraticCells) 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

TTK meshGraph processing package.

Author
Jonas Lukasczyk (jl@jl.nosp@m.uk.d.nosp@m.e)
Date
01.12.2018

MeshGraph is a TTK processing package that generates for each one dimensional cell (edge) a two dimensional cell by mapping a size value to the width of the input cell. The output is a set of either quadratic cells or linear polygons.

This filter supports two modes:

1) Each cell (a,b) is mapped to two quadric quads:

a-------------------b

a1--m1a1--m1--b1m1--b1
|         |         |
a         c         b
|         |         |
a0--a0m0--m0--m0b0--b0

2) Each cell (a,b) is subdivided into a linear polygon

a----------------------b

a1--s0u--s1u-- ...  b1
|                   |
a0--s0d--s1d-- ...  b0

Online examples:

Definition at line 46 of file MeshGraph.h.

Constructor & Destructor Documentation

◆ MeshGraph()

ttk::MeshGraph::MeshGraph ( )
inline

Definition at line 49 of file MeshGraph.h.

◆ ~MeshGraph()

ttk::MeshGraph::~MeshGraph ( )
overridedefault

Member Function Documentation

◆ computeNumberOfOutputCells()

size_t ttk::MeshGraph::computeNumberOfOutputCells ( const size_t &  nInputCells,
const bool &  useQuadraticCells 
) const
inline

Definition at line 71 of file MeshGraph.h.

◆ computeNumberOfOutputPoints()

size_t ttk::MeshGraph::computeNumberOfOutputPoints ( const size_t &  nInputPoints,
const size_t &  nInputCells,
const bool &  useQuadraticCells,
const size_t &  nSubdivisions = 0 
) const
inline

Definition at line 54 of file MeshGraph.h.

◆ computeOutputCellSize()

size_t ttk::MeshGraph::computeOutputCellSize ( const size_t &  nSubdivisions) const
inline

Definition at line 80 of file MeshGraph.h.

◆ computeOutputConnectivityArraySize()

size_t ttk::MeshGraph::computeOutputConnectivityArraySize ( const size_t &  nInputCells,
const bool &  useQuadraticCells,
const size_t &  nSubdivisions = 0 
) const
inline

Definition at line 85 of file MeshGraph.h.

◆ execute()

template<typename IT , typename CT , typename DT >
int ttk::MeshGraph::execute ( CT *  outputPoints,
IT *  outputConnectivityArray,
IT *  outputOffsetArray,
const CT *  inputPoints,
const IT *  inputConnectivityArray,
const size_t &  nInputPoints,
const size_t &  nInputCells,
const DT *  inputPointSizes,
const CT &  sizeScale,
const size_t &  sizeAxis 
) const

Definition at line 157 of file MeshGraph.h.

◆ execute2()

template<typename IT , typename CT , typename DT >
int ttk::MeshGraph::execute2 ( CT *  outputPoints,
IT *  outputConnectivityArray,
IT *  outputOffsetArray,
const CT *  inputPoints,
const IT *  inputConnectivityArray,
const size_t  nInputPoints,
const size_t  nInputCells,
const size_t  nSubdivisions,
const DT *  inputPointSizes,
const CT  sizeScale,
const size_t  sizeAxis 
) const

Definition at line 379 of file MeshGraph.h.

◆ mapInputCellDataToOutputCellData()

template<typename DT >
int ttk::MeshGraph::mapInputCellDataToOutputCellData ( DT *  outputCellData,
const size_t &  nInputCells,
const DT *  inputCellData,
const bool &  useQuadraticCells 
) const

Definition at line 648 of file MeshGraph.h.

◆ mapInputPointDataToOutputPointData()

template<typename DT , typename IT >
int ttk::MeshGraph::mapInputPointDataToOutputPointData ( DT *  outputPointData,
const size_t &  nInputPoints,
const size_t &  nInputCells,
const IT *  inputConnectivityArray,
const DT *  inputPointData,
const bool &  useQuadraticCells,
const size_t &  nSubdivisions = 0 
) const

Definition at line 550 of file MeshGraph.h.


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