#include <BinaryFileWriter.h>
Public Member Functions | |
BinaryFileWriter () | |
BinaryFileWriter (const std::string &fileName) | |
~BinaryFileWriter () | |
bool | Init () |
bool | Init (const std::string &fileName) |
void | Free () |
bool | doWrite (const hHybridMesh *) |
void | WriteVerticesCount (const int noVerts) |
void | WriteVertex (const double coords[], const uTind type) |
virtual void | WriteEdgesCount (const int noEdges) |
void | WriteEdge (const uTind verts[], const uTind type) |
void | WriteFacesCount (const int noFaces) |
void | WriteFace (const uTind edges[], const uTind type, const int8_t bc, const uTind neigh[]) |
void | WriteElementCount (const int noElems) |
void | WriteElement (const uTind faces[], const uTind neighbours[], const uTind type, const uTind father, const int8_t ref, const int8_t material) |
Friends | |
template<typename T > | |
BinaryFileWriter & | operator<< (BinaryFileWriter &w, const T &obj) |
template<typename T > | |
BinaryFileWriter & | operator<< (BinaryFileWriter &w, const T *obj) |
MeshWrite::BinaryFileWriter::BinaryFileWriter | ( | ) |
MeshWrite::BinaryFileWriter::BinaryFileWriter | ( | const std::string & | fileName | ) |
MeshWrite::BinaryFileWriter::~BinaryFileWriter | ( | ) |
bool MeshWrite::BinaryFileWriter::doWrite | ( | const hHybridMesh * | m | ) | [virtual] |
Implements MeshWrite::IMeshWriter.
void MeshWrite::BinaryFileWriter::Free | ( | ) | [virtual] |
Frees all resources allocated by class during mesh export.
Implements MeshWrite::IMeshWriter.
bool MeshWrite::BinaryFileWriter::Init | ( | const std::string & | fileName | ) | [virtual] |
Implements MeshWrite::IMeshWriter.
bool MeshWrite::BinaryFileWriter::Init | ( | ) | [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.
Implements MeshWrite::IMeshWriter.
/param coords array of vertex coordinates
Implements MeshWrite::IMeshWriter.
void MeshWrite::BinaryFileWriter::WriteEdgesCount | ( | const int | noEdges | ) | [virtual] |
/param noVert Number of all vertices (global) in mesh.
Implements MeshWrite::IMeshWriter.
void MeshWrite::BinaryFileWriter::WriteElement | ( | const uTind | faces[], | |
const uTind | neighbours[], | |||
const uTind | type, | |||
const uTind | father, | |||
const int8_t | ref, | |||
const int8_t | material | |||
) | [virtual] |
/param vertices array of indexes of vertices making this element /param neighbours array of indexes of neighbour elements
Implements MeshWrite::IMeshWriter.
void MeshWrite::BinaryFileWriter::WriteElementCount | ( | const int | noElems | ) | [virtual] |
/param noElems Number of all elements in mesh.
Implements MeshWrite::IMeshWriter.
void MeshWrite::BinaryFileWriter::WriteFace | ( | const uTind | edges[], | |
const uTind | type, | |||
const int8_t | bc, | |||
const uTind | neigh[] | |||
) | [virtual] |
/param coords array of vertex coordinates
Implements MeshWrite::IMeshWriter.
void MeshWrite::BinaryFileWriter::WriteFacesCount | ( | const int | noFaces | ) | [virtual] |
/param noVert Number of all vertices (global) in mesh.
Implements MeshWrite::IMeshWriter.
/param coords array of vertex coordinates
Implements MeshWrite::IMeshWriter.
void MeshWrite::BinaryFileWriter::WriteVerticesCount | ( | const int | noVerts | ) | [virtual] |
/param noVert Number of all vertices (global) in mesh.
Implements MeshWrite::IMeshWriter.
BinaryFileWriter& operator<< | ( | BinaryFileWriter & | w, | |
const T * | obj | |||
) | [friend] |
BinaryFileWriter& operator<< | ( | BinaryFileWriter & | w, | |
const T & | obj | |||
) | [friend] |