Blame view

scalarslice.h 695 Bytes
3f56f1f9   dmayerich   initial commit
1
2
3
4
  #ifndef RTS_SCALAR_SLICE

  #define RTS_SCALAR_SLICE

  

  #include "dataTypes.h"

3f36b18e   David Mayerich   Adding planewave ...
5
  #include "rts/visualization/colormap.h"

3f56f1f9   dmayerich   initial commit
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  

  struct scalarslice

  {

  	//gpu pointer to the scalar slice

  	ptype* S;

  

  	//resolution of the slice

  	int R[2];

  
      scalarslice();

  	scalarslice(int x, int y);

  	~scalarslice();

  	void clear();

  

51b6469a   dmayerich   added look-up tables
20
21
  	void toImage(std::string filename, ptype vmin, ptype vmax, rts::colormapType cmap = rts::cmBrewer);
  	void toImage(std::string filename, bool positive = true, rts::colormapType cmap = rts::cmBrewer);
3f36b18e   David Mayerich   Adding planewave ...
22
23
24
25
  	void toEnvi(std::string filename, ptype wavelength = 0, bool append = false);
  
  	//assignment operator
  	scalarslice & operator= (const scalarslice & rhs);

3f56f1f9   dmayerich   initial commit
26
27
28
29
30
31
  

  };

  

  

  

  #endif