21 #ifndef bempp_vtk_writer_hpp
22 #define bempp_vtk_writer_hpp
24 #include "../common/common.hpp"
26 #include "../common/armadillo_fwd.hpp"
73 void addCellData(
const arma::Mat<double>& data,
const std::string &name);
75 void addCellData(
const arma::Mat<float>& data,
const std::string &name);
83 void addVertexData(
const arma::Mat<double>& data,
const std::string &name);
85 void addVertexData(
const arma::Mat<float>& data,
const std::string &name);
88 virtual void clear() = 0;
103 virtual std::string
write (
const std::string &name,
134 virtual std::string
pwrite(
const std::string& name,
const std::string& path,
135 const std::string& extendpath,
139 virtual void addCellDataDoubleImpl(
140 const arma::Mat<double>& data,
const std::string &name) = 0;
141 virtual void addCellDataFloatImpl(
142 const arma::Mat<float>& data,
const std::string &name) = 0;
144 virtual void addVertexDataDoubleImpl(
145 const arma::Mat<double>& data,
const std::string &name) = 0;
146 virtual void addVertexDataFloatImpl(
147 const arma::Mat<float>& data,
const std::string &name) = 0;
151 const std::string& name)
153 addCellDataDoubleImpl(data, name);
157 const std::string& name)
159 addCellDataFloatImpl(data, name);
163 const std::string& name)
165 addVertexDataDoubleImpl(data, name);
169 const std::string& name)
171 addVertexDataFloatImpl(data, name);
void addVertexData(const arma::Mat< double > &data, const std::string &name)
Add a grid function (represented by a container) that lives on the vertices of the grid to the visual...
Definition: vtk_writer.hpp:162
virtual ~VtkWriter()
Destructor.
Definition: vtk_writer.hpp:65
Abstract exporter of data in the vtk format.
Definition: vtk_writer.hpp:42
OutputType
How data should be stored in a VTK file.
Definition: vtk_writer.hpp:46
Output to the file is in inline base64 binary.
Definition: vtk_writer.hpp:50
virtual std::string pwrite(const std::string &name, const std::string &path, const std::string &extendpath, OutputType type=ASCII)=0
Write output (interface might change later).
virtual std::string write(const std::string &name, OutputType type=ASCII)=0
Write output (interface might change later).
void addCellData(const arma::Mat< double > &data, const std::string &name)
Add a grid function (represented by a container) that lives on the cells of the grid to the visualiza...
Definition: vtk_writer.hpp:150
Output to the file is in appended raw binary.
Definition: vtk_writer.hpp:52
Output to the file is in ascii.
Definition: vtk_writer.hpp:48
Output to the file is in appended base64 binary.
Definition: vtk_writer.hpp:54
virtual void clear()=0
Clear the list of registered functions.
DataType
Dataset type.
Definition: vtk_writer.hpp:58