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>
27 #include "../EntityAttributesEditTab.h"
28 
29 
30 namespace Ui
31 {
32  class RecognitionAttributesEditTab;
33 }
34 
35 namespace memoryx
36 {
37 
38  /**
39  * This tab allows to change the recognition attributes of an objectclass entity.
40  **/
43  {
44  Q_OBJECT
45 
46  public:
47  explicit RecognitionAttributesEditTab(QWidget* parent = 0);
49 
50  /**
51  * Pure virtual method. Implement this in order to update the dialog with the information
52  * contained in the entity provided as parameter.
53  *
54  * @param entity the entity used for updating the Gui
55  **/
56  void updateGui(const EntityPtr& entity) override;
57 
58  /**
59  * Pure virtual method. Implement this in order to update the entity with information
60  * edited in the gui
61  *
62  * @param entity the entity to update
63  **/
64  void updateEntity(const EntityPtr& entity, std::string filesDBName) override;
65 
66  public slots:
69  void recognitionMethodChanged(const QString& method);
70 
71  private:
72  Ui::RecognitionAttributesEditTab* ui;
73 
74  QFileDialog* texturedFeatureFileDialog;
75  QFileDialog* segmentableFeatureFileDialog;
76  const std::string texturedRecognition;
77  const std::string segmentableRecognition;
78  const std::string handMarkerRecognition;
79  const std::string arMarkerRecognition;
80  const std::string otherRecognitionMethod;
81  };
82 }
83 
memoryx::RecognitionAttributesEditTab::~RecognitionAttributesEditTab
~RecognitionAttributesEditTab() override
Definition: RecognitionAttributesEditTab.cpp:66
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
memoryx::RecognitionAttributesEditTab::RecognitionAttributesEditTab
RecognitionAttributesEditTab(QWidget *parent=0)
Definition: RecognitionAttributesEditTab.cpp:35
memoryx::RecognitionAttributesEditTab::updateEntity
void updateEntity(const EntityPtr &entity, std::string filesDBName) override
Pure virtual method.
Definition: RecognitionAttributesEditTab.cpp:163
IceInternal::Handle
Definition: forward_declarations.h:8
Ui
ArmarX Headers.
Definition: ArmarXMainWindow.h:58
memoryx::RecognitionAttributesEditTab::texturedFeatureFileSelected
void texturedFeatureFileSelected()
Definition: RecognitionAttributesEditTab.cpp:238
memoryx::RecognitionAttributesEditTab::recognitionMethodChanged
void recognitionMethodChanged(const QString &method)
Definition: RecognitionAttributesEditTab.cpp:249
Entity.h
memoryx::RecognitionAttributesEditTab::updateGui
void updateGui(const EntityPtr &entity) override
Pure virtual method.
Definition: RecognitionAttributesEditTab.cpp:71
memoryx::EntityAttributesEditTab
The entity edit dialog is a superclass for all edit dialogs used to set attributes of entites.
Definition: EntityAttributesEditTab.h:36
memoryx::RecognitionAttributesEditTab::segmentableFeatureFileSelected
void segmentableFeatureFileSelected()
Definition: RecognitionAttributesEditTab.cpp:243
memoryx::RecognitionAttributesEditTab
This tab allows to change the recognition attributes of an objectclass entity.
Definition: RecognitionAttributesEditTab.h:41