-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmap.h
More file actions
44 lines (31 loc) · 760 Bytes
/
map.h
File metadata and controls
44 lines (31 loc) · 760 Bytes
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
#ifndef __MAP__
#define __MAP__
#include "GUI.h"
#include <iostream>
#include <stdlib.h>
#include <vector>
#include <array>
#include "tinyexpr.h"
using namespace std;
class Map {
private:
struct Color {
int R, G, B;
Color(int _R, int _G, int _B) : R(_R), G(_G), B(_B) {}
};
int numberOfPoints;
vector<vector<double>> values;
vector<vector<Color>> pixelColors;
double xmin;
double xmax;
double ymin;
double ymax;
double zmin;
double zmax;
Color evaluateColor(double value);
public:
void getRanges(double xmi, double xma, double ymi, double yma, double zmi, double zma);
void repaint(wxPanel* drawingPanel, int w, int h);
void prepareData(const vector<vector<double>>& funValues, int width, int height, string function);
};
#endif