LoadObjectsIntoMemoryWidgetController.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 ARCHES::gui-plugins::LoadObjectsIntoMemoryWidgetController
17 * @author Raphael Grimm ( raphael dot grimm at kit dot edu )
18 * @date 2018
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22#pragma once
23
25
29
31#include <MemoryX/gui-plugins/LoadObjectsIntoMemory/ui_LoadObjectsIntoMemoryWidget.h>
32#include <MemoryX/interface/components/PriorKnowledgeInterface.h>
34
35namespace armarx
36{
37 /**
38 \page MemoryX-GuiPlugins-LoadObjectsIntoMemory LoadObjectsIntoMemory
39 \brief The LoadObjectsIntoMemory allows visualizing ...
40
41 \image html LoadObjectsIntoMemory.png
42 The user can
43
44 API Documentation \ref LoadObjectsIntoMemoryWidgetController
45
46 \see LoadObjectsIntoMemoryGuiPlugin
47 */
48
49 /**
50 * \class LoadObjectsIntoMemoryWidgetController
51 * \brief LoadObjectsIntoMemoryWidgetController brief one line description
52 *
53 * Detailed description
54 */
57 LoadObjectsIntoMemoryWidgetController>
58 {
59 Q_OBJECT
60
61 public:
62 /**
63 * Controller Constructor
64 */
66
67 /**
68 * Controller destructor
69 */
73
74 /**
75 * @see ArmarXWidgetController::loadSettings()
76 */
77 void
78 loadSettings(QSettings*) override
79 {
80 }
81
82 /**
83 * @see ArmarXWidgetController::saveSettings()
84 */
85 void
86 saveSettings(QSettings*) override
87 {
88 }
89
90 /**
91 * Returns the Widget name displayed in the ArmarXGui to create an
92 * instance of this class.
93 */
94 static QString
96 {
97 return "MemoryX.LoadObjectsIntoMemory";
98 }
99
100 /**
101 * \see armarx::Component::onInitComponent()
102 */
103 void
105 {
106 }
107
108 /**
109 * \see armarx::Component::onConnectComponent()
110 */
111 void onConnectComponent() override;
112
113
114 virtual QPointer<QDialog> getConfigDialog(QWidget* parent) override;
115 public slots:
116 void addObjects();
117 void updateDBs();
118
119 signals:
120 /* QT signal declarations */
121
122 private:
123 std::string
124 getFilesDBName()
125 {
126 const std::string ns = classesSegmentPrx->getWriteCollectionNS();
127 const size_t found = ns.find_first_of('.');
128 return (found != std::string::npos) ? ns.substr(0, found) : "";
129 }
130
131 /**
132 * Widget Form
133 */
134 Ui::LoadObjectsIntoMemoryWidget widget;
135
136 QPointer<SimpleConfigDialog> dialog;
137
138 memoryx::CommonStorageInterfacePrx databasePrx;
139 memoryx::PriorKnowledgeInterfacePrx priorPrx;
140 memoryx::PersistentObjectClassSegmentBasePrx classesSegmentPrx;
141 memoryx::GridFileManagerPtr fileManager;
142 };
143} // namespace armarx
#define ARMARXCOMPONENT_IMPORT_EXPORT
static QString GetWidgetName()
Returns the Widget name displayed in the ArmarXGui to create an instance of this class.
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< GridFileManager > GridFileManagerPtr