BlosSOM
Interactive dimensionality reduction on large datasets (EmbedSOM and FLOWER combined)
wrapper_imgui.h
Go to the documentation of this file.
1
2/* This file is part of BlosSOM.
3 *
4 * Copyright (C) 2021 Sona Molnarova
5 *
6 * BlosSOM is free software: you can redistribute it and/or modify it under
7 * the terms of the GNU General Public License as published by the Free
8 * Software Foundation, either version 3 of the License, or (at your option)
9 * any later version.
10 *
11 * BlosSOM is distributed in the hope that it will be useful, but WITHOUT ANY
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 * details.
15 *
16 * You should have received a copy of the GNU General Public License along with
17 * BlosSOM. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef WRAPPER_IMGUI_H
21#define WRAPPER_IMGUI_H
22
23#include "state.h"
24#include "ui_menu.h"
25#include "wrapper_glfw.h"
26
27/**
28 * @brief Wrapper of the ImGui.
29 *
30 * It abstracts the initialization and rendering of the UI.
31 *
32 */
34{
35public:
37 /**
38 * @brief Initialize ImGui and load fonts.
39 *
40 * @param window
41 * @return true
42 * @return false
43 */
44 bool init(GLFWwindow *window);
45 /**
46 * @brief Render UI.
47 *
48 * @param input
49 * @param state
50 */
51 void render(int w, int h, State &state);
52
53private:
55};
56
57#endif // WRAPPER_IMGUI_H
Wrapper of the ImGui.
Definition: wrapper_imgui.h:34
void render(int w, int h, State &state)
Render UI.
bool init(GLFWwindow *window)
Initialize ImGui and load fonts.
Storage of data of used algorithms and input events.
Definition: state.h:50
ImGUI handler for rendering main menu window.
Definition: ui_menu.h:37