|
ViennaGrid - The Vienna Grid Library
2.1.0
|
This is a simple vtk-reader implementation. Refer to the vtk-standard (cf. http://www.vtk.org/pdf/file-formats.pdf) and make sure the same order of XML tags is preserved. More...
#include <fstream>#include <iostream>#include <sstream>#include <vector>#include <deque>#include <string>#include <algorithm>#include "viennagrid/forwards.hpp"#include "viennagrid/point.hpp"#include "viennagrid/io/vtk_common.hpp"#include "viennagrid/io/helper.hpp"#include "viennagrid/io/xml_tag.hpp"#include "viennagrid/mesh/element_creation.hpp"Go to the source code of this file.
Data Structures | |
| class | vtk_reader< MeshType, SegmentationType > |
| A VTK reader class that allows to read meshes from XML-based VTK files as defined in http://www.vtk.org/pdf/file-formats.pdf. More... | |
Namespaces | |
| namespace | viennagrid |
The main ViennaGrid namespace. Most user functionality resides directly in this namespace rather than in sub-namespaces. | |
| namespace | viennagrid::io |
A namespace with all the input/output functionality, in particular file readers and writers. | |
Functions | |
| template<typename MeshT , typename SegmentationT , typename AccessorOrFieldT > | |
| vtk_reader< MeshT, SegmentationT > & | add_scalar_data_on_cells (vtk_reader< MeshT, SegmentationT > &reader, AccessorOrFieldT const accessor_or_field, std::string const &quantity_name) |
| Registers scalar-valued data on cells at the VTK reader. | |
| template<typename MeshT , typename SegmentationT , typename AccessorOrFieldT > | |
| vtk_reader< MeshT, SegmentationT > & | add_scalar_data_on_vertices (vtk_reader< MeshT, SegmentationT > &reader, AccessorOrFieldT const accessor_or_field, std::string const &quantity_name) |
| Registers scalar-valued data on vertices at the VTK reader. | |
| template<typename MeshT , typename SegmentationT , typename AccessorOrFieldT > | |
| vtk_reader< MeshT, SegmentationT > & | add_vector_data_on_cells (vtk_reader< MeshT, SegmentationT > &reader, AccessorOrFieldT const accessor_or_field, std::string const &quantity_name) |
| Registers vector-valued data on cells at the VTK reader. | |
| template<typename MeshT , typename SegmentationT , typename AccessorOrFieldT > | |
| vtk_reader< MeshT, SegmentationT > & | add_vector_data_on_vertices (vtk_reader< MeshT, SegmentationT > &reader, AccessorOrFieldT const accessor_or_field, std::string const &quantity_name) |
| Registers vector-valued data on vertices at the VTK reader. | |
| template<typename VTKReaderT > | |
| std::vector< std::pair < std::size_t, std::string > > const & | get_scalar_data_on_cells (VTKReaderT const &reader) |
| Returns the names of all scalar-valued data read for cells. | |
| template<typename VTKReaderT > | |
| std::vector< std::pair < std::size_t, std::string > > const & | get_scalar_data_on_vertices (VTKReaderT const &reader) |
| Returns the names of all scalar-valued data read for vertices. | |
| template<typename VTKReaderT > | |
| std::vector< std::pair < std::size_t, std::string > > const & | get_vector_data_on_cells (VTKReaderT const &reader) |
| Returns the names of all vector-valued data read for cells. | |
| template<typename VTKReaderT > | |
| std::vector< std::pair < std::size_t, std::string > > const & | get_vector_data_on_vertices (VTKReaderT const &reader) |
| Returns the names of all vector-valued data read for vertices. | |
| template<typename MeshType , typename SegmentationType > | |
| int | import_vtk (MeshType &mesh_obj, SegmentationType &segmentation, std::string const &filename) |
| Convenience function for importing a mesh using a single line of code. | |
| template<typename MeshType > | |
| int | import_vtk (MeshType &mesh_obj, std::string const &filename) |
| Convenience function for importing a mesh using a single line of code. | |
This is a simple vtk-reader implementation. Refer to the vtk-standard (cf. http://www.vtk.org/pdf/file-formats.pdf) and make sure the same order of XML tags is preserved.
1.7.6.1