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
23
#include "
PointCloudVisualizationConfigDialog.h
"
24
#include <VisionX/gui-plugins/PointCloudVisualization/ui_PointCloudVisualizationConfigDialog.h>
25
26
#include <QTimer>
27
#include <QPushButton>
28
#include <QMessageBox>
29
30
#include <
ArmarXGui/libraries/ArmarXGuiBase/widgets/IceProxyFinder.h
>
31
32
#include <VisionX/interface/components/PointCloudVisualization.h>
33
34
#include <IceUtil/UUID.h>
35
36
namespace
armarx
37
{
38
PointCloudVisualizationConfigDialog::PointCloudVisualizationConfigDialog
(QWidget* parent) :
39
QDialog(parent),
40
ui(new
Ui
::
PointCloudVisualizationConfigDialog
),
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 =
new
IceProxyFinder<visionx::PointCloudVisualizationInterfacePrx>
(
this
);
49
50
pointCloudVisualizationProxyFinder->
setSearchMask
(
"*"
);
51
52
ui->gridLayout->addWidget(pointCloudVisualizationProxyFinder, 0, 1, 1, 2);
53
}
54
55
PointCloudVisualizationConfigDialog::~PointCloudVisualizationConfigDialog
()
56
{
57
delete
ui;
58
}
59
60
void
PointCloudVisualizationConfigDialog::onInitComponent
()
61
{
62
pointCloudVisualizationProxyFinder->
setIceManager
(
getIceManager
());
63
}
64
65
void
PointCloudVisualizationConfigDialog::onConnectComponent
()
66
{
67
}
68
69
void
PointCloudVisualizationConfigDialog::onExitComponent
()
70
{
71
QObject::disconnect();
72
}
73
74
void
PointCloudVisualizationConfigDialog::verifyConfig
()
75
{
76
if
(!pointCloudVisualizationProxyFinder->
getSelectedProxyName
().trimmed().length())
77
{
78
QMessageBox::critical(
this
,
"Invalid Configuration"
,
"The proxy name must not be empty"
);
79
return
;
80
}
81
82
this->accept();
83
}
84
}
armarx::ManagedIceObject::getIceManager
IceManagerPtr getIceManager() const
Returns the IceManager.
Definition:
ManagedIceObject.cpp:353
armarx::IceProxyFinderBase::setSearchMask
void setSearchMask(const QString &searchMask)
Definition:
IceProxyFinder.cpp:88
armarx::IceProxyFinderBase::setIceManager
void setIceManager(IceManagerPtr icemanager, bool fetchProxies=true)
Definition:
IceProxyFinder.cpp:64
armarx::PointCloudVisualizationConfigDialog::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition:
PointCloudVisualizationConfigDialog.cpp:60
armarx::PointCloudVisualizationConfigDialog::PointCloudVisualizationConfigDialog
PointCloudVisualizationConfigDialog(QWidget *parent=0)
Definition:
PointCloudVisualizationConfigDialog.cpp:38
IceUtil
Definition:
Instance.h:21
Ui
ArmarX Headers.
Definition:
ArmarXMainWindow.h:54
armarx::PointCloudVisualizationConfigDialog::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition:
PointCloudVisualizationConfigDialog.cpp:69
PointCloudVisualizationConfigDialog.h
armarx::PointCloudVisualizationConfigDialog
Definition:
PointCloudVisualizationConfigDialog.h:40
IceProxyFinder.h
armarx::IceProxyFinderBase::getSelectedProxyName
QString getSelectedProxyName() const
Definition:
IceProxyFinder.cpp:73
armarx::IceProxyFinder
Definition:
StatechartViewerController.h:51
armarx::PointCloudVisualizationConfigDialog::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition:
PointCloudVisualizationConfigDialog.cpp:65
armarx::PointCloudVisualizationConfigDialog::~PointCloudVisualizationConfigDialog
~PointCloudVisualizationConfigDialog() override
Definition:
PointCloudVisualizationConfigDialog.cpp:55
armarx::PointCloudVisualizationConfigDialog::verifyConfig
void verifyConfig()
Definition:
PointCloudVisualizationConfigDialog.cpp:74
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition:
ArmarXTimeserver.cpp:28
VisionX
gui-plugins
PointCloudVisualization
PointCloudVisualizationConfigDialog.cpp
Generated on Sat Oct 12 2024 09:14:17 for armarx_documentation by
1.8.17