Skeletal Animation Multithread Face
menu_handler.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4#include <memory>
5#include <fstream>
6#include <sstream>
7#include <filesystem>
8#include <stdio.h>
9#include <unistd.h>
10#include <fcntl.h>
11#include <termios.h>
12
13#include <igl/opengl/glfw/imgui/ImGuiPlugin.h>
14#include <igl/opengl/glfw/imgui/ImGuiMenu.h>
15#include <igl/opengl/glfw/imgui/ImGuiHelpers.h>
16
18
23{
24public:
26 MenuHandler(igl::opengl::glfw::imgui::ImGuiMenu* menu);
27
29 void callback(void);
30
32 bool are_ports_set(void) { return m_ports_set; }
33
36
39
40private:
42 igl::opengl::glfw::imgui::ImGuiMenu *m_menu;
43
45 std::vector<std::string> get_available_usb_ports(void);
46
47private:
48
51
54
56 bool m_ports_set = 0;
57};
Class MenuHandler.
Definition: menu_handler.h:23
bool are_ports_set(void)
Check whether the USB ports have been sent by the user (Is OK pressed?).
Definition: menu_handler.h:32
std::string m_right_exoskeleton_port
Name of the right exoskeleton USB port.
Definition: menu_handler.h:53
std::vector< std::string > get_available_usb_ports(void)
Get available USB ports.
igl::opengl::glfw::imgui::ImGuiMenu * m_menu
ImGui menu handle pointer.
Definition: menu_handler.h:42
void callback(void)
Menu callback function.
std::string get_right_exoskeleton_port(void)
Get the USB port for the right exoskeleton.
Definition: menu_handler.h:38
bool m_ports_set
Flag that stores the state of the USB port (whether are set or not).
Definition: menu_handler.h:56
std::string m_left_exoskeleton_port
Name of the left exoskeleton USB port.
Definition: menu_handler.h:50
std::string get_left_exoskeleton_port(void)
Get the USB port for the left exoskeleton.
Definition: menu_handler.h:35
MenuHandler(igl::opengl::glfw::imgui::ImGuiMenu *menu)
Constructor.
Definition: menu_handler.cpp:8