scatter 0.1.0
Axis.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/AxisOptions.hpp>
23
24namespace scatter
25{
26 class Renderer;
27 class Transform;
28 class TextOptions;
29
34 class Axis
35 {
36 public:
44 Axis(const AxisOptions *const options, const TextOptions *const text_options);
45
50 virtual ~Axis();
51
59 void render(Renderer &renderer, const Transform &transform);
60
61 protected:
62 private:
64 const AxisOptions *const options_;
65
67 const TextOptions *const text_options_;
68 };
69
70} // namespace scatter
[brief description]
Definition AxisOptions.hpp:32
[brief description]
Definition Axis.hpp:35
void render(Renderer &renderer, const Transform &transform)
render the Axis using the given Renderer
Axis(const AxisOptions *const options, const TextOptions *const text_options)
constructor
virtual ~Axis()
destructor
[brief description]
Definition Renderer.hpp:38
[brief description]
Definition TextOptions.hpp:32
[brief description]
Definition Transform.hpp:36