Wildmeshing Toolkit
wmtk::io::ParaviewWriter Class Reference

#include <ParaviewWriter.hpp>

Inheritance diagram for wmtk::io::ParaviewWriter:
[legend]
Collaboration diagram for wmtk::io::ParaviewWriter:
[legend]

Classes

class  ParaviewInternalWriter
 

Public Member Functions

 ParaviewWriter (const std::filesystem::path &filename, const std::string &vertices_name, const Mesh &mesh, bool write_points=true, bool write_edges=true, bool write_faces=true, bool write_tetrahedra=true)
 
bool write (const int dim) override
 
void write_top_simplex_type (const PrimitiveType) override
 
void write_absolute_id (const std::vector< int64_t > &id) override
 
void write_capacities (const std::vector< int64_t > &capacities) override
 
void write (const std::string &name, const int64_t type, const int64_t stride, const std::vector< char > &val, const char default_val) override
 
void write (const std::string &name, const int64_t type, const int64_t stride, const std::vector< int64_t > &val, const int64_t default_val) override
 
void write (const std::string &name, const int64_t type, const int64_t stride, const std::vector< double > &val, const double default_val) override
 
void write (const std::string &name, const int64_t type, const int64_t stride, const std::vector< Rational > &val, const Rational &default_val) override
 
- Public Member Functions inherited from wmtk::MeshWriter
virtual ~MeshWriter ()
 

Private Member Functions

void write_internal (const std::string &name, const int64_t type, const int64_t stride, const std::vector< double > &val)
 

Private Attributes

std::array< ParaviewInternalWriter, 4 > m_writers
 
std::array< bool, 4 > m_enabled
 
std::string m_vertices_name
 
bool m_write
 

Additional Inherited Members

- Protected Attributes inherited from wmtk::MeshWriter
int64_t m_mm_level = 0
 

Detailed Description

Definition at line 16 of file ParaviewWriter.hpp.

Constructor & Destructor Documentation

◆ ParaviewWriter()

wmtk::io::ParaviewWriter::ParaviewWriter ( const std::filesystem::path &  filename,
const std::string &  vertices_name,
const Mesh mesh,
bool  write_points = true,
bool  write_edges = true,
bool  write_faces = true,
bool  write_tetrahedra = true 
)

Definition at line 69 of file ParaviewWriter.cpp.

References wmtk::Edge, wmtk::Mesh::get_all(), wmtk::Mesh::id(), m_enabled, m_writers, wmtk::Mesh::switch_tuple(), wmtk::Triangle, and wmtk::Vertex.

Here is the call graph for this function:

Member Function Documentation

◆ write() [1/5]

bool wmtk::io::ParaviewWriter::write ( const int  dim)
inlineoverridevirtual

Implements wmtk::MeshWriter.

Definition at line 59 of file ParaviewWriter.hpp.

References m_enabled.

◆ write() [2/5]

void wmtk::io::ParaviewWriter::write ( const std::string &  name,
const int64_t  type,
const int64_t  stride,
const std::vector< char > &  val,
const char  default_val 
)
overridevirtual

Implements wmtk::MeshWriter.

Definition at line 155 of file ParaviewWriter.cpp.

References write_internal().

Here is the call graph for this function:

◆ write() [3/5]

void wmtk::io::ParaviewWriter::write ( const std::string &  name,
const int64_t  type,
const int64_t  stride,
const std::vector< double > &  val,
const double  default_val 
)
overridevirtual

Implements wmtk::MeshWriter.

Definition at line 145 of file ParaviewWriter.cpp.

References write_internal().

Here is the call graph for this function:

◆ write() [4/5]

void wmtk::io::ParaviewWriter::write ( const std::string &  name,
const int64_t  type,
const int64_t  stride,
const std::vector< int64_t > &  val,
const int64_t  default_val 
)
overridevirtual

Implements wmtk::MeshWriter.

Definition at line 131 of file ParaviewWriter.cpp.

References write_internal().

Here is the call graph for this function:

◆ write() [5/5]

void wmtk::io::ParaviewWriter::write ( const std::string &  name,
const int64_t  type,
const int64_t  stride,
const std::vector< Rational > &  val,
const Rational default_val 
)
overridevirtual

Implements wmtk::MeshWriter.

Definition at line 170 of file ParaviewWriter.cpp.

References write_internal().

Here is the call graph for this function:

◆ write_absolute_id()

void wmtk::io::ParaviewWriter::write_absolute_id ( const std::vector< int64_t > &  id)
inlineoverridevirtual

Implements wmtk::MeshWriter.

Definition at line 62 of file ParaviewWriter.hpp.

References wmtk::MeshWriter::m_mm_level, and m_write.

◆ write_capacities()

void wmtk::io::ParaviewWriter::write_capacities ( const std::vector< int64_t > &  capacities)
inlineoverridevirtual

Implements wmtk::MeshWriter.

Definition at line 69 of file ParaviewWriter.hpp.

◆ write_internal()

void wmtk::io::ParaviewWriter::write_internal ( const std::string &  name,
const int64_t  type,
const int64_t  stride,
const std::vector< double > &  val 
)
private

Definition at line 184 of file ParaviewWriter.cpp.

References m_enabled, m_vertices_name, m_write, and m_writers.

Referenced by write().

Here is the caller graph for this function:

◆ write_top_simplex_type()

void wmtk::io::ParaviewWriter::write_top_simplex_type ( const  PrimitiveType)
inlineoverridevirtual

Implements wmtk::MeshWriter.

Definition at line 61 of file ParaviewWriter.hpp.

Member Data Documentation

◆ m_enabled

std::array<bool, 4> wmtk::io::ParaviewWriter::m_enabled
private

Definition at line 102 of file ParaviewWriter.hpp.

Referenced by ParaviewWriter(), write(), and write_internal().

◆ m_vertices_name

std::string wmtk::io::ParaviewWriter::m_vertices_name
private

Definition at line 103 of file ParaviewWriter.hpp.

Referenced by write_internal().

◆ m_write

bool wmtk::io::ParaviewWriter::m_write
private

Definition at line 104 of file ParaviewWriter.hpp.

Referenced by write_absolute_id(), and write_internal().

◆ m_writers

std::array<ParaviewInternalWriter, 4> wmtk::io::ParaviewWriter::m_writers
private

Definition at line 101 of file ParaviewWriter.hpp.

Referenced by ParaviewWriter(), and write_internal().


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