scatter 0.1.0
EllipsePlot.hpp
1/*
2 * Copyright (C) Tobias Löw (tobi.loew@protonmail.ch)
3 *
4 * This file is part of Scatter
5 *
6 * Scatter is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * Scatter is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with Scatter. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#pragma once
21
22#include <scatter/Options.hpp>
23#include <scatter/plots/PlotBase.hpp>
24#include <variant>
25#include <vector>
26
27namespace scatter
28{
29 class Point;
30 class Ellipse;
31
37 class EllipsePlot : public PlotBase
38 {
40 class Options;
41
42 public:
50 EllipsePlot(const std::string &label, const std::vector<Ellipse> &ellipses, const Options &options);
51
56 virtual ~EllipsePlot();
57
64
72 void render(Renderer &renderer, const Transform &transform);
73
80
81 private:
83 std::vector<Ellipse> ellipses_;
85 std::unique_ptr<Options> options_;
86
87 public:
89 using Ptr = std::unique_ptr<EllipsePlot>;
90 };
91
92} // namespace scatter
[brief description]
Definition EllipsePlotOptions.hpp:34
[brief description]
Definition EllipsePlot.hpp:38
std::unique_ptr< EllipsePlot > Ptr
convenience typedef
Definition EllipsePlot.hpp:89
Options * options()
[brief description]
void render(Renderer &renderer, const Transform &transform)
[brief description]
virtual ~EllipsePlot()
[brief description]
Legend::Entry getLegendEntry()
create LegendEntry
EllipsePlot(const std::string &label, const std::vector< Ellipse > &ellipses, const Options &options)
[brief description]
[brief description]
Definition PlotBase.hpp:36
[brief description]
Definition Renderer.hpp:38
[brief description]
Definition Transform.hpp:36
[brief description]
Definition Legend.hpp:59