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
|
#ifndef RTS_SCALAR_SLICE
#define RTS_SCALAR_SLICE
#include "dataTypes.h"
#include "colormap.h"
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();
void toImage(std::string filename, ptype vmin, ptype vmax, rts::colormap::colormapType cmap = rts::colormap::cmBrewer);
void toImage(std::string filename, bool positive = true, rts::colormap::colormapType cmap = rts::colormap::cmBrewer);
void toEnvi(std::string filename, ptype wavelength = 0, bool append = false);
};
#endif
|