Blame view

fileout.h 1.17 KB
3f56f1f9   dmayerich   initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
  #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"

  #include "rts/cuda_handle_error.h"

  

  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
  	std::string transFile;      //detector transmission filename

  

  	//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