#include <AMVisualExporter.h>
Public Member Functions | |
AMVisualExporter (const std::string &file_name) | |
~AMVisualExporter (void) | |
bool | Init () |
void | Free () |
void | WriteVerticesCount (const int noVert) |
void | WriteVertex (double coords[]) |
void | WriteElementCount (const int noElems) |
void | WriteElement (int vertices[], int neighbours[]) |
Protected Attributes | |
std::string | _file_name |
std::fstream | _file |
AMVisualExporter::AMVisualExporter | ( | const std::string & | file_name | ) |
AMVisualExporter::~AMVisualExporter | ( | void | ) |
void AMVisualExporter::Free | ( | ) | [virtual] |
Frees all resources allocated by class during mesh export.
Implements MeshWrite::IMeshWriter.
bool AMVisualExporter::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.
void AMVisualExporter::WriteElement | ( | int | vertices[], | |
int | neighbours[] | |||
) |
/param vertices array of indexes of vertices making this element /param neighbours array of indexes of neighbour elements
void AMVisualExporter::WriteElementCount | ( | const int | noElems | ) | [virtual] |
/param noElems Number of all elements in mesh.
Implements MeshWrite::IMeshWriter.
void AMVisualExporter::WriteVertex | ( | double | coords[] | ) |
/param coords array of vertex coordinates
void AMVisualExporter::WriteVerticesCount | ( | const int | noVert | ) | [virtual] |
/param noVert Number of all vertices (global) in mesh.
Implements MeshWrite::IMeshWriter.
std::fstream AMVisualExporter::_file [protected] |
std::string AMVisualExporter::_file_name [protected] |