LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
Loading...
Searching...
No Matches
Classes | Public Types | Public Attributes | List of all members
lf::io::VtkFile Class Reference

Representation of a VTK file (only relevant) features (advanced usage) More...

#include <lf/io/vtk_writer.h>

Classes

class  FieldDataArray
 
class  ScalarData
 Represents one set of attribute data (can be attached to points or cells) More...
 
class  UnstructuredGrid
 
class  VectorData
 

Public Types

enum class  Format { ASCII , BINARY }
 Nested types. More...
 
enum class  CellType {
  VTK_VERTEX = 1 , VTK_POLY_VERTEX = 2 , VTK_LINE = 3 , VTK_POLY_LINE = 4 ,
  VTK_TRIANGLE = 5 , VTK_TRIANGLE_STRIP = 6 , VTK_POLYGON = 7 , VTK_PIXEL = 8 ,
  VTK_QUAD = 9 , VTK_TETRA = 10 , VTK_VOXEL = 11 , VTK_HEXAHEDRON = 12 ,
  VTK_WEDGE = 13 , VTK_PYRAMID = 14 , VTK_QUADRATIC_EDGE = 21 , VTK_QUADRATIC_TRIANGLE = 22 ,
  VTK_QUADRATIC_QUAD = 23 , VTK_QUADRATIC_TETRA = 24 , VTK_QUADRATIC_HEXAHEDRON = 25 , VTK_LAGRANGE_CURVE = 68 ,
  VTK_LAGRANGE_TRIANGLE = 69 , VTK_LAGRANGE_QUADRILATERAL = 70 , VTK_LAGRANGE_TETRAHEDRON = 71 , VTK_LAGRANGE_HEXAHEDRON = 72 ,
  VTK_LAGRANGE_WEDGE = 73 , VTK_LAGRANGE_PYRAMID = 74
}
 
using size_type = unsigned int
 
using Attributes
 
using FieldData
 

Public Attributes

std::string header
 The Vtk Header, at most 256 characters, no new lines characters!
 
Format format = Format::ASCII
 The format of the file.
 
UnstructuredGrid unstructured_grid
 Describes the nodes + cells.
 
FieldData field_data
 
Attributes point_data
 
Attributes cell_data
 

Detailed Description

Representation of a VTK file (only relevant) features (advanced usage)

This class can be written to a *.vtk file through the method WriteToFile(). The VtkWriter uses this class internally, it is not intended for direct usage by the normal user but it can be useful if a special kind of VtkFile should be written.

Definition at line 31 of file vtk_writer.h.

Member Typedef Documentation

◆ Attributes

Initial value:
std::vector<boost::variant<
ScalarData<char>, ScalarData<unsigned char>, ScalarData<short>,
ScalarData<unsigned short>, ScalarData<int>, ScalarData<unsigned int>,
ScalarData<long>, ScalarData<unsigned long>, ScalarData<float>,
ScalarData<double>, VectorData<float>, VectorData<double>>>

Definition at line 119 of file vtk_writer.h.

◆ FieldData

Initial value:
std::vector<boost::variant<FieldDataArray<int>, FieldDataArray<float>,
FieldDataArray<double>>>

Definition at line 125 of file vtk_writer.h.

◆ size_type

using lf::io::VtkFile::size_type = unsigned int

Definition at line 33 of file vtk_writer.h.

Member Enumeration Documentation

◆ CellType

enum class lf::io::VtkFile::CellType
strong
Enumerator
VTK_VERTEX 
VTK_POLY_VERTEX 
VTK_LINE 
VTK_POLY_LINE 
VTK_TRIANGLE 
VTK_TRIANGLE_STRIP 
VTK_POLYGON 
VTK_PIXEL 
VTK_QUAD 
VTK_TETRA 
VTK_VOXEL 
VTK_HEXAHEDRON 
VTK_WEDGE 
VTK_PYRAMID 
VTK_QUADRATIC_EDGE 
VTK_QUADRATIC_TRIANGLE 
VTK_QUADRATIC_QUAD 
VTK_QUADRATIC_TETRA 
VTK_QUADRATIC_HEXAHEDRON 
VTK_LAGRANGE_CURVE 
VTK_LAGRANGE_TRIANGLE 
VTK_LAGRANGE_QUADRILATERAL 
VTK_LAGRANGE_TETRAHEDRON 
VTK_LAGRANGE_HEXAHEDRON 
VTK_LAGRANGE_WEDGE 
VTK_LAGRANGE_PYRAMID 

Definition at line 39 of file vtk_writer.h.

◆ Format

enum class lf::io::VtkFile::Format
strong

Nested types.

Enumerator
ASCII 
BINARY 

Definition at line 37 of file vtk_writer.h.

Member Data Documentation

◆ cell_data

Attributes lf::io::VtkFile::cell_data

◆ field_data

FieldData lf::io::VtkFile::field_data

Definition at line 140 of file vtk_writer.h.

Referenced by lf::io::VtkWriter::WriteFieldData().

◆ format

Format lf::io::VtkFile::format = Format::ASCII

The format of the file.

Definition at line 135 of file vtk_writer.h.

Referenced by lf::io::VtkWriter::setBinary(), and lf::io::WriteToFile().

◆ header

std::string lf::io::VtkFile::header

The Vtk Header, at most 256 characters, no new lines characters!

Definition at line 133 of file vtk_writer.h.

◆ point_data

Attributes lf::io::VtkFile::point_data

◆ unstructured_grid

UnstructuredGrid lf::io::VtkFile::unstructured_grid

Describes the nodes + cells.

Definition at line 138 of file vtk_writer.h.

Referenced by lf::io::VtkWriter::WritePointData().


The documentation for this class was generated from the following file: