hivemind
1.0.0
Loading...
Searching...
No Matches
sidebar.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
coordinate_converter/coordinate_converter.h
"
4
#include "
core/types.h
"
5
#include "
gui/agent_controls.h
"
6
#include "
gui/keyframe_controls.h
"
7
#include "
gui/scenario_controls.h
"
8
#include "
gui/tab_widget.h
"
9
#include "
keyframe_management/keyframe_manager.h
"
10
#include "
map_management/map_manager.h
"
11
12
#include <QVBoxLayout>
13
#include <QWidget>
14
15
namespace
Gui
16
{
17
18
/// \brief The sidebar of the main window
19
///
20
/// The sidebar of the main content exists to provide the user access to
21
/// tools related to the active tab in the tab widget.
22
class
Sidebar
:
public
QWidget
23
{
24
Q_OBJECT
25
26
public
:
27
/// \brief Construct the sidebar.
28
/// \param parent The parent of the sidebar.
29
Sidebar
(QWidget* parent =
nullptr
);
30
31
signals:
32
/// \brief Signal emitted when scenario data is ready to be processed.
33
/// \param coord The UTM coordinate of the center of the scenario.
34
/// \param size The size of the scenario in meters.
35
void
scenarioDataReady
(
Core::UTMCoordinate
coord,
int
size);
36
37
private
slots:
38
39
// ///
40
// /// \brief Handle the keyframe data received from the
41
// AddKeyFrameDialog.
42
// /// \param agentId The ID of the agent associated with the
43
// keyframe.
44
// /// \param timeStamp The timestamp of the keyframe.
45
// /// \param x The x-coordinate of the keyframe.
46
// /// \param y The y-coordinate of the keyframe.
47
// /// \param z The z-coordinate of the keyframe.
48
// void OnAddKeyframeDialogDataReady(int agentId, float
49
// timeStamp, float x, float y, float z);
50
51
// ///
52
// /// \brief Handle the map data received from the MapDialog.
53
// /// \param latitude The latitude-coordinate of the center of
54
// the map.
55
// /// \param longitude The longitude-coordinate of the center of
56
// the map.
57
// /// \param size The size of the map in meters.
58
// void OnMapDataReady(float latitude, float longitude, float
59
// size);
60
61
private
:
62
/// \brief The layout of the sidebar.
63
QVBoxLayout*
m_Layout
;
64
65
ScenarioControls
*
m_ScenarioControls
;
66
AgentControls
*
m_AgentControls
;
67
KeyframeControls
*
m_KeyframeControls
;
68
};
69
70
}
// namespace Gui
agent_controls.h
Gui::AgentControls
Definition:
agent_controls.h:15
Gui::KeyframeControls
Definition:
keyframe_controls.h:12
Gui::ScenarioControls
Definition:
scenario_controls.h:11
Gui::Sidebar
The sidebar of the main window.
Definition:
sidebar.h:23
Gui::Sidebar::m_ScenarioControls
ScenarioControls * m_ScenarioControls
Definition:
sidebar.h:65
Gui::Sidebar::m_AgentControls
AgentControls * m_AgentControls
Definition:
sidebar.h:66
Gui::Sidebar::m_Layout
QVBoxLayout * m_Layout
The layout of the sidebar.
Definition:
sidebar.h:63
Gui::Sidebar::scenarioDataReady
void scenarioDataReady(Core::UTMCoordinate coord, int size)
Signal emitted when scenario data is ready to be processed.
Gui::Sidebar::m_KeyframeControls
KeyframeControls * m_KeyframeControls
Definition:
sidebar.h:67
coordinate_converter.h
keyframe_controls.h
keyframe_manager.h
map_manager.h
Gui
Definition:
action.h:6
scenario_controls.h
Core::UTMCoordinate
\ A structure that represents a coordinate in the Universal Transverse Mercator coordinate system
Definition:
types.h:46
tab_widget.h
types.h
include
gui
sidebar.h
Generated by
1.9.6