Horizon
Loading...
Searching...
No Matches
annotation.hpp
1#pragma once
2#include <deque>
3#include "common/common.hpp"
4#include "color_palette.hpp"
5
6namespace horizon {
8 friend class CanvasGL;
9
10public:
11 CanvasAnnotation(class CanvasGL *c, int l);
12 void set_display(const class LayerDisplay &ld);
13 void set_visible(bool v);
14 bool get_visible() const;
15 void clear();
16 void draw_line(const std::deque<Coordf> &pts, ColorP color, uint64_t width);
17 void draw_line(const Coordf &from, const Coordf &to, ColorP color, uint64_t width, bool highlight = false,
18 uint8_t color2 = 0);
19 void draw_polygon(const std::deque<Coordf> &pts, ColorP color, uint64_t width);
20 void draw_arc(const Coordf &center, float radius0, float a0, float a1, ColorP color, uint64_t width);
21
22 bool on_top = true;
23 bool use_highlight = false;
24
25private:
26 class CanvasGL *ca;
27 int layer;
28};
29} // namespace horizon
Definition annotation.hpp:7
Definition canvas_gl.hpp:20
Definition layer_display.hpp:5