dune-grid
2.4.1-rc2
|
write a GridView to a DGF file More...
#include <dune/grid/io/file/dgfparser/dgfwriter.hh>
Public Types | |
typedef GV | GridView |
type of grid view More... | |
typedef GridView::Grid | Grid |
type of underlying hierarchical grid More... | |
Public Member Functions | |
DGFWriter (const GridView &gridView) | |
constructor More... | |
void | write (std::ostream &gridout, const std::vector< Index > &newElemOrder, const std::stringstream &addParams=std::stringstream()) const |
write the GridView into a std::ostream More... | |
void | write (std::ostream &gridout) const |
write the GridView into a std::ostream More... | |
void | write (std::ostream &gridout, const std::stringstream &addParams) const |
write the GridView into a std::ostream More... | |
void | write (const std::string &fileName) const |
write the GridView to a file More... | |
Static Public Attributes | |
static const int | dimGrid = GridView::dimension |
dimension of the grid More... | |
Protected Member Functions | |
void | writeAllElements (const std::vector< ElementSeed > &elementSeeds, const IndexSet &indexSet, const GeometryType &elementType, const std::vector< Index > &vertexIndex, std::ostream &gridout) const |
void | writeElement (const Element &element, const IndexSet &indexSet, const GeometryType &elementType, const std::vector< Index > &vertexIndex, std::ostream &gridout) const |
Protected Attributes | |
GridView | gridView_ |
write a GridView to a DGF file
The DGFWriter allows create a DGF file from a given GridView. It allows for the easy creation of file format converters.
GV | GridView to write in DGF format |
typedef GridView::Grid Dune::DGFWriter< GV >::Grid |
type of underlying hierarchical grid
typedef GV Dune::DGFWriter< GV >::GridView |
type of grid view
|
inline |
constructor
[in] | gridView | grid view to operate on |
References Dune::DGFWriter< GV >::write().
|
inline |
write the GridView into a std::ostream
gridout | std::ostream to write the grid to |
newElemOrder | vector providing a new ordering for the elements in the given GridView |
addParams | additional data to write to dgf file, such as projections etc. (defaults to an emoty data stream) |
References Dune::cube, Dune::DGFWriter< GV >::dimGrid, Dune::DGFWriter< GV >::gridView_, Dune::simplex, and Dune::DGFWriter< GV >::writeAllElements().
Referenced by Dune::DGFWriter< GV >::DGFWriter(), main(), Dune::DGFWriter< GV >::write(), and Dune::DGFWriter< GV >::writeElement().
|
inline |
write the GridView into a std::ostream
gridout | std::ostream to write the grid to |
References Dune::DGFWriter< GV >::write().
|
inline |
write the GridView into a std::ostream
gridout | std::ostream to write the grid to |
addParams | additional data to write to dgf file, such as projections etc. (defaults to an emoty data stream) |
References Dune::DGFWriter< GV >::write().
|
inline |
write the GridView to a file
[in] | fileName | name of the write to write the grid to |
References Dune::DGFWriter< GV >::write().
|
inlineprotected |
References Dune::DGFWriter< GV >::writeElement().
Referenced by Dune::DGFWriter< GV >::write().
|
inlineprotected |
References Dune::DGFWriter< GV >::write().
Referenced by Dune::DGFWriter< GV >::writeAllElements().
|
static |
dimension of the grid
Referenced by Dune::DGFWriter< GV >::write().
|
protected |
Referenced by Dune::DGFWriter< GV >::write().