Dune Core Modules (unstable)
Common stuff for the VTKWriter. More...
#include <limits>
#include <sstream>
#include <string>
#include <cstdint>
#include <dune/common/exceptions.hh>
#include <dune/geometry/type.hh>
#include <dune/common/typetraits.hh>
Go to the source code of this file.
Classes | |
struct | Dune::VTK::PrintType< T > |
determine a type to safely put another type into a stream More... | |
class | Dune::VTK::FieldInfo |
Descriptor struct for VTK fields. More... | |
Namespaces | |
namespace | Dune |
Dune namespace. | |
Enumerations | |
enum | Dune::VTK::OutputType { Dune::VTK::ascii , Dune::VTK::base64 , Dune::VTK::appendedraw , Dune::VTK::appendedbase64 } |
How the bulk data should be stored in the file. More... | |
enum | Dune::VTK::DataMode { Dune::VTK::conforming , Dune::VTK::nonconforming } |
Whether to produce conforming or non-conforming output. More... | |
enum | Dune::VTK::GeometryType |
Type representing VTK's entity geometry types. More... | |
enum | Dune::VTK::FileType { Dune::VTK::polyData , Dune::VTK::unstructuredGrid } |
which type of VTK file to write More... | |
enum class | Dune::VTK::Precision |
which precision to use when writing out data to vtk files More... | |
Functions | |
GeometryType | Dune::VTK::geometryType (const Dune::GeometryType &t) |
mapping from GeometryType to VTKGeometryType More... | |
int | Dune::VTK::renumber (const Dune::GeometryType &t, int i) |
renumber VTK <-> Dune More... | |
template<typename T > | |
int | Dune::VTK::renumber (const T &t, int i) |
renumber VTK <-> Dune More... | |
std::string | Dune::VTK::getEndiannessString () |
determine endianness of this C++ implementation More... | |
std::string | Dune::VTK::toString (Precision p) |
map precision to VTK type name | |
std::size_t | Dune::VTK::typeSize (Precision p) |
map precision to byte size | |
Detailed Description
Common stuff for the VTKWriter.
This file contains common stuff for all instances of VTKWriter.
Enumeration Type Documentation
◆ DataMode
enum Dune::VTK::DataMode |
Whether to produce conforming or non-conforming output.
This applies to the conformity of the data; a non-conforming grid can still be written in conforming data mode, and it is quite possible for data to be non-conforming on a conforming grid.
◆ FileType
enum Dune::VTK::FileType |
which type of VTK file to write
Enumerator | |
---|---|
polyData | for .vtp files (PolyData) |
unstructuredGrid | for .vtu files (UnstructuredGrid) |
◆ GeometryType
Type representing VTK's entity geometry types.
Only the types which have a corresponding Dune::GeometryType have been included here. Dune-type names have been used, this mainly makes a difference for vtkPrism, which is known by VTK as VTK_WEDGE.
◆ OutputType
How the bulk data should be stored in the file.
◆ Precision
|
strong |
which precision to use when writing out data to vtk files
Function Documentation
◆ geometryType()
|
inline |
mapping from GeometryType to VTKGeometryType
References Dune::VTK::geometryType(), and Dune::GeometryType::isVertex().
Referenced by Dune::VTK::geometryType(), and Dune::VTK::TypesWriter< Cell >::write().
◆ getEndiannessString()
|
inline |
determine endianness of this C++ implementation
- Returns
- A string suitable for the byte_order property in VTK files; either "BigEndian" or "LittleEndian".
References Dune::VTK::getEndiannessString().
Referenced by Dune::VTK::getEndiannessString(), Dune::VTK::PVTUWriter::PVTUWriter(), and Dune::VTK::VTUWriter::VTUWriter().
◆ renumber() [1/2]
|
inline |
renumber VTK <-> Dune
Since the renumbering never does anything more complex than exchanging two indices, this method works both ways.
References Dune::GeometryType::isHexahedron(), Dune::GeometryType::isPrism(), Dune::GeometryType::isPyramid(), Dune::GeometryType::isQuadrilateral(), and Dune::VTK::renumber().
Referenced by Dune::VTK::renumber(), and Dune::VTK::Corner< Cell >::vtkIndex().
◆ renumber() [2/2]
int Dune::VTK::renumber | ( | const T & | t, |
int | i | ||
) |
renumber VTK <-> Dune
This function is just a convenience shortcut function wrapping renumber(const GeometryType&, int).
- Parameters
-
t Entity, Intersection or Geometry to do the renumbering in. Basically, anything with a method type() returning a GeometryType should work here. i Index to of corner in either Dune or VTK numbering (the result will be in the other numbering)
References Dune::VTK::renumber().