Blame view

fileout.h 1.25 KB
3f56f1f9   dmayerich   initial commit
1
2
3
4
5
6
7
8
9
10
11
  #ifndef FILE_OUTPUT_H

  #define FILE_OUTPUT_H

  

  #include <string>

  //#include "defaults.h"

  #include "dataTypes.h"

  

  #include "colormap.h"

  #include "fieldslice.h"

  #include "nearfield.h"
  #include "microscope.h"

d6f53e68   dmayerich   rts organization
12
  #include "rts/cuda/error.h"

3f56f1f9   dmayerich   initial commit
13
14
15
16
17
18
19
20
  

  struct fileoutStruct{

  

  	//output file names

  	std::string nearFile;		//near field filename

  	std::string farFile;		//far field filename

  	std::string intFile;		//detector intensity filename
  	std::string absFile;        //detector absorbance filename
7d43100a   dmayerich   allow appending t...
21
22
23
  	std::string transFile;      //detector transmission filename
  
  	bool append;                //append simulation results to existing binary files

3f56f1f9   dmayerich   initial commit
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  

  	//output type

  	enum field_type {fieldMag, fieldIntensity, fieldAbsorbance, fieldPolar, fieldImag, fieldReal, fieldAngularSpectrum};
  	enum image_source {imageNearField, imageObjective, imageDetector, imageExtendedSource};
  

  	field_type field;
  
  	//image_source source;

  

  	//color map info

  	rts::colormap::colormapType colormap;

  	ptype colorMax;

  

  

  	void Save(microscopeStruct* scope);
  	void Simulate(microscopeStruct* scope);
  
  	private:
  	bool is_binary(std::string filename);
  	void saveNearField(nearfieldStruct* nf);
  	void saveFarField(microscopeStruct* scope);
  	void saveDetector(microscopeStruct* scope);
  

  

  };

  

  #endif