SaveDialog.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * Copyright (C) 2011-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5  *
6  * ArmarX is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  * ArmarX is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * @package
19  * @author
20  * @date
21  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22  * GNU General Public License
23  */
24 #pragma once
25 
26 #include <QDialog>
27 #include <QFileDialog>
28 
29 #include "CoinPointCloud.h"
30 
31 namespace Ui
32 {
33  class SaveDialog;
34 }
35 
36 namespace visionx
37 {
38  class SaveDialog : public QDialog
39  {
40  Q_OBJECT
41 
42  public:
43 
44  explicit SaveDialog(QWidget* parent = 0);
45  ~SaveDialog() override;
46 
48 
49  void releaseBuffer();
50 
51  /// After calling the dialog, this contains the chosen file name
52  std::string getResultFileName();
53 
54  public slots:
55 
56  void openFile();
57 
58  private:
59 
60  Ui::SaveDialog* ui;
61 
62  /// Save file dialog
63  QFileDialog fileDialog;
64 
65  };
66 }
visionx::SaveDialog::setPointCloudToSave
void setPointCloudToSave(CoinPointCloud *cloud)
Definition: SaveDialog.cpp:49
visionx
ArmarX headers.
Definition: OpenPoseStressTest.h:38
CoinPointCloud.h
visionx::SaveDialog::openFile
void openFile()
Definition: SaveDialog.cpp:65
Ui
ArmarX Headers.
Definition: ArmarXMainWindow.h:54
visionx::SaveDialog::~SaveDialog
~SaveDialog() override
Definition: SaveDialog.cpp:44
visionx::SaveDialog::SaveDialog
SaveDialog(QWidget *parent=0)
Definition: SaveDialog.cpp:29
visionx::CoinPointCloud
Definition: CoinPointCloud.h:39
visionx::SaveDialog
Definition: SaveDialog.h:38
visionx::SaveDialog::getResultFileName
std::string getResultFileName()
After calling the dialog, this contains the chosen file name.
Definition: SaveDialog.cpp:60
visionx::SaveDialog::releaseBuffer
void releaseBuffer()
Definition: SaveDialog.cpp:55