Overture
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
Overture.v25.d
include
FileOutput.h
Go to the documentation of this file.
1
#ifndef FILE_OUTPUT_H
2
#define FILE_OUTPUT_H
3
4
#include "
Overture.h
"
5
#include "
display.h
"
6
7
// This class is used for outputing Overture data in ascii format to a file.
8
9
class
GenericGraphicsInterface
;
// forward declaration
10
11
class
FileOutput
12
{
13
public
:
14
15
FileOutput
();
16
~FileOutput
();
17
18
aString
getFileName
(){
return
outputFileName
;}
19
int
save
(
realGridCollectionFunction
& u,
const
aString
& label=
nullString
);
20
int
update
(
realGridCollectionFunction
& u,
GenericGraphicsInterface
& ps );
21
22
enum
GeometryArraysEnum
23
{
24
mask
=0,
25
vertex
,
26
numberOfGeometryArrays
27
};
28
29
30
protected
:
31
32
int
debug
;
33
aString
outputFileName
;
34
aString
format
;
35
bool
setValueAtUnusedPoints
;
36
real
valueForUnusedPoints
;
37
int
numberOfGhostLines
;
38
bool
addLabels
;
39
40
FILE *
outputFile
;
41
DisplayParameters
dp
;
42
43
IntegerArray
saveComponent
;
44
IntegerArray
saveGeometry
;
45
46
IntegerArray
saveGrids
;
// which grids to save.
47
IntegerArray
saveGridFace
;
// saveGridLines(n,[0,1,2])=[grid,dir1,dir1Value] : save face dir1=dir1Value
48
49
int
saveData
(
realMappedGridFunction
& u,
int
grid,
int
side =-1 ,
int
axis = -1 );
50
int
updateParameterArrays
(
realGridCollectionFunction
& u );
51
};
52
53
// here is the old way
54
55
int
56
fileOutput
(
GenericGraphicsInterface
&gi,
realGridCollectionFunction
& u );
57
58
#endif
Generated on Fri Jan 4 2013 10:17:51 for Overture by
1.8.3