-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathListPlot.h
41 lines (31 loc) · 918 Bytes
/
ListPlot.h
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
#pragma once
#include "GraphicsMaker2D.h"
#define FILL_NULL 0
#define FILL_AXIS_LIST 1
#define JOINED_NULL flase
#define JOINED true
namespace nV {
namespace Graphics {
class ListPlot : GraphicsMaker2D {
private:
//int pnum;
int filling;
bool islist;
//Point2d* plist;
var varplist;
Color* color;
bool *joined;
Kernel &k;
public:
ListPlot(Kernel &k, const Tuple &expr);
~ListPlot();
var exportGraphics();
private:
void makePointList(var &vec_indices, var &line_indices);
var makeColorOption(Color* color);
var addVecReversed(var &vec_indices, const var &line_indice, Hue *hue);
protected:
void setRule(var title, var rule);
};
}
}