RecognitionAttributesEditTab.h
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 ArmarX::MemoryX::PriorMemoryEditorPlugin
17* @author Kai Welke (welke at kit dot edu)
18* @date 2013
19* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20* GNU General Public License
21*/
22
23#pragma once
24
25#include <QWidget>
26
29
30namespace Ui
31{
32 class RecognitionAttributesEditTab;
33}
34
35namespace memoryx
36{
37
38 /**
39 * This tab allows to change the recognition attributes of an objectclass entity.
40 **/
42 {
43 Q_OBJECT
44
45 public:
46 explicit RecognitionAttributesEditTab(QWidget* parent = 0);
48
49 /**
50 * Pure virtual method. Implement this in order to update the dialog with the information
51 * contained in the entity provided as parameter.
52 *
53 * @param entity the entity used for updating the Gui
54 **/
55 void updateGui(const EntityPtr& entity) override;
56
57 /**
58 * Pure virtual method. Implement this in order to update the entity with information
59 * edited in the gui
60 *
61 * @param entity the entity to update
62 **/
63 void updateEntity(const EntityPtr& entity, std::string filesDBName) override;
64
65 public slots:
68 void recognitionMethodChanged(const QString& method);
69
70 private:
71 Ui::RecognitionAttributesEditTab* ui;
72
73 QFileDialog* texturedFeatureFileDialog;
74 QFileDialog* segmentableFeatureFileDialog;
75 const std::string texturedRecognition;
76 const std::string segmentableRecognition;
77 const std::string handMarkerRecognition;
78 const std::string arMarkerRecognition;
79 const std::string otherRecognitionMethod;
80 };
81} // namespace memoryx
void updateEntity(const EntityPtr &entity, std::string filesDBName) override
Pure virtual method.
void updateGui(const EntityPtr &entity) override
Pure virtual method.
ArmarX Headers.
VirtualRobot headers.
IceInternal::Handle< Entity > EntityPtr
Typedef of EntityPtr as IceInternal::Handle<Entity> for convenience.
Definition Entity.h:45