scatter 0.1.0
Options.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/Colour.hpp>
23#include <string>
24
25namespace scatter
26{
27 enum class Marker
28 {
29 CIRCLE,
30 ASTERISK,
31 CROSS,
32 PLUS,
33 TRIANGLE,
34 DIAMOND,
35 SQUARE,
36 STAR
37 };
38
39 enum class Anchor
40 {
41 CENTER,
42 NORTH,
43 NORTH_EAST,
44 EAST,
45 SOUTH_EAST,
46 SOUTH,
47 SOUTH_WEST,
48 WEST,
49 NORTH_WEST
50 };
51
58 {
59 public:
65
70 virtual ~OptionsBase();
71
76 void setLabel(const std::string &label);
77
82 void setColour(const Colour &colour);
83
88 const std::string &getLabel() const;
89
94 const Colour &getColour() const;
95
96 private:
98 std::string label_;
100 Colour colour_;
101 };
102
103} // namespace scatter
define a RGBA colour
Definition Colour.hpp:34
[brief description]
Definition Options.hpp:58
const std::string & getLabel() const
[brief description]
void setColour(const Colour &colour)
[brief description]
void setLabel(const std::string &label)
[brief description]
virtual ~OptionsBase()
[brief description]
OptionsBase()
[brief description]
const Colour & getColour() const
[brief description]