forked from soblin/matplotlibcpp17
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatches.h
More file actions
91 lines (77 loc) · 2.33 KB
/
Copy pathpatches.h
File metadata and controls
91 lines (77 loc) · 2.33 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/**
* @file pathces.h
* @brief corresponding header for matplotlib.patches
**/
#pragma once
#include <matplotlibcpp17/common.h>
#include <pybind11/pybind11.h>
namespace matplotlibcpp17::patches {
/**
* @brief A wrapper class for matplotlib.patches.Circle
**/
struct DECL_STRUCT_ATTR Circle : public BaseWrapper {
public:
Circle(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict()) {
circle_attr = pybind11::module::import("matplotlib.patches").attr("Circle");
self = circle_attr(*args, **kwargs);
}
private:
pybind11::object circle_attr;
};
/**
* @brief A wrapper class for matplotlib.patches.Ellipse
**/
struct DECL_STRUCT_ATTR Ellipse : public BaseWrapper {
public:
Ellipse(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict()) {
ellipse_attr =
pybind11::module::import("matplotlib.patches").attr("Ellipse");
self = ellipse_attr(*args, **kwargs);
}
private:
pybind11::object ellipse_attr;
};
/**
* @brief A wrapper class for matplotlib.patches.Rectangle
**/
struct DECL_STRUCT_ATTR Rectangle : public BaseWrapper {
public:
Rectangle(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict()) {
rectangle_attr =
pybind11::module::import("matplotlib.patches").attr("Rectangle");
self = rectangle_attr(*args, **kwargs);
}
private:
pybind11::object rectangle_attr;
};
/**
* @brief A wrapper class for matplotlib.patches.Wedge
**/
struct DECL_STRUCT_ATTR Wedge : public BaseWrapper {
public:
Wedge(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict()) {
wedge_attr = pybind11::module::import("matplotlib.patches").attr("Wedge");
self = wedge_attr(*args, **kwargs);
}
private:
pybind11::object wedge_attr;
};
/**
* @brief A wrapper class for matplotlib.patches.Polygon
**/
struct DECL_STRUCT_ATTR Polygon : public BaseWrapper {
public:
Polygon(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict()) {
polygon_attr =
pybind11::module::import("matplotlib.patches").attr("Polygon");
self = polygon_attr(*args, **kwargs);
}
private:
pybind11::object polygon_attr;
};
} // namespace matplotlibcpp17::patches