ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
G3PointPlots.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <qcustomplot.h>
11 
12 #include <QWidget>
13 
14 // Eigen
15 #include <Eigen/Geometry>
16 
17 namespace Ui {
18 class G3PointPlots;
19 }
20 
21 class G3PointPlots : public QWidget {
22  Q_OBJECT
23 
24 public:
25  explicit G3PointPlots(QString title, QWidget* parent = nullptr);
26  ~G3PointPlots();
27 
28  void readSettings();
29 
30  void addToTabWidget(QWidget* widget);
31 
32  void closeCurrentWidget();
33 
34  template <typename SharedDataContainer>
35  bool exportToCSV(QString filename,
36  SharedDataContainer container,
37  const Eigen::Array3d* dq_final = nullptr,
38  const Eigen::Array3d* edq = nullptr) const;
39 
40  void onExportToCSV();
41 
42  void onExportToImage();
43 
44  void closeEvent(QCloseEvent* event) override;
45 
46 private:
47  Ui::G3PointPlots* ui;
48 };
MouseEvent event
std::string filename
void readSettings()
void addToTabWidget(QWidget *widget)
void onExportToCSV()
G3PointPlots(QString title, QWidget *parent=nullptr)
qCC_db
void closeCurrentWidget()
void onExportToImage()
bool exportToCSV(QString filename, SharedDataContainer container, const Eigen::Array3d *dq_final=nullptr, const Eigen::Array3d *edq=nullptr) const
void closeEvent(QCloseEvent *event) override