Dune::AmiraMeshWriter< GridType, IndexSetType > Class Template Reference
[AmiraMesh]
#include <amirameshwriter.hh>
Detailed Description
template<class GridType, class IndexSetType>
class Dune::AmiraMeshWriter< GridType, IndexSetType >
Provides file writing facilities in the AmiraMesh format.
Public Member Functions | |
template<class GridType2, class IndexSetType2> | |
void | addGrid (const GridType2 &grid, const IndexSetType2 &indexSet, bool splitQuads=false) |
Add grid with a given index set. | |
template<class GridType2> | |
void | addLevelGrid (const GridType2 &grid, int level, bool splitQuads=false) |
Add level grid. | |
template<class GridType2> | |
void | addLeafGrid (const GridType2 &grid, bool splitQuads=false) |
Add leaf grid. | |
template<class GridType2, class DataContainer> | |
void | addCellData (const DataContainer &data, const GridType2 &grid) |
Add cell data. | |
template<class DataContainer> | |
void | addVertexData (const DataContainer &data, const IndexSetType &indexSet) |
Add vertex data. | |
void | write (const std::string &filename, bool ascii=false) const |
Write AmiraMesh object to disk. |
Member Function Documentation
template<class GridType, class IndexSetType>
template<class GridType2, class IndexSetType2>
void Dune::AmiraMeshWriter< GridType, IndexSetType >::addGrid | ( | const GridType2 & | grid, | |
const IndexSetType2 & | indexSet, | |||
bool | splitQuads = false | |||
) | [inline] |
Add grid with a given index set.
- Parameters:
-
grid Grid to be written indexSet Index set of the grid section to be written splitQuads Amira doesn't support 2d quad grids. If this is set any quadrilateral will be split in two triangles. If not, the file is not readable by standard Amira.
template<class GridType, class IndexSetType>
template<class GridType2>
void Dune::AmiraMeshWriter< GridType, IndexSetType >::addLevelGrid | ( | const GridType2 & | grid, | |
int | level, | |||
bool | splitQuads = false | |||
) | [inline] |
Add level grid.
- Parameters:
-
grid Grid to be written indexSet Level of the level grid that is to be written splitQuads Amira doesn't support 2d quad grids. If this is set any quadrilateral will be split in two triangles. If not, the file is not readable by standard Amira.
template<class GridType, class IndexSetType>
template<class GridType2>
void Dune::AmiraMeshWriter< GridType, IndexSetType >::addLeafGrid | ( | const GridType2 & | grid, | |
bool | splitQuads = false | |||
) | [inline] |
Add leaf grid.
- Parameters:
-
grid Grid to be written splitQuads Amira doesn't support 2d quad grids. If this is set any quadrilateral will be split in two triangles. If not, the file is not readable by standard Amira.
template<class GridType, class IndexSetType>
template<class DataContainer>
void Dune::AmiraMeshWriter< GridType, IndexSetType >::addVertexData | ( | const DataContainer & | data, | |
const IndexSetType & | indexSet | |||
) | [inline] |
template<class GridType, class IndexSetType>
void Dune::AmiraMeshWriter< GridType, IndexSetType >::write | ( | const std::string & | filename, | |
bool | ascii = false | |||
) | const [inline] |
Write AmiraMesh object to disk.
- Parameters:
-
filename Name of the file to write to ascii Set this if you want an ascii AmiraMesh file
The documentation for this class was generated from the following files:
- amirameshwriter.hh
- amirameshwriter.cc