MotionAttributesEditTab.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 MemoryX::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
27#include <VirtualRobot/SceneObject.h>
28
31
32namespace Ui
33{
34 class MotionAttributesEditTab;
35}
36
37namespace memoryx
38{
39
40 /**
41 * This tab allows to change the motion model attributes of an objectclass entity.
42 **/
44 {
45 Q_OBJECT
46
47 public:
48 explicit MotionAttributesEditTab(QWidget* parent = 0);
49 ~MotionAttributesEditTab() override;
50
51 /**
52 * Pure virtual method. Implement this in order to update the dialog with the information
53 * contained in the entity provided as parameter.
54 *
55 * @param entity the entity used for updating the Gui
56 **/
57 void updateGui(const EntityPtr& entity) override;
58
59 /**
60 * Pure virtual method. Implement this in order to update the entity with information
61 * edited in the gui
62 *
63 * @param entity the entity to update
64 **/
65 void updateEntity(const EntityPtr& entity, std::string filesDBName) override;
66
67 public slots:
68 void motionModelChanged(const QString& method);
69 void simulationTypeChanged(const QString& method);
70
71 private:
72 QString simTypeToString(VirtualRobot::SceneObject::Physics::SimulationType simType);
73 VirtualRobot::SceneObject::Physics::SimulationType stringToSimType(const QString& string);
74
75 private:
76 Ui::MotionAttributesEditTab* ui;
77 };
78} // namespace memoryx
void simulationTypeChanged(const QString &method)
void motionModelChanged(const QString &method)
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