bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
kernel::numerics::VtkMeshFileWriter Class Reference

Write the given Mesh object in a VTK format. More...

#include <vtk_mesh_file_writer.h>

Inheritance diagram for kernel::numerics::VtkMeshFileWriter:
Collaboration diagram for kernel::numerics::VtkMeshFileWriter:

Public Member Functions

 VtkMeshFileWriter (const std::string &filename, bool open_file=false)
 Constructor.
 
void write_mesh (const Mesh< 2 > &mesh)
 Write the mesh into the file specified in constructor of this class.
 
void write_mesh (const Mesh< 2 > &mesh, const VtkMeshMeshCellOptions &options)
 Write the mesh into the file specified in constructor of this class.
 
void write_mesh (const Mesh< 2 > &mesh, const std::vector< real_t > &cell_values, const std::string &option_name)
 Write the mesh into the file specified in the constructor of this class and also append the given cell values.
 
virtual void write_header () override
 Write the header of the file. By default some information such as date and time the file was created is written.
 

Protected Member Functions

virtual void write_option (const Mesh< 2 > &mesh, const std::string &name)
 

Detailed Description

Write the given Mesh object in a VTK format.

Constructor & Destructor Documentation

◆ VtkMeshFileWriter()

kernel::numerics::VtkMeshFileWriter::VtkMeshFileWriter ( const std::string &  filename,
bool  open_file = false 
)

Constructor.

Member Function Documentation

◆ write_header()

void kernel::numerics::VtkMeshFileWriter::write_header ( )
overridevirtual

Write the header of the file. By default some information such as date and time the file was created is written.

◆ write_mesh() [1/3]

void kernel::numerics::VtkMeshFileWriter::write_mesh ( const Mesh< 2 > &  mesh)

Write the mesh into the file specified in constructor of this class.

◆ write_mesh() [2/3]

void kernel::numerics::VtkMeshFileWriter::write_mesh ( const Mesh< 2 > &  mesh,
const std::vector< real_t > &  cell_values,
const std::string &  option_name 
)

Write the mesh into the file specified in the constructor of this class and also append the given cell values.

◆ write_mesh() [3/3]

void kernel::numerics::VtkMeshFileWriter::write_mesh ( const Mesh< 2 > &  mesh,
const VtkMeshMeshCellOptions options 
)

Write the mesh into the file specified in constructor of this class.

◆ write_option()

void kernel::numerics::VtkMeshFileWriter::write_option ( const Mesh< 2 > &  mesh,
const std::string &  name 
)
protectedvirtual

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