12 namespace unstructured {
56 virtual void plotCell(
int index,
double value ) = 0;
59 virtual void plotCell(
int index,
double* values,
int numberOfValues ) = 0;
92 virtual void plotVertex(
int index,
double* values,
int numberOfValues ) = 0;
A writer for data on elements.
virtual void plotCell(int index, const tarch::la::Vector< 3, double > &value)=0
virtual ~CellDataWriter()
virtual void plotCell(int index, const tarch::la::Vector< 2, double > &value)=0
virtual void plotCell(int index, double value)=0
Write data for one cell.
virtual void assignRemainingCellsDefaultValues()=0
virtual void close()=0
If you close your writer, each cell/vertex has to be assigned a value, i.e.
virtual void plotCell(int index, double *values, int numberOfValues)=0
virtual int plotLine(int vertexIndex[2])=0
virtual int plotTriangle(int vertexIndex[3])=0
virtual int plotQuadrangle(int vertexIndex[4])=0
virtual int plotHexahedron(int vertexIndex[8])=0
virtual int plotPoint(int vertexIndex)=0
A writer for scalar data on points (vertices).
virtual void assignRemainingVerticesDefaultValues()=0
virtual ~VertexDataWriter()
virtual void plotVertex(int index, double *values, int numberOfValues)=0
virtual void plotVertex(int index, double value)=0
Write data for one cell.
virtual void plotVertex(int index, const tarch::la::Vector< 3, double > &value)=0
virtual void plotVertex(int index, const tarch::la::Vector< 2, double > &value)=0
This is the vertex writer you have to create to plot the vertices.
virtual int plotVertex(const tarch::la::Vector< 2, double > &position)=0
virtual int plotVertex(const tarch::la::Vector< 3, double > &position)=0
virtual VertexDataWriter * createVertexDataWriter(const std::string &identifier, int recordsPerVertex)=0
Caller has to destroy this instance manually.
virtual VertexWriter * createVertexWriter()=0
Caller has to destroy this instance manually.
virtual bool writeToFile()=0
virtual ~UnstructuredGridWriter()=default
virtual CellDataWriter * createCellDataWriter(const std::string &identifier, int recordsPerCell)=0
Caller has to destroy this instance manually.
virtual CellWriter * createCellWriter()=0
Caller has to destroy this instance manually.
virtual void clear()=0
Clear the writer, i.e.
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.