106 mFileHandle <<
"TITLE = \"" << rTitle <<
"\"" << endl;
111 for(
int var_num = 0; var_num < rVariableNames.size(); var_num++){
112 mFileHandle <<
"\"" << rVariableNames[var_num] <<
"\"" << endl;
116 for(
int partition_num = 0; partition_num <
mPartitionPoints.size(); partition_num++){
135 int curr_num_vars = -1;
136 if(rPartitionVariable == -1)
143 int prev_num_vars = -1;
150 if(curr_num_vars != prev_num_vars)
178 mFileHandle <<
"STRANDID=0, SOLUTIONTIME=0" << endl;
180 if(curr_points->
get_dim().size() < 3)
196 mFileHandle <<
"DT=(SINGLE SINGLE SINGLE SINGLE )" << endl;
217 int values_printed = 0;
220 for(
int var_num = 0; var_num < vars; var_num++){
227 for(
int z = 0;
z < curr_points->
get_dim()[2];
z++){
228 for(
int y = 0;
y < curr_points->
get_dim()[1];
y++){
229 for(
int x = 0;
x < curr_points->
get_dim()[0];
x++){
238 int index =
x * curr_points->
get_dim()[1]
~TecplotWriter()
Destructor.
void int int REAL REAL * y
bool writePoints(int rPartitionNum)
Write the points of the partition specified to file.
std::vector< indexed_points * > mPartitionPoints
virtual std::vector< int > get_dim()
bool writeFile(string rTitle, std::vector< string > rVariableNames)
Write all information to file.
void int int int REAL REAL REAL * z
TecplotOrderedWriter()
Default constructor.
std::vector< int > mPartitionVariable
virtual ~TecplotOrderedWriter()
Destructor.
TecplotWriter()
Default constructor.
void setOutputFilename(string rFilename)
Set filename.
string getOutputFilename()
Get filename.
bool init()
Initialize writer.
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 Parti...
std::vector< string > mPartitionTitles
bool writePartition(int rPartitionNum)
Write partition to file.
static const int POINT_WIDTH
Number of points per line.