|
dune-vtk 2.12
|
Loading...
Searching...
No Matches
vtkreader.hh
Go to the documentation of this file.
40 NO_SECTION = 0, VTK_FILE, UNSTRUCTURED_GRID, PIECE, POINT_DATA, PD_DATA_ARRAY, CELL_DATA, CD_DATA_ARRAY,
41 POINTS, POINTS_DATA_ARRAY, CELLS, CELLS_DATA_ARRAY, APPENDED_DATA, XML_NAME, XML_NAME_ASSIGN, XML_VALUE
Macro for wrapping error checks and throwing exceptions.
#define VTK_ASSERT_MSG(cond, text)
check if condition cond holds; otherwise, throw a VtkError with a message.
Definition errors.hh:19
#define VTK_ASSERT(cond)
check if condition cond holds; otherwise, throw a VtkError.
Definition errors.hh:29
STL namespace.
Definition writer.hh:16
FormatTypes
Type used for representing the output format.
Definition types.hh:19
@ UNKNOWN
@ UNKNOWN
const char * name()
static type * create(const M &mat, bool verbose, bool reusevector)
int size() const
#define DUNE_THROW(E,...)
std::shared_ptr< T > stackobject_to_shared_ptr(T &t)
static Communication< MPICommunicator > getCommunication()
Definition filereader.hh:14
static void fillFactoryImpl(GridFactory< Grid > &, std::string const &, Args &&...)
Definition filereader.hh:69
typename GridCreator::GlobalCoordinate GlobalCoordinate
Type of global world coordinates.
Definition vtkreader.hh:66
GridFunction< Vtk::CellContext, Range > getCellData(std::string const &name) const
Definition vtkreader.hh:159
std::unique_ptr< Grid > createGrid() const
Definition vtkreader.hh:123
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_.
Definition vtkreader.impl.hh:249
VtkReader(GridCreator &creator)
Constructor. Stores the references in a non-destroying shared_ptr.
Definition vtkreader.hh:90
FT FieldType
Type of the components of the data to extract from the file.
Definition vtkreader.hh:63
void readSerialFileFromStream(std::ifstream &input, bool create=true)
Read the grid from an input stream, referring to a .vtu file, into the GridFactory factory_.
Definition vtkreader.impl.hh:43
VtkReader(Args &&... args)
Constructor. Creates a new GridCreator with the passed factory.
Definition vtkreader.hh:85
GridFunction< Vtk::PointContext, Range > getPointData(std::string const &name) const
Definition vtkreader.hh:131
std::vector< DataArrayAttributes > getCellDataAttributes() const
Definition vtkreader.hh:173
GridCreator & gridCreator()
Obtains the creator of the reader.
Definition vtkreader.hh:116
typename Vtk::AssociatedGridFunction< GridCreator, Range, Context >::type GridFunction
Definition vtkreader.hh:73
void read(std::string const &filename, bool fillCreator=true)
Read the grid from file with filename into the GridCreator.
Definition vtkreader.impl.hh:20
GC GridCreator
Type of the associated grid creator.
Definition vtkreader.hh:60
std::vector< DataArrayAttributes > getPointDataAttributes() const
Definition vtkreader.hh:145
VtkReader(std::shared_ptr< GridCreator > creator)
Constructor. Stores the shared_ptr.
Definition vtkreader.hh:100
void fillGridCreator(bool insertPieces=true)
Definition vtkreader.impl.hh:684
std::vector< std::string > const & pieces() const
Return the filenames of parallel pieces.
Definition vtkreader.hh:208
VtkReader(GridCreator &&creator)
Constructor. Stores the references in a non-destroying shared_ptr.
Definition vtkreader.hh:95
Definition vtkreader.hh:47
unsigned int components
Definition vtkreader.hh:50
Definition vtkreader.hh:346
T end(T... args)
T find(T... args)
T push_back(T... args)
T reserve(T... args)
T size(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8