toolbox_quaternion.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QtPlugin>
4 #include <thread>
7 #include "quaternion_to_rpy.h"
8 
9 namespace Ui
10 {
11 class quaternion_to_RPY;
12 }
13 
15 {
16  Q_OBJECT
17  Q_PLUGIN_METADATA(IID "facontidavide.PlotJuggler3.Toolbox")
18  Q_INTERFACES(PJ::ToolboxPlugin)
19 
20 public:
22 
23  ~ToolboxQuaternion() override;
24 
25  const char* name() const override
26  {
27  return "Quaternion to RPY";
28  }
29 
30  void init(PJ::PlotDataMapRef& src_data, PJ::TransformsMap& transform_map) override;
31 
32  std::pair<QWidget*, WidgetType> providedWidget() const override;
33 
34 public slots:
35 
36  bool onShowWidget() override;
37 
38 private slots:
39 
41 
42  void onParametersChanged();
43 
44  void onClosed();
45 
46 private:
47  QWidget* _widget;
48  Ui::quaternion_to_RPY* ui;
49 
50  bool eventFilter(QObject* obj, QEvent* event) override;
51 
52  QString _dragging_curve;
53 
54  void autoFill(QString prefix);
55 
57 
59 
61 
62  std::unique_ptr<PlotData> _preview_data_roll;
63  std::unique_ptr<PlotData> _preview_data_pitch;
64  std::unique_ptr<PlotData> _preview_data_yaw;
65 
67  {
70  };
71 
73 };
ToolboxQuaternion::_preview_data_roll
std::unique_ptr< PlotData > _preview_data_roll
Definition: toolbox_quaternion.h:62
ToolboxQuaternion::_plot_data
PJ::PlotDataMapRef * _plot_data
Definition: toolbox_quaternion.h:58
ToolboxQuaternion::_dragging_curve
QString _dragging_curve
Definition: toolbox_quaternion.h:52
ToolboxQuaternion::onShowWidget
bool onShowWidget() override
Definition: toolbox_quaternion.cpp:59
backward::ColorMode::type
type
Definition: backward.hpp:3600
quaternion_to_rpy.h
ToolboxQuaternion::onParametersChanged
void onParametersChanged()
Definition: toolbox_quaternion.cpp:239
PJ::TransformsMap
std::unordered_map< std::string, std::shared_ptr< TransformFunction > > TransformsMap
Definition: transform_function.h:85
ToolboxQuaternion::SAVE
@ SAVE
Definition: toolbox_quaternion.h:69
plotwidget_base.h
ToolboxQuaternion
Definition: toolbox_quaternion.h:14
ToolboxQuaternion::init
void init(PJ::PlotDataMapRef &src_data, PJ::TransformsMap &transform_map) override
Definition: toolbox_quaternion.cpp:40
ToolboxQuaternion::ToolboxQuaternion
ToolboxQuaternion()
Definition: toolbox_quaternion.cpp:12
Ui
Definition: cheatsheet_dialog.h:6
ToolboxQuaternion::_transforms
PJ::TransformsMap * _transforms
Definition: toolbox_quaternion.h:60
ToolboxQuaternion::_preview_data_yaw
std::unique_ptr< PlotData > _preview_data_yaw
Definition: toolbox_quaternion.h:64
ToolboxQuaternion::eventFilter
bool eventFilter(QObject *obj, QEvent *event) override
Definition: toolbox_quaternion.cpp:64
ToolboxQuaternion::onClosed
void onClosed()
Definition: toolbox_quaternion.cpp:252
ToolboxQuaternion::_preview_data_pitch
std::unique_ptr< PlotData > _preview_data_pitch
Definition: toolbox_quaternion.h:63
PJ::ToolboxPlugin
Definition: toolbox_base.h:20
ToolboxQuaternion::name
const char * name() const override
Name of the plugin type, NOT the particular instance.
Definition: toolbox_quaternion.h:25
ToolboxQuaternion::_widget
QWidget * _widget
Definition: toolbox_quaternion.h:47
ToolboxQuaternion::PREVIEW
@ PREVIEW
Definition: toolbox_quaternion.h:68
PJ::PlotDataMapRef
Definition: plotdata.h:34
ToolboxQuaternion::autoFill
void autoFill(QString prefix)
Definition: toolbox_quaternion.cpp:129
ToolboxQuaternion::~ToolboxQuaternion
~ToolboxQuaternion() override
Definition: toolbox_quaternion.cpp:36
ToolboxQuaternion::_plot_widget
PJ::PlotWidgetBase * _plot_widget
Definition: toolbox_quaternion.h:56
ToolboxQuaternion::ui
Ui::quaternion_to_RPY * ui
Definition: toolbox_quaternion.h:48
ToolboxQuaternion::on_pushButtonSave_clicked
void on_pushButtonSave_clicked()
Definition: toolbox_quaternion.cpp:225
ToolboxQuaternion::GenerateType
GenerateType
Definition: toolbox_quaternion.h:66
toolbox_base.h
ToolboxQuaternion::providedWidget
std::pair< QWidget *, WidgetType > providedWidget() const override
Definition: toolbox_quaternion.cpp:54
ToolboxQuaternion::generateRPY
bool generateRPY(GenerateType type)
Definition: toolbox_quaternion.cpp:158
PJ::PlotWidgetBase
Definition: plotwidget_base.h:25


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:47