0.4.1
Loading...
Searching...
No Matches
TouchTracker.hpp
Go to the documentation of this file.
1// This file is part of INSTINCT, the INS Toolkit for Integrated
2// Navigation Concepts and Training by the Institute of Navigation of
3// the University of Stuttgart, Germany.
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
9/// @file TouchTracker.hpp
10/// @brief Touch Event Tracker
11/// @author T. Topp (topp@ins.uni-stuttgart.de)
12/// @date 2020-12-14
13
14#pragma once
15
16#include <imgui_node_editor.h>
17
18namespace NAV::gui
19{
20/// @brief Trigger a touch event on the specified node
21/// @param[in] id Id of the node to trigger the event on
22void TouchNode(ax::NodeEditor::NodeId id);
23
24/// @brief Get the Touch Progress for the specified node
25/// @param[in] id Id of the Node to check
26/// @return The Touch progress towards the touch time
27float GetTouchProgress(ax::NodeEditor::NodeId id);
28
29/// @brief Updates the touch events for all nodes
30/// @param[in] deltaTime Time elapsed since last frame, in [seconds]
31void UpdateTouch(float deltaTime);
32
33} // namespace NAV::gui
float GetTouchProgress(ax::NodeEditor::NodeId id)
Get the Touch Progress for the specified node.
void TouchNode(ax::NodeEditor::NodeId id)
Trigger a touch event on the specified node.
void UpdateTouch(float deltaTime)
Updates the touch events for all nodes.