Provides a writer to VTK files. More...
#include <fstream>
#include <sstream>
#include <iostream>
#include "viennagrid/domain.hpp"
#include "viennagrid/forwards.h"
#include "viennagrid/iterators.hpp"
#include "viennagrid/io/helper.hpp"
#include "viennagrid/io/vtk_common.hpp"
#include "viennagrid/io/data_accessor.hpp"
#include "viennadata/api.hpp"
Go to the source code of this file.
Data Structures | |
class | vtk_writer< DomainType > |
Main VTK writer class. Writes a domain or a segment to a file. More... | |
Namespaces | |
namespace | viennagrid |
The main ViennaGrid namespace. Most functionality resides in this namespace. | |
namespace | viennagrid::io |
A namespace with all the input/output functionality, in particular file readers and writers. | |
Functions | |
template<typename DomainType > | |
int | export_vtk (DomainType const &domain, std::string const &filename) |
Convenience function that exports a domain to file directly. Does not export quantities. | |
template<typename KeyType , typename DataType , typename DomainType > | |
vtk_writer< DomainType > & | add_scalar_data_on_vertices (vtk_writer< DomainType > &writer, KeyType const &key, std::string quantity_name) |
Registers scalar-valued data on vertices at the XML writer. | |
template<typename KeyType , typename DataType , typename DomainType > | |
vtk_writer< DomainType > & | add_scalar_data_on_vertices_per_segment (vtk_writer< DomainType > &writer, KeyType const &key, std::string quantity_name) |
Registers scalar-valued data on vertices at the XML writer. Data is segment based and might be discontinuous at segment boundaries. | |
template<typename KeyType , typename DataType , typename DomainType > | |
vtk_writer< DomainType > & | add_vector_data_on_vertices (vtk_writer< DomainType > &writer, KeyType const &key, std::string quantity_name) |
Registers vector-valued data on vertices at the XML writer. | |
template<typename KeyType , typename DataType , typename DomainType > | |
vtk_writer< DomainType > & | add_vector_data_on_vertices_per_segment (vtk_writer< DomainType > &writer, KeyType const &key, std::string quantity_name) |
Registers vector-valued data on vertices at the XML writer. Data is segment based and might be discontinuous at segment boundaries. | |
template<typename KeyType , typename DataType , typename DomainType > | |
vtk_writer< DomainType > & | add_normal_data_on_vertices (vtk_writer< DomainType > &writer, KeyType const &key, std::string quantity_name) |
Registers vector-valued data (normals) on vertices at the XML writer. | |
template<typename KeyType , typename DataType , typename DomainType > | |
vtk_writer< DomainType > & | add_normal_data_on_vertices_per_segment (vtk_writer< DomainType > &writer, KeyType const &key, std::string quantity_name) |
Registers vector-valued data (normals) on vertices at the XML writer. Data is segment based and might be discontinuous at segment boundaries. | |
template<typename KeyType , typename DataType , typename DomainType > | |
vtk_writer< DomainType > & | add_scalar_data_on_cells (vtk_writer< DomainType > &writer, KeyType const &key, std::string quantity_name) |
Registers scalar-valued data on cells at the XML writer. | |
template<typename KeyType , typename DataType , typename DomainType > | |
vtk_writer< DomainType > & | add_scalar_data_on_cells_per_segment (vtk_writer< DomainType > &writer, KeyType const &key, std::string quantity_name) |
Registers scalar-valued data on cells at the XML writer. Data is segment based and might be discontinuous at segment boundaries. | |
template<typename KeyType , typename DataType , typename DomainType > | |
vtk_writer< DomainType > & | add_vector_data_on_cells (vtk_writer< DomainType > &writer, KeyType const &key, std::string quantity_name) |
Registers vector-valued data on cells at the XML writer. | |
template<typename KeyType , typename DataType , typename DomainType > | |
vtk_writer< DomainType > & | add_vector_data_on_cells_per_segment (vtk_writer< DomainType > &writer, KeyType const &key, std::string quantity_name) |
Registers vector-valued data on cells at the XML writer. Data is segment based and might be discontinuous at segment boundaries. | |
template<typename KeyType , typename DataType , typename DomainType > | |
vtk_writer< DomainType > & | add_normal_data_on_cells (vtk_writer< DomainType > &writer, KeyType const &key, std::string quantity_name) |
Registers vector-valued data (normals) on cells at the XML writer. | |
template<typename KeyType , typename DataType , typename DomainType > | |
vtk_writer< DomainType > & | add_normal_data_on_cells_per_segment (vtk_writer< DomainType > &writer, KeyType const &key, std::string quantity_name) |
Registers vector-valued data (normals) on cells at the XML writer. Data is segment based and might be discontinuous at segment boundaries. |
Provides a writer to VTK files.