Skeletal Animation Multithread Face
|
Class MenuHandler. More...
#include <menu_handler.h>
Public Member Functions | |
MenuHandler (igl::opengl::glfw::imgui::ImGuiMenu *menu) | |
Constructor. More... | |
void | callback (void) |
Menu callback function. More... | |
bool | are_ports_set (void) |
Check whether the USB ports have been sent by the user (Is OK pressed?). More... | |
std::string | get_left_exoskeleton_port (void) |
Get the USB port for the left exoskeleton. More... | |
std::string | get_right_exoskeleton_port (void) |
Get the USB port for the right exoskeleton. More... | |
Private Member Functions | |
std::vector< std::string > | get_available_usb_ports (void) |
Get available USB ports. More... | |
Private Attributes | |
igl::opengl::glfw::imgui::ImGuiMenu * | m_menu |
ImGui menu handle pointer. More... | |
std::string | m_left_exoskeleton_port |
Name of the left exoskeleton USB port. More... | |
std::string | m_right_exoskeleton_port |
Name of the right exoskeleton USB port. More... | |
bool | m_ports_set = 0 |
Flag that stores the state of the USB port (whether are set or not). More... | |
Class MenuHandler.
This class handles the animation menu.
Definition at line 22 of file menu_handler.h.
MenuHandler::MenuHandler | ( | igl::opengl::glfw::imgui::ImGuiMenu * | menu | ) |
Constructor.
Construct a new Menu Handler:: Menu Handler object.
menu | The menu pointer provided by ImGui. |
Definition at line 8 of file menu_handler.cpp.
|
inline |
Check whether the USB ports have been sent by the user (Is OK pressed?).
Definition at line 32 of file menu_handler.h.
void MenuHandler::callback | ( | void | ) |
Menu callback function.
The callback function responds to the actions of the ImGui menu. This function is passed as a lambda function to the menu handler (see main.cpp).
Definition at line 19 of file menu_handler.cpp.
|
private |
Get available USB ports.
This function simply generates the available USB ports.
Definition at line 59 of file menu_handler.cpp.
|
inline |
Get the USB port for the left exoskeleton.
Definition at line 35 of file menu_handler.h.
|
inline |
Get the USB port for the right exoskeleton.
Definition at line 38 of file menu_handler.h.
|
private |
Name of the left exoskeleton USB port.
Definition at line 50 of file menu_handler.h.
|
private |
ImGui menu handle pointer.
Definition at line 42 of file menu_handler.h.
|
private |
Flag that stores the state of the USB port (whether are set or not).
Definition at line 56 of file menu_handler.h.
|
private |
Name of the right exoskeleton USB port.
Definition at line 53 of file menu_handler.h.