|
dune-vtk 2.12
|
#include <dune/vtk/vtkreader.hh>

Public Types | |
| using | Grid = G |
| Type of the grid to construct. | |
| using | GridCreator = GC |
| Type of the associated grid creator. | |
| using | FieldType = FT |
| Type of the components of the data to extract from the file. | |
| using | GlobalCoordinate = typename GridCreator::GlobalCoordinate |
| Type of global world coordinates. | |
| template<class Context , class Range > | |
| using | GridFunction = typename Vtk::AssociatedGridFunction< GridCreator, Range, Context >::type |
Public Member Functions | |
| void | read (std::string const &filename, bool fillCreator=true) |
Read the grid from file with filename into the GridCreator. | |
| GridCreator & | gridCreator () |
| Obtains the creator of the reader. | |
| std::unique_ptr< Grid > | createGrid () const |
| template<class Range = DynamicVector<FieldType>> | |
| GridFunction< Vtk::PointContext, Range > | getPointData (std::string const &name) const |
| std::vector< DataArrayAttributes > | getPointDataAttributes () const |
| template<class Range = DynamicVector<FieldType>> | |
| GridFunction< Vtk::CellContext, Range > | getCellData (std::string const &name) const |
| std::vector< DataArrayAttributes > | getCellDataAttributes () const |
| std::vector< std::string > const & | pieces () const |
| Return the filenames of parallel pieces. | |
| template<class FloatType , class HeaderType > | |
| void | readCellDataAppended (MetaType< FloatType >, MetaType< HeaderType >, std::ifstream &input, std::string id) |
| template<class FloatType , class HeaderType > | |
| void | readPointDataAppended (MetaType< FloatType >, MetaType< HeaderType >, std::ifstream &input, std::string id) |
| template<class FloatType , class HeaderType > | |
| void | readPointsAppended (MetaType< FloatType >, MetaType< HeaderType >, std::ifstream &input) |
| template<class HeaderType > | |
| void | readCellsAppended (MetaType< HeaderType >, std::ifstream &input) |
| void | readSerialFileFromStream (std::ifstream &input, bool create=true) |
| Read the grid from an input stream, referring to a .vtu file, into the GridFactory factory_. | |
| void | readParallelFileFromStream (std::ifstream &input, int rank, int size, bool create=true) |
| Read the grid from and input stream, referring to a .pvtu file, into the GridFactory factory_. | |
| void | fillGridCreator (bool insertPieces=true) |
Static Public Member Functions | |
| template<class... Args> | |
| static std::unique_ptr< Grid > | createGridFromFile (std::string const &filename, Args &&... args) |
| template<class... Args> | |
| static void | fillFactory (GridFactory< Grid > &factory, std::string const &filename, Args &&... args) |
Static Protected Member Functions | |
| template<class... Args> | |
| static std::unique_ptr< Grid > | createGridFromFileImpl (std::string const &filename, Args &&... args) |
| template<class... Args> | |
| static void | fillFactoryImpl (GridFactory< Grid > &, std::string const &, Args &&...) |
Member Typedef Documentation
◆ FieldType
|
inherited |
Type of the components of the data to extract from the file.
◆ GlobalCoordinate
|
inherited |
Type of global world coordinates.
◆ Grid
|
inherited |
Type of the grid to construct.
◆ GridCreator
|
inherited |
Type of the associated grid creator.
◆ GridFunction
|
inherited |
Member Function Documentation
◆ createGrid()
|
inlineinherited |
Construct the actual grid using the GridCreator [[expects: read_ == true]]
◆ createGridFromFile()
|
inlinestaticinherited |
Reads the grid from a file with filename and returns a unique_ptr to the created grid. Redirects to concrete implementation of derived class.
◆ createGridFromFileImpl()
|
inlinestaticprotectedinherited |
◆ fillFactory()
|
inlinestaticinherited |
Reads the grid from a file with filename into a grid-factory. Redirects to concrete implementation of derived class.
◆ fillFactoryImpl()
|
inlinestaticprotectedinherited |
◆ fillGridCreator()
|
inherited |
Insert all internal data to the GridCreator NOTE: requires an aforegoing call to read()
◆ getCellData()
|
inlineinherited |
Construct a grid-function representing the cell-data with the given name [[expects: read_ == true]]
◆ getCellDataAttributes()
|
inlineinherited |
Return a vector of DataArrayAttributes for all CELL_DATA blocks [[expects: read_ == true]]
◆ getPointData()
|
inlineinherited |
Construct a grid-function representing the point-data with the given name [[expects: read_ == true]]
◆ getPointDataAttributes()
|
inlineinherited |
Return a vector of DataArrayAttributes for all POINT_DATA blocks [[expects: read_ == true]]
◆ gridCreator()
|
inlineinherited |
Obtains the creator of the reader.
◆ pieces()
|
inlineinherited |
Return the filenames of parallel pieces.
◆ read()
|
inherited |
Read the grid from file with filename into the GridCreator.
This function fills internal data containers representing the information from the passed file.
- Parameters
-
filename The name of the input file fillCreator If false, only fill internal data structures, iftrue, pass the internal data to the GridCreator. [true]
◆ readCellDataAppended()
|
inherited |
◆ readCellsAppended()
|
inherited |
◆ readParallelFileFromStream()
|
inherited |
Read the grid from and input stream, referring to a .pvtu file, into the GridFactory factory_.
- Parameters
-
input A STL input stream to read the VTK file from. create If false, only fill internal data structures, iftrue, also create the grid. [true]
◆ readPointDataAppended()
|
inherited |
◆ readPointsAppended()
|
inherited |
◆ readSerialFileFromStream()
|
inherited |
Read the grid from an input stream, referring to a .vtu file, into the GridFactory factory_.
Advanced read methods
- Parameters
-
input A STL input stream to read the VTK file from. create If false, only fill internal data structures, iftrue, also create the grid. [true]
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8