dune-grid 2.9.0
Classes | Namespaces | Enumerations | Functions
common.hh File Reference

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...
 
struct  Dune::VTK::PrintType< unsigned char >
 
struct  Dune::VTK::PrintType< signed char >
 
struct  Dune::VTK::PrintType< char >
 
class  Dune::VTK::FieldInfo
 Descriptor struct for VTK fields. More...
 

Namespaces

namespace  Dune
 Include standard header files.
 
namespace  Dune::VTK
 

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 {
  Dune::VTK::vertex = 1 , Dune::VTK::line = 3 , Dune::VTK::triangle = 5 , Dune::VTK::polygon = 7 ,
  Dune::VTK::quadrilateral = 9 , Dune::VTK::tetrahedron = 10 , Dune::VTK::hexahedron = 12 , Dune::VTK::prism = 13 ,
  Dune::VTK::pyramid = 14 , Dune::VTK::polyhedron = 42
}
 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 {
  Dune::VTK::int32 , Dune::VTK::uint8 , Dune::VTK::uint32 , Dune::VTK::float32 ,
  Dune::VTK::float64
}
 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 More...
 
std::size_t Dune::VTK::typeSize (Precision p)
 map precision to byte size More...
 

Detailed Description

Common stuff for the VTKWriter.

Author
Peter Bastian, Christian Engwer

This file contains common stuff for all instances of VTKWriter.