|
dune-vtk 2.12
|
Loading...
Searching...
No Matches
vtkreader.hh
Go to the documentation of this file.
42 NO_SECTION = 0, VTK_FILE, UNSTRUCTURED_GRID, PIECE, POINT_DATA, PD_DATA_ARRAY, CELL_DATA, CD_DATA_ARRAY,
43 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:21
#define VTK_ASSERT(cond)
check if condition cond holds; otherwise, throw a VtkError.
Definition errors.hh:31
STL namespace.
Definition datacollector.hh:19
FormatTypes
Type used for representing the output format.
Definition types.hh:21
@ 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()
Implementation of DataCollector for cells, with continuous data.
Definition celltypedatacollector.hh:20
Definition filereader.hh:16
static void fillFactoryImpl(GridFactory< Grid > &, std::string const &, Args &&...)
Definition filereader.hh:71
typename GridCreator::GlobalCoordinate GlobalCoordinate
Type of global world coordinates.
Definition vtkreader.hh:68
GridFunction< Vtk::CellContext, Range > getCellData(std::string const &name) const
Definition vtkreader.hh:161
std::unique_ptr< Grid > createGrid() const
Definition vtkreader.hh:125
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:251
VtkReader(GridCreator &creator)
Constructor. Stores the references in a non-destroying shared_ptr.
Definition vtkreader.hh:92
FT FieldType
Type of the components of the data to extract from the file.
Definition vtkreader.hh:65
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:45
VtkReader(Args &&... args)
Constructor. Creates a new GridCreator with the passed factory.
Definition vtkreader.hh:87
GridFunction< Vtk::PointContext, Range > getPointData(std::string const &name) const
Definition vtkreader.hh:133
std::vector< DataArrayAttributes > getCellDataAttributes() const
Definition vtkreader.hh:175
GridCreator & gridCreator()
Obtains the creator of the reader.
Definition vtkreader.hh:118
typename Vtk::AssociatedGridFunction< GridCreator, Range, Context >::type GridFunction
Definition vtkreader.hh:75
void read(std::string const &filename, bool fillCreator=true)
Read the grid from file with filename into the GridCreator.
Definition vtkreader.impl.hh:22
GC GridCreator
Type of the associated grid creator.
Definition vtkreader.hh:62
std::vector< DataArrayAttributes > getPointDataAttributes() const
Definition vtkreader.hh:147
VtkReader(std::shared_ptr< GridCreator > creator)
Constructor. Stores the shared_ptr.
Definition vtkreader.hh:102
void fillGridCreator(bool insertPieces=true)
Definition vtkreader.impl.hh:686
std::vector< std::string > const & pieces() const
Return the filenames of parallel pieces.
Definition vtkreader.hh:210
VtkReader(GridCreator &&creator)
Constructor. Stores the references in a non-destroying shared_ptr.
Definition vtkreader.hh:97
Definition vtkreader.hh:49
unsigned int components
Definition vtkreader.hh:52
Definition vtkreader.hh:348
T end(T... args)
T find(T... args)
T size(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8