-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNodeDisplayPane.h
More file actions
60 lines (37 loc) · 1.26 KB
/
NodeDisplayPane.h
File metadata and controls
60 lines (37 loc) · 1.26 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
/// NodeDisplayPane Class
#ifndef MESH_STAT_NODE_DISPLAY_PANE_H
#define MESH_STAT_NODE_DISPLAY_PANE_H
#include <wx/wx.h>
#include "ColorInterpolate.h"
#include "NodeDisplay.h"
const unsigned char fast_color_r = 0;
const unsigned char fast_color_g = 255;
const unsigned char fast_color_b = 0;
const unsigned char slow_color_r = 204;
const unsigned char slow_color_g = 255;
const unsigned char slow_color_b = 204;
const unsigned char start_r = 230;
const unsigned char start_g = 230;
const unsigned char start_b = 230;
const unsigned char min_fails_color_r = 255;
const unsigned char min_fails_color_g = 204;
const unsigned char min_fails_color_b = 204;
const unsigned char max_fails_color_r = 255;
const unsigned char max_fails_color_g = 0;
const unsigned char max_fails_color_b = 0;
class ColorInterpolate;
class NodeDisplayPane : public wxTextCtrl, public NodeDisplay
{
public:
NodeDisplayPane(wxWindow *parent, const wxSize &cell_size);
virtual ~NodeDisplayPane() {};
virtual void updateDisplay(const Node &node);
virtual void update();
int numRows() const;
int numCols() const;
protected:
ColorInterpolate response_color;
ColorInterpolate fail_color;
wxColor start_color;
};
#endif /* end of MESH_STAT_NODE_DISPLAY_PANE_H */