TTK
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ttk::ftr::Mesh< triangulationType > Class Template Reference

TTK FTRGraph mesh related operations. More...

#include <Mesh.h>

Inheritance diagram for ttk::ftr::Mesh< triangulationType >:
ttk::ftr::Allocable ttk::Debug ttk::BaseClass

Public Member Functions

 Mesh (triangulationType *tri)
 
 Mesh ()=default
 
void setTriangulation (triangulationType *tri)
 
triangulationType * getTriangulation ()
 
void alloc () override
 
void init () override
 
void preprocess ()
 
SimplexId getDimensionality () const
 
idVertex getNumberOfVertices () const
 
idEdge getNumberOfEdges () const
 
idCell getNumberOfTriangles () const
 
idCell getNumberOfCells () const
 
idVertex getVertexNeighborNumber (const idVertex v) const
 
void getVertexNeighbor (const idVertex v, const idVertex local_v, idVertex &res)
 
idEdge getVertexEdgeNumber (const idEdge e) const
 
void getVertexEdge (const idVertex v, const idEdge local_e, idEdge &res) const
 
idCell getVertexTriangleNumber (const idVertex v) const
 
void getVertexTriangle (const idVertex v, const idCell local_c, idCell &res) const
 
void getEdgeVertex (const idEdge e, const char local_id, idVertex &res) const
 
idCell getEdgeTriangleNumber (const idEdge e) const
 
void getEdgeTriangle (const idEdge e, const idCell local_t, idCell &res) const
 
idEdge getTriangleEdgeNumber (const idCell t) const
 
void getTriangleEdge (const idCell t, const char local_id, idEdge &res) const
 
void preSortEdges (const VertCompFN &lowerThan)
 
void preSortTriangles (const VertCompFN &lowerThan)
 
orderedEdge getOrderedEdge (const idEdge e, const bool increasingOrder) const
 
void getOrderedEdge (const idEdge e, const bool increasingOrder, orderedEdge &oEdge) const
 
orderedTriangle getOrderedTriangle (const idCell t, const bool increasingOrder) const
 
void getOrderedTriangle (const idCell t, const bool increasingOrder, orderedTriangle &oTri) const
 
bool compareEdges (const idEdge e0, const idEdge e1, const VertCompFN &lowerThan) const
 
bool compareLinks (const linkEdge &l0, const linkEdge &l1, const VertCompFN &lowerTan) const
 
std::string printEdges () const
 
std::string printEdge (const idEdge e) const
 
- Public Member Functions inherited from ttk::ftr::Allocable
void setNumberOfElmt (const idVertex nbVerts)
 
template<typename type >
void fillVector (std::vector< type > &vect, const type &elmt)
 
virtual void alloc ()=0
 
virtual void init ()=0
 
- 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)
 
virtual int setWrapper (const Wrapper *wrapper)
 

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::ftr::Allocable
idVertex nbElmt_ = nullVertex
 Allocation may depends on the number of vertices.
 
- 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

template<typename triangulationType>
class ttk::ftr::Mesh< triangulationType >

TTK FTRGraph mesh related operations.

Author
Gueunet Charles charl.nosp@m.es.g.nosp@m.ueune.nosp@m.t+tt.nosp@m.k@gma.nosp@m.il.c.nosp@m.om
Date
2018-01-25

This class manage mesh request and is based on Triangulation. It add the ability to pre-sort some requests.

See also
ttk::FTRGraph

Definition at line 61 of file Mesh.h.

Constructor & Destructor Documentation

◆ Mesh() [1/2]

template<typename triangulationType >
ttk::ftr::Mesh< triangulationType >::Mesh ( triangulationType *  tri)
inlineexplicit

Definition at line 72 of file Mesh.h.

◆ Mesh() [2/2]

template<typename triangulationType >
ttk::ftr::Mesh< triangulationType >::Mesh ( )
default

Member Function Documentation

◆ alloc()

template<typename triangulationType >
void ttk::ftr::Mesh< triangulationType >::alloc ( )
inlineoverridevirtual

Implements ttk::ftr::Allocable.

Definition at line 85 of file Mesh.h.

◆ compareEdges()

template<typename triangulationType >
bool ttk::ftr::Mesh< triangulationType >::compareEdges ( const idEdge  e0,
const idEdge  e1,
const VertCompFN lowerThan 
) const

Definition at line 465 of file Mesh.h.

◆ compareLinks()

template<typename triangulationType >
bool ttk::ftr::Mesh< triangulationType >::compareLinks ( const linkEdge l0,
const linkEdge l1,
const VertCompFN lowerTan 
) const

Definition at line 492 of file Mesh.h.

◆ getDimensionality()

template<typename triangulationType >
SimplexId ttk::ftr::Mesh< triangulationType >::getDimensionality ( ) const
inline

Definition at line 107 of file Mesh.h.

◆ getEdgeTriangle()

template<typename triangulationType >
void ttk::ftr::Mesh< triangulationType >::getEdgeTriangle ( const idEdge  e,
const idCell  local_t,
idCell res 
) const
inline

Definition at line 167 of file Mesh.h.

◆ getEdgeTriangleNumber()

template<typename triangulationType >
idCell ttk::ftr::Mesh< triangulationType >::getEdgeTriangleNumber ( const idEdge  e) const
inline

Definition at line 163 of file Mesh.h.

◆ getEdgeVertex()

template<typename triangulationType >
void ttk::ftr::Mesh< triangulationType >::getEdgeVertex ( const idEdge  e,
const char  local_id,
idVertex res 
) const
inline

Definition at line 157 of file Mesh.h.

◆ getNumberOfCells()

template<typename triangulationType >
idCell ttk::ftr::Mesh< triangulationType >::getNumberOfCells ( ) const
inline

Definition at line 123 of file Mesh.h.

◆ getNumberOfEdges()

template<typename triangulationType >
idEdge ttk::ftr::Mesh< triangulationType >::getNumberOfEdges ( ) const
inline

Definition at line 115 of file Mesh.h.

◆ getNumberOfTriangles()

template<typename triangulationType >
idCell ttk::ftr::Mesh< triangulationType >::getNumberOfTriangles ( ) const
inline

Definition at line 119 of file Mesh.h.

◆ getNumberOfVertices()

template<typename triangulationType >
idVertex ttk::ftr::Mesh< triangulationType >::getNumberOfVertices ( ) const
inline

Definition at line 111 of file Mesh.h.

◆ getOrderedEdge() [1/2]

template<typename triangulationType >
orderedEdge ttk::ftr::Mesh< triangulationType >::getOrderedEdge ( const idEdge  e,
const bool  increasingOrder 
) const

Definition at line 287 of file Mesh.h.

◆ getOrderedEdge() [2/2]

template<typename triangulationType >
void ttk::ftr::Mesh< triangulationType >::getOrderedEdge ( const idEdge  e,
const bool  increasingOrder,
orderedEdge oEdge 
) const

Definition at line 300 of file Mesh.h.

◆ getOrderedTriangle() [1/2]

template<typename triangulationType >
orderedTriangle ttk::ftr::Mesh< triangulationType >::getOrderedTriangle ( const idCell  t,
const bool  increasingOrder 
) const

Definition at line 316 of file Mesh.h.

◆ getOrderedTriangle() [2/2]

template<typename triangulationType >
void ttk::ftr::Mesh< triangulationType >::getOrderedTriangle ( const idCell  t,
const bool  increasingOrder,
orderedTriangle oTri 
) const

Definition at line 371 of file Mesh.h.

◆ getTriangleEdge()

template<typename triangulationType >
void ttk::ftr::Mesh< triangulationType >::getTriangleEdge ( const idCell  t,
const char  local_id,
idEdge res 
) const
inline

Definition at line 177 of file Mesh.h.

◆ getTriangleEdgeNumber()

template<typename triangulationType >
idEdge ttk::ftr::Mesh< triangulationType >::getTriangleEdgeNumber ( const idCell  t) const
inline

Definition at line 173 of file Mesh.h.

◆ getTriangulation()

template<typename triangulationType >
triangulationType * ttk::ftr::Mesh< triangulationType >::getTriangulation ( )
inline

Definition at line 81 of file Mesh.h.

◆ getVertexEdge()

template<typename triangulationType >
void ttk::ftr::Mesh< triangulationType >::getVertexEdge ( const idVertex  v,
const idEdge  local_e,
idEdge res 
) const
inline

Definition at line 141 of file Mesh.h.

◆ getVertexEdgeNumber()

template<typename triangulationType >
idEdge ttk::ftr::Mesh< triangulationType >::getVertexEdgeNumber ( const idEdge  e) const
inline

Definition at line 137 of file Mesh.h.

◆ getVertexNeighbor()

template<typename triangulationType >
void ttk::ftr::Mesh< triangulationType >::getVertexNeighbor ( const idVertex  v,
const idVertex  local_v,
idVertex res 
)
inline

Definition at line 131 of file Mesh.h.

◆ getVertexNeighborNumber()

template<typename triangulationType >
idVertex ttk::ftr::Mesh< triangulationType >::getVertexNeighborNumber ( const idVertex  v) const
inline

Definition at line 127 of file Mesh.h.

◆ getVertexTriangle()

template<typename triangulationType >
void ttk::ftr::Mesh< triangulationType >::getVertexTriangle ( const idVertex  v,
const idCell  local_c,
idCell res 
) const
inline

Definition at line 151 of file Mesh.h.

◆ getVertexTriangleNumber()

template<typename triangulationType >
idCell ttk::ftr::Mesh< triangulationType >::getVertexTriangleNumber ( const idVertex  v) const
inline

Definition at line 147 of file Mesh.h.

◆ init()

template<typename triangulationType >
void ttk::ftr::Mesh< triangulationType >::init ( )
inlineoverridevirtual

Implements ttk::ftr::Allocable.

Definition at line 90 of file Mesh.h.

◆ preprocess()

template<typename triangulationType >
void ttk::ftr::Mesh< triangulationType >::preprocess ( )
inline

Definition at line 93 of file Mesh.h.

◆ preSortEdges()

template<typename triangulationType >
void ttk::ftr::Mesh< triangulationType >::preSortEdges ( const VertCompFN lowerThan)

Definition at line 225 of file Mesh.h.

◆ preSortTriangles()

template<typename triangulationType >
void ttk::ftr::Mesh< triangulationType >::preSortTriangles ( const VertCompFN lowerThan)

Definition at line 241 of file Mesh.h.

◆ printEdge()

template<typename triangulationType >
std::string ttk::ftr::Mesh< triangulationType >::printEdge ( const idEdge  e) const

Definition at line 516 of file Mesh.h.

◆ printEdges()

template<typename triangulationType >
std::string ttk::ftr::Mesh< triangulationType >::printEdges

Definition at line 502 of file Mesh.h.

◆ setTriangulation()

template<typename triangulationType >
void ttk::ftr::Mesh< triangulationType >::setTriangulation ( triangulationType *  tri)
inline

Definition at line 77 of file Mesh.h.


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