Writer of data linked with meshes into VTK format.  
 More...
#include <TNL/Meshes/Writers/VTKWriter.h>
 | 
| 
  | VTKWriter ()=delete | 
|   | Construct with no parameters is not allowed. 
  | 
|   | VTKWriter (std::ostream &str, VTK::FileFormat format=VTK::FileFormat::binary) | 
|   | Constructor of a VTIWriter.  
  | 
| template<typename Array>  | 
| void  | writeCellData (const Array &array, const std::string &name, int numberOfComponents=1) | 
|   | Writes data linked with mesh cells.  
  | 
| 
template<typename Array>  | 
| void  | writeDataArray (const Array &array, const std::string &name, int numberOfComponents=1) | 
| template<int EntityDimension = Mesh::getMeshDimension()>  | 
| void  | writeEntities (const Mesh &mesh) | 
|   | Write mesh entities to the output file.  
  | 
| void  | writeMetadata (std::int32_t cycle=-1, double time=-1) | 
|   | If desired, cycle and time of the simulation can put into the file.  
  | 
| template<typename Array>  | 
| void  | writePointData (const Array &array, const std::string &name, int numberOfComponents=1) | 
|   | Writes data linked with mesh vertices.  
  | 
 | 
| 
void  | writeHeader () | 
| 
void  | writePoints (const Mesh &mesh) | 
 | 
| 
int  | cellDataArrays = 0 | 
| 
std::uint64_t  | cellsCount = 0 | 
| 
VTK::DataType  | currentSection = VTK::DataType::CellData | 
| 
VTK::FileFormat  | format | 
| 
bool  | headerWritten = false | 
| 
int  | pointDataArrays = 0 | 
| 
std::uint64_t  | pointsCount = 0 | 
| 
std::ostream  | str | 
template<typename 
Mesh>
class TNL::Meshes::Writers::VTKWriter< Mesh >
Writer of data linked with meshes into VTK format. 
- Template Parameters
 - 
  
  
 
 
◆ VTKWriter()
Constructor of a VTIWriter. 
- Parameters
 - 
  
    | str | output stream used for the export of the data.  | 
    | format |  | 
  
   
 
 
◆ writeCellData()
Writes data linked with mesh cells. 
- Template Parameters
 - 
  
    | Array | type of array holding the data.  | 
  
   
- Parameters
 - 
  
    | array | instance of an array holding the data.  | 
    | name | is a name of data which will appear in the outptu file.  | 
    | numberOfComponents | is number of compononets of the data for each cell.  | 
  
   
 
 
◆ writeEntities()
template<int EntityDimension> 
      
 
Write mesh entities to the output file. 
- Template Parameters
 - 
  
    | EntityDimension | is a dimension of entities to be exported.  | 
  
   
- Parameters
 - 
  
    | mesh | is a mesh to be exported.  | 
  
   
 
 
◆ writeMetadata()
◆ writePointData()
Writes data linked with mesh vertices. 
- Template Parameters
 - 
  
    | Array | type of array holding the data.  | 
  
   
- Parameters
 - 
  
    | array | instance of an array holding the data.  | 
    | name | is a name of data which will appear in the outptu file.  | 
    | numberOfComponents | is number of compononets of the data for each vertex.  | 
  
   
 
 
The documentation for this class was generated from the following files:
- src/TNL/Meshes/Writers/VTKWriter.h
 
- src/TNL/Meshes/Writers/VTKWriter.hpp