PointCloudVisualizationConfigDialog.cpp
Go to the documentation of this file.
1/*
2* This file is part of ArmarX.
3*
4* ArmarX is free software; you can redistribute it and/or modify
5* it under the terms of the GNU General Public License version 2 as
6* published by the Free Software Foundation.
7*
8* ArmarX is distributed in the hope that it will be useful, but
9* WITHOUT ANY WARRANTY; without even the implied warranty of
10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11* GNU General Public License for more details.
12*
13* You should have received a copy of the GNU General Public License
14* along with this program. If not, see <http://www.gnu.org/licenses/>.
15*
16* @package VisionX
17* @author Peter Kaiser (peter dot kaiser at kit dot edu)
18* @date 2016
19* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20* GNU General Public License
21*/
22
24
25#include <QMessageBox>
26#include <QPushButton>
27#include <QTimer>
28
29#include <IceUtil/UUID.h>
30
32
33#include <VisionX/gui-plugins/PointCloudVisualization/ui_PointCloudVisualizationConfigDialog.h>
34#include <VisionX/interface/components/PointCloudVisualization.h>
35
36namespace armarx
37{
39 QDialog(parent),
41 uuid(IceUtil::generateUUID())
42 {
43 ui->setupUi(this);
44
45 connect(this->ui->buttonBox, SIGNAL(accepted()), this, SLOT(verifyConfig()));
46 ui->buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
47
48 pointCloudVisualizationProxyFinder =
50
51 pointCloudVisualizationProxyFinder->setSearchMask("*");
52
53 ui->gridLayout->addWidget(pointCloudVisualizationProxyFinder, 0, 1, 1, 2);
54 }
55
60
61 void
63 {
64 pointCloudVisualizationProxyFinder->setIceManager(getIceManager());
65 }
66
67 void
71
72 void
74 {
75 QObject::disconnect();
76 }
77
78 void
80 {
81 if (!pointCloudVisualizationProxyFinder->getSelectedProxyName().trimmed().length())
82 {
83 QMessageBox::critical(
84 this, "Invalid Configuration", "The proxy name must not be empty");
85 return;
86 }
87
88 this->accept();
89 }
90} // namespace armarx
Widget to conveniently retrieve a proxy instance name of a specific interface type (the template para...
IceManagerPtr getIceManager() const
Returns the IceManager.
void onInitComponent() override
Pure virtual hook for the subclass.
void onConnectComponent() override
Pure virtual hook for the subclass.
ArmarX Headers.
This file offers overloads of toIce() and fromIce() functions for STL container types.