17 class TraversalVTKPlotter;
Observer which pipes the automaton transitions into a VTK file.
static tarch::logging::Log _log
const std::string _filename
virtual ~TraversalVTKPlotter()
virtual void loadCell(const GridTraversalEvent &event) override
virtual std::vector< GridControlEvent > getGridControlEvents() const override
Obviously empty for this particular observer.
TraversalVTKPlotter(const std::string &filename, int treeId=-1)
You have to invoke startNewSnapshot() if you wanna have a pvd file immediately after you've created t...
tarch::plotter::griddata::unstructured::UnstructuredGridWriter::CellDataWriter * _spacetreeIdWriter
tarch::plotter::griddata::unstructured::UnstructuredGridWriter::CellDataWriter * _coreWriter
virtual TraversalObserver * clone(int spacetreeId) override
virtual void endTraversal(const tarch::la::Vector< Dimensions, double > &x, const tarch::la::Vector< Dimensions, double > &h) override
static tarch::mpi::BooleanSemaphore _sempahore
tarch::plotter::griddata::unstructured::vtk::VTUTextFileWriter * _writer
virtual void leaveCell(const GridTraversalEvent &event) override
tarch::plotter::griddata::unstructured::UnstructuredGridWriter::CellWriter * _cellWriter
tarch::plotter::griddata::unstructured::UnstructuredGridWriter::VertexWriter * _vertexWriter
virtual void beginTraversal(const tarch::la::Vector< Dimensions, double > &x, const tarch::la::Vector< Dimensions, double > &h) override
Begin the traversal.
virtual void storeCell(const GridTraversalEvent &event) override
virtual void enterCell(const GridTraversalEvent &event) override
Event is invoked per cell.
void plotCell(const GridTraversalEvent &event)
Does the actual plotting, i.e.
Boolean semaphore across MPI ranks.
A writer for data on elements.
This is the vertex writer you have to create to plot the vertices.