#include <tecplotwriter.h>
Public Member Functions | |
TecplotOrderedWriter () | |
Default constructor. More... | |
TecplotOrderedWriter (string rFilename) | |
Constructor. More... | |
virtual | ~TecplotOrderedWriter () |
Destructor. More... | |
bool | writeFile (string rTitle, std::vector< string > rVariableNames) |
Write all information to file. More... | |
bool | addOrderedPartition (string rTitle, indexed_points *rpPoints, int rPartitionVariable) |
Add ordered partition of points to the file write queue Points are written after WriteFile call Partitions must have the same number of variables. More... | |
Public Member Functions inherited from TecplotWriter | |
TecplotWriter () | |
Default constructor. More... | |
TecplotWriter (string rFilename) | |
Constructor. More... | |
~TecplotWriter () | |
Destructor. More... | |
void | setOutputFilename (string rFilename) |
Set filename. More... | |
string | getOutputFilename () |
Get filename. More... | |
bool | init () |
Initialize writer. More... | |
Private Member Functions | |
bool | writePartition (int rPartitionNum) |
Write partition to file. More... | |
bool | writePoints (int rPartitionNum) |
Write the points of the partition specified to file. More... | |
Private Attributes | |
std::vector< indexed_points * > | mPartitionPoints |
std::vector< string > | mPartitionTitles |
std::vector< int > | mPartitionVariable |
Static Private Attributes | |
static const int | POINT_WIDTH = 5 |
Number of points per line. More... | |
Additional Inherited Members | |
Protected Attributes inherited from TecplotWriter | |
string | mFilename |
ofstream | mFileHandle |
Definition at line 83 of file tecplotwriter.h.
TecplotOrderedWriter | ( | string | rFilename | ) |
|
virtual |
bool addOrderedPartition | ( | string | rTitle, |
indexed_points * | rpPoints, | ||
int | rPartitionVariable | ||
) |
Add ordered partition of points to the file write queue Points are written after WriteFile call Partitions must have the same number of variables.
rTitle | Title of partition |
rpPoints | Datapoints to write to file |
rPartitionVariable | Variable number to write (after the independent variables). If -1, all variables will be written |
Definition at line 127 of file tecplotwriter.cpp.
References points::get_num_indep_vars(), points::get_num_vars(), mPartitionPoints, mPartitionTitles, and mPartitionVariable.
bool writeFile | ( | string | rTitle, |
std::vector< string > | rVariableNames | ||
) |
Write all information to file.
rTitle | Dataset Title |
rVariableNames | Variable names for header |
Definition at line 94 of file tecplotwriter.cpp.
References TecplotWriter::mFileHandle, mPartitionPoints, and writePartition().
|
private |
Write partition to file.
rPartitionPoints | Partition datapoints |
Definition at line 165 of file tecplotwriter.cpp.
References indexed_points::get_dim(), i, j, k, TecplotWriter::mFileHandle, mPartitionPoints, mPartitionTitles, and writePoints().
Referenced by writeFile().
|
private |
Write the points of the partition specified to file.
Points are written in block format.
rPartitionNum | Index of the parition's points in local storage |
Definition at line 207 of file tecplotwriter.cpp.
References indexed_points::get_dim(), points::get_num_indep_vars(), points::get_num_points(), points::get_num_vars(), points::get_point(), TecplotWriter::mFileHandle, mPartitionPoints, mPartitionVariable, POINT_WIDTH, pnt::vals, x, y, and z.
Referenced by writePartition().
|
private |
Definition at line 139 of file tecplotwriter.h.
Referenced by addOrderedPartition(), writeFile(), writePartition(), and writePoints().
|
private |
Definition at line 140 of file tecplotwriter.h.
Referenced by addOrderedPartition(), and writePartition().
|
private |
Definition at line 141 of file tecplotwriter.h.
Referenced by addOrderedPartition(), and writePoints().
|
staticprivate |
Number of points per line.
Definition at line 144 of file tecplotwriter.h.
Referenced by writePoints().