#include <IMeshWriter.h>
Public Member Functions | |
IMeshWriter (void) | |
virtual | ~IMeshWriter (void) |
virtual bool | doWrite (const hHybridMesh *mesh)=0 |
virtual bool | Init ()=0 |
virtual bool | Init (const std::string &name)=0 |
virtual void | Free ()=0 |
virtual void | WriteVerticesCount (const int noVerts)=0 |
virtual void | WriteVertex (const double coords[], const uTind type)=0 |
virtual void | WriteEdgesCount (const int noEdges)=0 |
virtual void | WriteEdge (const uTind verts[], const uTind type)=0 |
virtual void | WriteFacesCount (const int noFaces)=0 |
virtual void | WriteFace (const uTind edges[], const uTind type, const int8_t bc, const uTind neigh[])=0 |
virtual void | WriteElementCount (const int noElems)=0 |
virtual void | WriteElement (const uTind faces[], const uTind neighbours[], const uTind type, const uTind father, const int8_t ref, const int8_t material)=0 |
Public Attributes | |
char * | writeSequence |
Static Public Attributes | |
static const char | V_COUNT = 'v' |
static const char | VERTICES = 'V' |
static const char | E_COUNT = 'e' |
static const char | EDGES = 'E' |
static const char | F_COUNT = 'f' |
static const char | FACES = 'F' |
static const char | EL_COUNT = 'l' |
static const char | ELEMENTS = 'L' |
static const char | AUX = 'a' |
static const char | END = 0 |
MeshWrite::IMeshWriter::IMeshWriter | ( | void | ) | [inline] |
virtual MeshWrite::IMeshWriter::~IMeshWriter | ( | void | ) | [inline, virtual] |
virtual bool MeshWrite::IMeshWriter::doWrite | ( | const hHybridMesh * | mesh | ) | [pure virtual] |
Implemented in MeshWrite::BinaryFileWriter, MeshWrite::DmpFileExporter, MeshWrite::KazFileExporter, MeshWrite::MeshFileWriter, and MeshWrite::MileninExporter.
virtual void MeshWrite::IMeshWriter::Free | ( | ) | [pure virtual] |
Frees all resources allocated by class during mesh export.
Implemented in AMVisualExporter, MeshWrite::BinaryFileWriter, MeshWrite::DmpFileExporter, HDF5Exporter, MeshWrite::KazFileExporter, MeshWrite::MeshFileWriter, and MeshWrite::MileninExporter.
virtual bool MeshWrite::IMeshWriter::Init | ( | const std::string & | name | ) | [pure virtual] |
virtual bool MeshWrite::IMeshWriter::Init | ( | ) | [pure virtual] |
Initializes exporter. After this function call exporter should be ready for exporting the mesh. /return true if exporter initializes correctly, otherwise false. If this function doesn't succeeded exporting process is gently stopped and error is thrown.
Implemented in AMVisualExporter, MeshWrite::BinaryFileWriter, MeshWrite::DmpFileExporter, HDF5Exporter, MeshWrite::KazFileExporter, MeshWrite::MeshFileWriter, and MeshWrite::MileninExporter.
virtual void MeshWrite::IMeshWriter::WriteEdge | ( | const uTind | verts[], | |
const uTind | type | |||
) | [pure virtual] |
/param coords array of vertex coordinates
Implemented in MeshWrite::BinaryFileWriter, and HDF5Exporter.
virtual void MeshWrite::IMeshWriter::WriteEdgesCount | ( | const int | noEdges | ) | [pure virtual] |
/param noVert Number of all vertices (global) in mesh.
Implemented in MeshWrite::BinaryFileWriter, MeshWrite::DmpFileExporter, HDF5Exporter, MeshWrite::KazFileExporter, and MeshWrite::MileninExporter.
virtual void MeshWrite::IMeshWriter::WriteElement | ( | const uTind | faces[], | |
const uTind | neighbours[], | |||
const uTind | type, | |||
const uTind | father, | |||
const int8_t | ref, | |||
const int8_t | material | |||
) | [pure virtual] |
/param vertices array of indexes of vertices making this element /param neighbours array of indexes of neighbour elements
Implemented in MeshWrite::BinaryFileWriter, and HDF5Exporter.
virtual void MeshWrite::IMeshWriter::WriteElementCount | ( | const int | noElems | ) | [pure virtual] |
/param noElems Number of all elements in mesh.
Implemented in AMVisualExporter, MeshWrite::BinaryFileWriter, MeshWrite::DmpFileExporter, HDF5Exporter, MeshWrite::KazFileExporter, and MeshWrite::MileninExporter.
virtual void MeshWrite::IMeshWriter::WriteFace | ( | const uTind | edges[], | |
const uTind | type, | |||
const int8_t | bc, | |||
const uTind | neigh[] | |||
) | [pure virtual] |
/param coords array of vertex coordinates
Implemented in MeshWrite::BinaryFileWriter, and HDF5Exporter.
virtual void MeshWrite::IMeshWriter::WriteFacesCount | ( | const int | noFaces | ) | [pure virtual] |
/param noVert Number of all vertices (global) in mesh.
Implemented in MeshWrite::BinaryFileWriter, MeshWrite::DmpFileExporter, HDF5Exporter, MeshWrite::KazFileExporter, and MeshWrite::MileninExporter.
virtual void MeshWrite::IMeshWriter::WriteVertex | ( | const double | coords[], | |
const uTind | type | |||
) | [pure virtual] |
/param coords array of vertex coordinates
Implemented in MeshWrite::BinaryFileWriter, MeshWrite::DmpFileExporter, HDF5Exporter, MeshWrite::KazFileExporter, and MeshWrite::MileninExporter.
virtual void MeshWrite::IMeshWriter::WriteVerticesCount | ( | const int | noVerts | ) | [pure virtual] |
/param noVert Number of all vertices (global) in mesh.
Implemented in AMVisualExporter, MeshWrite::BinaryFileWriter, MeshWrite::DmpFileExporter, HDF5Exporter, MeshWrite::KazFileExporter, and MeshWrite::MileninExporter.
const char MeshWrite::IMeshWriter::AUX = 'a' [static] |
const char MeshWrite::IMeshWriter::E_COUNT = 'e' [static] |
const char MeshWrite::IMeshWriter::EDGES = 'E' [static] |
const char MeshWrite::IMeshWriter::EL_COUNT = 'l' [static] |
const char MeshWrite::IMeshWriter::ELEMENTS = 'L' [static] |
const char MeshWrite::IMeshWriter::END = 0 [static] |
const char MeshWrite::IMeshWriter::F_COUNT = 'f' [static] |
const char MeshWrite::IMeshWriter::FACES = 'F' [static] |
const char MeshWrite::IMeshWriter::V_COUNT = 'v' [static] |
const char MeshWrite::IMeshWriter::VERTICES = 'V' [static] |
In writeSequence is stored sequendce of actions used to correctly write output.