dune-grid  2.3beta2
Classes | Enumerations | Functions
Dune::VTK Namespace Reference

Classes

class  BasicWriter
class  BoundaryIterator
 iterate over the GridViews boundary intersections More...
class  IntersectionIndexSet
class  NonConformingBoundaryIteratorFactory
class  NonConformingBoundaryWriter
struct  PrintType
 determine a type to safely put another type into a stream More...
struct  PrintType< unsigned char >
struct  PrintType< signed char >
struct  PrintType< char >
class  TypeName
 map type to its VTK name in data array More...
class  Corner
 simple class representing a corner of a cell More...
class  CornerIterator
 iterate over the corners of some cell range More...
class  DataArrayWriter
 base class for data array writers More...
class  AsciiDataArrayWriter
 a streaming writer for data array tags, uses ASCII inline format More...
class  BinaryDataArrayWriter
 a streaming writer for data array tags, uses binary inline format More...
class  AppendedRawDataArrayWriter
 a streaming writer for data array tags, uses appended raw format More...
class  AppendedBase64DataArrayWriter
 a streaming writer for data array tags, uses appended base64 format More...
class  NakedBase64DataArrayWriter
 a streaming writer for appended data array tags, uses base64 format More...
class  NakedRawDataArrayWriter
 a streaming writer for appended data arrays, uses raw format More...
class  DataArrayWriterFactory
 a factory for DataArrayWriters More...
class  FunctionWriterBase
 Base class for function writers. More...
class  VTKFunctionWriter
 Base class for function writers. More...
class  CoordinatesWriter
 writer for the Coordinates array More...
class  ConformingConnectivityWriter
 writer for the connectivity array in conforming mode More...
class  NonConformingConnectivityWriter
 writer for the connectivity array in nonconforming mode More...
class  OffsetsWriter
 writer for the offsets array More...
class  TypesWriter
 writer for the types array More...
class  PointIterator
 iterate over the points of some corner range More...
class  PVTUWriter
 Dump a .vtu/.vtp files contents to a stream. More...
struct  SkeletonFunctionTraits
class  SkeletonFunctionInterface
 A prototype for VTKFunctions on the skeleton. More...
class  SkeletonFunctionWriter
 function writer for skeleton functions More...
class  ConformingVolumeIteratorFactory
class  NonConformingVolumeIteratorFactory
class  ConformingVolumeWriter
class  VTUWriter
 Dump a .vtu/.vtp files contents to a stream. More...

Enumerations

enum  OutputType { ascii, base64, appendedraw, appendedbase64 }
 How the bulk data should be stored in the file. More...
enum  DataMode { conforming, nonconforming }
 Whether to produce conforming or non-conforming output. More...
enum  GeometryType {
  vertex = 1, line = 3, triangle = 5, quadrilateral = 9,
  tetrahedron = 10, hexahedron = 12, prism = 13, pyramid = 14
}
 Type representing VTK's entity geometry types. More...
enum  FileType { polyData, unstructuredGrid }
 which type of VTK file to write More...

Functions

GeometryType geometryType (const Dune::GeometryType &t)
 mapping from GeometryType to VTKGeometryType
int renumber (const Dune::GeometryType &t, int i)
 renumber VTK <-> Dune
template<typename T >
int renumber (const T &t, int i)
 renumber VTK <-> Dune
std::string getEndiannessString ()
 determine endianness of this C++ implementation

Enumeration Type Documentation

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.

Enumerator:
conforming 

Output conforming data.

Neighboring elements share common vertices and thus have a common DoF on that vertex.

nonconforming 

Output non-conforming data.

Each element has it's own set of vertices. The position of a vertex of one element will concide with the position of the corresponding vertex on another element. This allows for multiple DoFs (one per element) on the "same" vertex.

which type of VTK file to write

Enumerator:
polyData 

for .vtp files (PolyData)

unstructuredGrid 

for .vtu files (UnstructuredGrid)

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.

Enumerator:
vertex 
line 
triangle 
quadrilateral 
tetrahedron 
hexahedron 
prism 
pyramid 

How the bulk data should be stored in the file.

Enumerator:
ascii 

Output to the file is in ascii.

base64 

Output to the file is inline base64 binary.

appendedraw 

Ouput is to the file is appended raw binary.

appendedbase64 

Ouput is to the file is appended base64 binary.

Function Documentation

GeometryType Dune::VTK::geometryType ( const Dune::GeometryType &  t)
inline
std::string Dune::VTK::getEndiannessString ( )
inline

determine endianness of this C++ implementation

Returns
A string suitable for the byte_order property in VTK files; either "BigEndian" or "LittleEndian".

Referenced by Dune::VTK::PVTUWriter::PVTUWriter(), and Dune::VTK::VTUWriter::VTUWriter().

int Dune::VTK::renumber ( const Dune::GeometryType &  t,
int  i 
)
inline
template<typename T >
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
tEntity, Intersection or Geometry to do the renumbering in. Basically, anything with a method type() returning a GeometryType should work here.
iIndex to of corner in either Dune or VTK numbering (the result will be in the other numbering)

References renumber().