API Documentation
Loading...
Searching...
No Matches
DeploymentCharts.h
Go to the documentation of this file.
1#pragma once
2#include <NDEVR/NDEVRChart.h>
3#if NDEVR_DEPLOYMENT
4#include <NDEVR/Deployment.h>
5#include <NDEVR/SnapLocation.h>
6namespace NDEVR
7{
8 class Deployment;
9 class TopDownDeploymentChart : public NDEVRRadialChart
10 {
11 public:
12 TopDownDeploymentChart(QWidget* parent = nullptr);
13 void updateData(const Buffer<Deployment>& deployments, bool align_with_hole);
14
15 void updateData(const Buffer<Deployment>& deployments, const Matrix<fltp08>& transform);
16 protected:
17 void addDeployment(const Deployment& deployment, const TranslatedString& point_names, const Matrix<fltp08>& transform, QPen pen);
18 protected:
19
20 Buffer<UUID> m_deployment_ids;
21 };
22 class SideViewDeploymentChart : public NDEVRChart
23 {
24 Q_OBJECT
25 public:
26 explicit SideViewDeploymentChart(QWidget* parent = nullptr);
27 void updateData(const Buffer<Deployment>& deployments, SnapLocation snap_location);
28 void updateData(const Buffer<Deployment>& deployments, const Matrix<fltp08>& transform);
29 void setLockedAxes(bool locked_axes);
30 bool hasLockedAxes() const;
31 signals:
32 void onDeploymentClickedSignal(const UUID& deployment, uint04 segment_index);
33 void onDeploymentHoveredSignal(const UUID& deployment, uint04 segment_index, bool hovered);
34 private slots:
35 void clickedSlot(const PlotData& plot_data, Vertex<3, fltp08> vertex);
36 void hoveredSlot(const PlotData& plot_data, Vertex<3, fltp08> vertex, bool hovered);
37 protected:
38 void drawOriginAxis(fltp08 size);
39 void addDeployment(const Deployment& deployment, const String& point_names, const Matrix<fltp08>& transform, QPen pen);
40 protected:
41 QValueAxis* m_bot_axis;
42 QValueAxis* m_left_axis;
43 Buffer<UUID> m_deployment_ids;
44 bool m_is_updating_chart = false;
45 };
46}
47#endif
Definition ACIColor.h:37