27#include <QListWidgetItem>
56 return qobject_cast<ViewSelectionConfigDialog*>(configDialog);
62 viewSelectionName = settings->value(
"viewSelectionName",
"").toString().toStdString();
69 settings->value(
"viewSelectionName", QString::fromStdString(viewSelectionName))
86 widget.checkBox->setChecked(viewSelection->isEnabledAutomaticViewSelection());
92 widget.checkBox->setChecked(
true);
98 widget.checkBox->setChecked(
false);
109 ARMARX_LOG <<
"toggling view selection " << isEnabled;
113 viewSelection->activateAutomaticViewSelection();
117 viewSelection->deactivateAutomaticViewSelection();
124 std::vector<std::string> names;
126 for (
int r = 0; r < widget.listWidget->count(); r++)
128 QListWidgetItem* item = widget.listWidget->item(r);
130 if (item->checkState() == Qt::Checked)
132 names.push_back(item->text().toStdString());
135 viewSelection->drawSaliencySphere(names);
141 std::vector<std::string> names = viewSelection->getSaliencyMapNames();
143 widget.listWidget->clear();
145 for (std::string name : names)
147 QListWidgetItem* item =
148 new QListWidgetItem(QString::fromStdString(name), widget.listWidget);
149 item->setFlags(item->flags() | Qt::ItemIsUserCheckable);
150 item->setCheckState(Qt::Unchecked);
157 viewSelection->clearSaliencySphere();
163 viewSelectionName = configDialog->getViewSelectionName();
bool usingProxy(const std::string &name, const std::string &endpoints="")
Registers a proxy for retrieval after initialization and adds it to the dependency list.
void usingTopic(const std::string &name, bool orderedPublishing=false)
Registers a proxy for subscription after initialization.
Ice::ObjectPrx getProxy(long timeoutMs=0, bool waitForScheduler=true) const
Returns the proxy of this object (optionally it waits for the proxy)
This file offers overloads of toIce() and fromIce() functions for STL container types.