1 // Copyright (C) 2014-2019 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #include "ModuleBase_WidgetSelectionFilter.h"
21 #include "ModuleBase_Tools.h"
22 #include "ModuleBase_IWorkshop.h"
23 #include "ModuleBase_ISelectionActivate.h"
24 #include "ModuleBase_IModule.h"
25 #include "ModuleBase_IViewer.h"
26 #include "ModuleBase_IPropertyPanel.h"
27 #include "ModuleBase_PageWidget.h"
28 #include "ModuleBase_WidgetMultiSelector.h"
29 #include "ModuleBase_ResultPrs.h"
30 #include "ModuleBase_WidgetFactory.h"
32 #include <ModelAPI_Session.h>
33 #include <ModelAPI_AttributeSelectionList.h>
34 #include <ModelAPI_Events.h>
35 #include <ModelAPI_ResultBody.h>
36 #include <GeomAPI_ShapeExplorer.h>
38 #include <Events_Loop.h>
39 #include <Config_ValidatorReader.h>
41 #include <AIS_InteractiveContext.hxx>
42 #include <StdSelect_BRepOwner.hxx>
43 #include <TopoDS_Compound.hxx>
44 #include <BRep_Builder.hxx>
47 #include <QPushButton>
52 #include <QToolButton>
55 static FeaturePtr SelectorFeature;
56 static std::string AttributeId;
59 GeomAPI_Shape::ShapeType selectionType(const QString& theType)
61 QString aType = theType.toUpper();
62 if ((aType == "VERTEX") || (aType == "VERTICES"))
63 return GeomAPI_Shape::VERTEX;
64 else if ((aType == "EDGE") || (aType == "EDGES"))
65 return GeomAPI_Shape::EDGE;
66 else if ((aType == "WIRE") || (aType == "WIRES"))
67 return GeomAPI_Shape::WIRE;
68 else if ((aType == "FACE") || (aType == "FACES"))
69 return GeomAPI_Shape::FACE;
70 else if ((aType == "SHELL") || (aType == "SHELLS"))
71 return GeomAPI_Shape::SHELL;
72 else if ((aType == "SOLID") || (aType == "SOLIDS"))
73 return GeomAPI_Shape::SOLID;
74 else if ((aType == "COMPSOLID") || (aType == "COMPSOLIDS"))
75 return GeomAPI_Shape::COMPSOLID;
76 else if ((aType == "COMPOUND") || (aType == "COMPOUNDS"))
77 return GeomAPI_Shape::COMPOUND;
79 return GeomAPI_Shape::SHAPE;
83 ModuleBase_FilterStarter::ModuleBase_FilterStarter(const std::string& theFeature,
84 QWidget* theParent, ModuleBase_IWorkshop* theWorkshop)
86 myFeatureName(theFeature),
87 myWorkshop(theWorkshop)
89 QHBoxLayout* aMainLayout = new QHBoxLayout(this);
90 ModuleBase_Tools::adjustMargins(aMainLayout);
92 aMainLayout->addStretch(1);
93 QPushButton* aLaunchBtn = new QPushButton(tr("Selection by filters"), this);
94 connect(aLaunchBtn, SIGNAL(clicked()), SLOT(onFiltersLaunch()));
95 aMainLayout->addWidget(aLaunchBtn);
98 void ModuleBase_FilterStarter::onFiltersLaunch()
100 ModuleBase_Operation* aParentOp = myWorkshop->currentOperation();
101 ModuleBase_OperationFeature* aFeatureOp = dynamic_cast<ModuleBase_OperationFeature*>(aParentOp);
103 // Open transaction on filters operation finish
104 aFeatureOp->openTransactionOnResume();
106 QWidget* aParent = parentWidget();
107 ModuleBase_WidgetMultiSelector* aSelector =
108 dynamic_cast<ModuleBase_WidgetMultiSelector*>(aParent);
110 aParent = aParent->parentWidget();
111 aSelector = dynamic_cast<ModuleBase_WidgetMultiSelector*>(aParent);
115 SelectorFeature = aSelector->feature();
116 AttributeId = aSelector->attributeID();
118 // Launch Filters operation
119 ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>
120 (myWorkshop->module()->createOperation(myFeatureName));
122 AttributeSelectionListPtr aAttrList = SelectorFeature->selectionList(AttributeId);
123 FiltersFeaturePtr aFilters = aAttrList->filters();
125 aFOperation->setFeature(aFilters);
126 myWorkshop->processLaunchOperation(aFOperation);
129 //*****************************************************************************
130 //*****************************************************************************
131 //*****************************************************************************
132 ModuleBase_FilterItem::ModuleBase_FilterItem(
133 const std::string& theFilter, ModuleBase_WidgetSelectionFilter* theParent)
134 : QWidget(theParent->filtersWidget()), myFilterID(theFilter),
135 mySelection(std::dynamic_pointer_cast<ModelAPI_FiltersFeature>(theParent->feature()))
137 std::string aXmlString = ModelAPI_Session::get()->filters()->filter(theFilter)->xmlRepresentation();
138 if (aXmlString.length() == 0)
141 ModuleBase_WidgetFactory aFactory(aXmlString, theParent->workshop());
142 Config_ValidatorReader aValidatorReader(aXmlString, true);
143 aValidatorReader.setFeatureId(mySelection->getKind());
144 aValidatorReader.readAll();
146 QVBoxLayout* aLayout = new QVBoxLayout(this);
147 ModuleBase_Tools::zeroMargins(aLayout);
149 QWidget* aItemRow = new QWidget(this);
150 addItemRow(aItemRow);
151 aLayout->addWidget(aItemRow);
153 ModuleBase_PageWidget* aParamsWgt = new ModuleBase_PageWidget(this);
154 aParamsWgt->setFrameStyle(QFrame::Box | QFrame::Raised);
155 aFactory.createWidget(aParamsWgt);
156 ModuleBase_Tools::zeroMargins(aParamsWgt->layout());
157 myWidgets = aFactory.getModelWidgets();
158 foreach(ModuleBase_ModelWidget* aWidget, myWidgets) {
159 aWidget->setFeature(theParent->feature());
160 connect(aWidget, SIGNAL(focusInWidget(ModuleBase_ModelWidget*)),
161 theParent, SIGNAL(focusInWidget(ModuleBase_ModelWidget*)));
162 connect(aWidget, SIGNAL(focusOutWidget(ModuleBase_ModelWidget*)),
163 theParent, SIGNAL(focusOutWidget(ModuleBase_ModelWidget*)));
164 connect(aWidget, SIGNAL(objectUpdated()), theParent, SLOT(onObjectUpdated()));
166 aLayout->addWidget(aParamsWgt);
170 void ModuleBase_FilterItem::addItemRow(QWidget* theParent)
172 QHBoxLayout* aLayout = new QHBoxLayout(theParent);
173 ModuleBase_Tools::zeroMargins(aLayout);
175 // Reverse filter button
176 myRevBtn = new QToolButton(theParent);
177 myRevBtn->setCheckable(true);
178 myRevBtn->setChecked(false);
179 myRevBtn->setAutoRaise(true);
180 myRevBtn->setIcon(QIcon(":pictures/add.png"));
181 myRevBtn->setToolTip(tr("Reverse the filter"));
182 connect(myRevBtn, SIGNAL(toggled(bool)), SLOT(onReverse(bool)));
183 aLayout->addWidget(myRevBtn);
185 const std::string& aFilterName = ModelAPI_Session::get()->filters()->filter(myFilterID)->name();
186 aLayout->addWidget(new QLabel(aFilterName.c_str(), theParent), 1);
188 QToolButton* aDelBtn = new QToolButton(theParent);
189 aDelBtn->setIcon(QIcon(":pictures/delete.png"));
190 aDelBtn->setAutoRaise(true);
191 aDelBtn->setToolTip(tr("Delete the filter"));
192 connect(aDelBtn, SIGNAL(clicked(bool)), SLOT(onDelete()));
193 aLayout->addWidget(aDelBtn);
196 void ModuleBase_FilterItem::onReverse(bool theCheck)
198 mySelection->setReversed(myFilterID, theCheck);
200 myRevBtn->setIcon(QIcon(":pictures/reverce.png"));
202 myRevBtn->setIcon(QIcon(":pictures/add.png"));
203 emit reversedItem(this);
206 void ModuleBase_FilterItem::onDelete()
208 emit deleteItem(this);
211 QList<QWidget*> ModuleBase_FilterItem::getControls() const
213 QList<QWidget*> aWidgetsList;
214 foreach(ModuleBase_ModelWidget* aWgt, myWidgets) {
215 QList<QWidget*> aSubList = aWgt->getControls();
216 foreach(QWidget* aSub, aSubList) {
217 aWidgetsList.append(aSub);
224 //*****************************************************************************
225 //*****************************************************************************
226 //*****************************************************************************
227 ModuleBase_WidgetSelectionFilter::ModuleBase_WidgetSelectionFilter(QWidget* theParent,
228 ModuleBase_IWorkshop* theWorkshop, const Config_WidgetAPI* theData)
229 : ModuleBase_ModelWidget(theParent, theData),
230 myWorkshop(theWorkshop),
231 mySelectorFeature(SelectorFeature),
232 mySelectorAttribute(AttributeId)
234 // Clear Old selection
235 AttributeSelectionListPtr aAttrList = mySelectorFeature->selectionList(mySelectorAttribute);
236 mySelectionType = selectionType(aAttrList->selectionType().c_str());
240 QVBoxLayout* aMainLayout = new QVBoxLayout(this);
241 ModuleBase_Tools::adjustMargins(aMainLayout);
243 QGroupBox* aFiltersGroup = new QGroupBox(tr("Filters"), this);
244 QVBoxLayout* aGroupLayout = new QVBoxLayout(aFiltersGroup);
245 aGroupLayout->setContentsMargins(0, 0, 0, 0);
246 aGroupLayout->setSpacing(0);
248 myFiltersWgt = new QWidget();
249 myFiltersLayout = new QVBoxLayout(myFiltersWgt);
250 myFiltersLayout->setContentsMargins(0, 0, 0, 0);
251 aGroupLayout->addWidget(myFiltersWgt);
253 myFiltersCombo = new QComboBox(aFiltersGroup);
254 myFiltersCombo->addItem(tr("Add new filter..."));
255 SessionPtr aSession = ModelAPI_Session::get();
256 std::list<FilterPtr> allFilters =
257 aSession->filters()->filters((GeomAPI_Shape::ShapeType) mySelectionType);
259 std::list<FilterPtr>::const_iterator aIt;
260 for (aIt = allFilters.cbegin(); aIt != allFilters.cend(); aIt++) {
261 aItems.push_back((*aIt)->name().c_str());
262 myFilters.push_back(aSession->filters()->id(*aIt));
264 myFiltersCombo->addItems(aItems);
265 connect(myFiltersCombo, SIGNAL(currentIndexChanged(int)), SLOT(onAddFilter(int)));
267 aGroupLayout->addWidget(myFiltersCombo);
268 aMainLayout->addWidget(aFiltersGroup);
271 QWidget* aBtnWgt = new QWidget(this);
272 QHBoxLayout* aBtnLayout = new QHBoxLayout(aBtnWgt);
273 ModuleBase_Tools::adjustMargins(aBtnLayout);
275 aBtnLayout->addStretch(1);
277 mySelectBtn = new QPushButton(tr("Select"), aBtnWgt);
278 connect(mySelectBtn, SIGNAL(clicked()), SLOT(onSelect()));
279 aBtnLayout->addWidget(mySelectBtn);
281 aMainLayout->addWidget(aBtnWgt);
284 QWidget* aLblWgt = new QWidget(this);
285 QHBoxLayout* aLblLayout = new QHBoxLayout(aLblWgt);
286 ModuleBase_Tools::zeroMargins(aLblLayout);
288 aLblLayout->addWidget(new QLabel(tr("Number of selected objects:"), aLblWgt));
290 myNbLbl = new QLabel("0", aLblWgt);
291 aLblLayout->addWidget(myNbLbl);
294 myShowBtn = new QCheckBox(tr("Show only"), this);
295 connect(myShowBtn, SIGNAL(toggled(bool)), SLOT(onShowOnly(bool)));
296 aLblLayout->addWidget(myShowBtn);
298 aMainLayout->addWidget(aLblWgt);
300 aMainLayout->addStretch(1);
305 ModuleBase_WidgetSelectionFilter::~ModuleBase_WidgetSelectionFilter()
308 if (!myPreview.IsNull()) {
309 Handle(AIS_InteractiveContext) aCtx = myWorkshop->viewer()->AISContext();
310 aCtx->Remove(myPreview, false);
312 if (myShowBtn->isChecked()) {
313 AIS_ListOfInteractive::const_iterator aIt;
314 Handle(AIS_Shape) aShapeIO;
315 for (aIt = myListIO.cbegin(); aIt != myListIO.cend(); aIt++) {
316 aShapeIO = Handle(AIS_Shape)::DownCast(*aIt);
317 if (!aShapeIO.IsNull()) {
318 aCtx->Display(aShapeIO, false);
322 aCtx->UpdateCurrentViewer();
324 SelectorFeature = FeaturePtr();
328 void ModuleBase_WidgetSelectionFilter::onAddFilter(int theIndex)
333 std::list<std::string>::iterator aIt;
336 for (aIt = myFilters.begin(), i = 0; aIt != myFilters.cend(); i++, aIt++) {
337 if (i == (theIndex - 1)) {
342 onAddFilter(aFilter);
343 FiltersFeaturePtr aFiltersFeature =
344 std::dynamic_pointer_cast<ModelAPI_FiltersFeature>(myFeature);
345 aFiltersFeature->addFilter(aFilter);
347 myFiltersCombo->setCurrentIndex(0);
348 myFiltersCombo->removeItem(theIndex);
349 updateObject(myFeature);
352 void ModuleBase_WidgetSelectionFilter::onAddFilter(const std::string& theFilter)
354 if (theFilter.length() == 0)
356 std::list<std::string>::const_iterator aIt;
357 for (aIt = myUseFilters.cbegin(); aIt != myUseFilters.cend(); aIt++) {
358 if (theFilter == (*aIt))
361 myFilters.remove(theFilter);
362 myUseFilters.push_back(theFilter);
363 ModuleBase_FilterItem* aItem = new ModuleBase_FilterItem(theFilter, this);
364 connect(aItem, SIGNAL(deleteItem(ModuleBase_FilterItem*)),
365 SLOT(onDeleteItem(ModuleBase_FilterItem*)));
366 connect(aItem, SIGNAL(reversedItem(ModuleBase_FilterItem*)),
367 SLOT(onReverseItem(ModuleBase_FilterItem*)));
368 myFiltersLayout->addWidget(aItem);
371 clearCurrentSelection(true);
372 updateNumberSelected();
375 void ModuleBase_WidgetSelectionFilter::onDeleteItem(ModuleBase_FilterItem* theItem)
377 std::string aFilter = theItem->filter();
378 QList<ModuleBase_ModelWidget*> aWidgets = theItem->widgets();
379 foreach(ModuleBase_ModelWidget* aWgt, aWidgets) {
382 myFiltersLayout->removeWidget(theItem);
383 theItem->deleteLater();
385 myUseFilters.remove(aFilter);
386 myFilters.push_back(aFilter);
387 myFiltersCombo->addItem(ModelAPI_Session::get()->filters()->filter(aFilter)->name().c_str());
389 FiltersFeaturePtr aFiltersFeature =
390 std::dynamic_pointer_cast<ModelAPI_FiltersFeature>(myFeature);
391 aFiltersFeature->removeFilter(aFilter);
394 clearCurrentSelection(true);
395 updateNumberSelected();
397 myWorkshop->deactivateCurrentSelector();
398 myWorkshop->selectionActivate()->updateSelectionModes();
399 myWorkshop->selectionActivate()->updateSelectionFilters();
401 myFiltersCombo->setFocus();
402 updateObject(myFeature);
406 void ModuleBase_WidgetSelectionFilter::redisplayFeature()
408 static Events_ID aDispEvent = Events_Loop::loop()->eventByName(EVENT_OBJECT_TO_REDISPLAY);
409 ModelAPI_EventCreator::get()->sendUpdated(myFeature, aDispEvent);
410 Events_Loop::loop()->flush(aDispEvent);
413 void ModuleBase_WidgetSelectionFilter::onReverseItem(ModuleBase_FilterItem* theItem)
416 clearCurrentSelection(true);
417 updateNumberSelected();
420 void ModuleBase_WidgetSelectionFilter::onSelect()
422 if (myUseFilters.size() == 0)
424 Handle(AIS_InteractiveContext) aCtx = myWorkshop->viewer()->AISContext();
428 clearCurrentSelection();
430 BRep_Builder aBuilder;
431 TopoDS_Compound aComp;
432 aBuilder.MakeCompound(aComp);
434 DocumentPtr aDoc = myFeature->document();
435 int aNb = aDoc->size(ModelAPI_ResultBody::group());
439 for (int i = 0; i < aNb; i++) {
440 aObj = aDoc->object(ModelAPI_ResultBody::group(), i);
441 aBody = std::dynamic_pointer_cast<ModelAPI_ResultBody>(aObj);
442 GeomShapePtr aShape = aBody->shape();
443 std::list<GeomShapePtr> aSubShapes =
444 aShape->subShapes((GeomAPI_Shape::ShapeType)mySelectionType);
445 TopTools_MapOfShape alreadyThere;
446 std::list<GeomShapePtr>::const_iterator aShapesIt;
447 for (aShapesIt = aSubShapes.cbegin(); aShapesIt != aSubShapes.cend(); aShapesIt++) {
448 GeomShapePtr aShape = (*aShapesIt);
449 TopoDS_Shape aTShape = aShape->impl<TopoDS_Shape>();
450 if (!alreadyThere.Add(aTShape))
452 static SessionPtr aSession = ModelAPI_Session::get();
453 bool isValid = aSession->filters()->isValid(myFeature, aShape);
455 aBuilder.Add(aComp, aTShape);
456 ModuleBase_ViewerPrsPtr aValue(new ModuleBase_ViewerPrs(aObj, aShape));
457 myValues.append(aValue);
462 if (myValues.size() > 0)
463 updatePreview(aComp);
464 updateNumberSelected();
465 updateObject(myFeature);
468 void ModuleBase_WidgetSelectionFilter::updatePreview(const TopoDS_Shape& theShape)
470 Handle(AIS_InteractiveContext) aCtx = myWorkshop->viewer()->AISContext();
474 if (myPreview.IsNull()) {
475 myPreview = new AIS_Shape(theShape);
476 myPreview->SetDisplayMode(AIS_Shaded);
477 myPreview->SetColor(Quantity_NOC_BLUE1);
478 Handle(Prs3d_Drawer) aDrawer = myPreview->Attributes();
479 if (aDrawer->HasOwnPointAspect()) {
480 aDrawer->PointAspect()->SetTypeOfMarker(Aspect_TOM_O_STAR);
481 aDrawer->PointAspect()->SetColor(Quantity_NOC_BLUE1);
482 aDrawer->PointAspect()->SetScale(2.);
485 aDrawer->SetPointAspect(new Prs3d_PointAspect(Aspect_TOM_O_STAR, Quantity_NOC_BLUE1, 2.));
486 myPreview->SetTransparency();
487 aCtx->Display(myPreview, true);
488 aCtx->Deactivate(myPreview);
491 myPreview->Set(theShape);
492 aCtx->Redisplay(myPreview, true);
497 void ModuleBase_WidgetSelectionFilter::onShowOnly(bool theShow)
499 if (myPreview.IsNull())
501 Handle(AIS_InteractiveContext) aCtx = myWorkshop->viewer()->AISContext();
505 aCtx->DisplayedObjects(AIS_KOI_Shape, -1, myListIO);
506 myListIO.Remove(myPreview);
508 AIS_ListOfInteractive::const_iterator aIt;
509 Handle(AIS_Shape) aShapeIO;
510 for (aIt = myListIO.cbegin(); aIt != myListIO.cend(); aIt++) {
511 aShapeIO = Handle(AIS_Shape)::DownCast(*aIt);
512 if (!aShapeIO.IsNull()) {
514 aCtx->Erase(aShapeIO, false);
516 aCtx->Display(aShapeIO, false);
519 aCtx->UpdateCurrentViewer();
522 void ModuleBase_WidgetSelectionFilter::updateSelectBtn()
524 mySelectBtn->setEnabled(myUseFilters.size() > 0);
527 void ModuleBase_WidgetSelectionFilter::updateNumberSelected()
529 int aNb = myValues.size();
530 myNbLbl->setText(QString::number(aNb));
531 //QString aErr = () ? tr("Selection is empty") : "";
533 myFeature->setError(tr("Selection is empty").toStdString(), false, false);
535 myFeature->setError("", false, false);
536 myFeature->data()->execState(ModelAPI_StateDone);
540 QList<QWidget*> ModuleBase_WidgetSelectionFilter::getControls() const
542 QList<QWidget*> aWidgets;
543 QList<ModuleBase_FilterItem*> aItems = myFiltersWgt->findChildren<ModuleBase_FilterItem*>();
544 foreach(ModuleBase_FilterItem* aItem, aItems) {
545 QList<QWidget*> aSubList = aItem->getControls();
546 foreach(QWidget* aWgt, aSubList) {
547 aWidgets.append(aWgt);
550 aWidgets.append(myFiltersCombo);
554 void ModuleBase_WidgetSelectionFilter::clearCurrentSelection(bool toUpdate)
557 if (!myPreview.IsNull()) {
558 Handle(AIS_InteractiveContext) aCtx = myWorkshop->viewer()->AISContext();
559 aCtx->Remove(myPreview, toUpdate);
564 void ModuleBase_WidgetSelectionFilter::onFeatureAccepted()
566 AttributePtr aAttr = mySelectorFeature->attribute(mySelectorAttribute);
567 AttributeSelectionListPtr aSelListAttr =
568 std::dynamic_pointer_cast<ModelAPI_AttributeSelectionList>(aAttr);
569 aSelListAttr->clear();
570 foreach(ModuleBase_ViewerPrsPtr aPrs, myValues) {
571 aSelListAttr->append(aPrs->object(), aPrs->shape());
575 bool ModuleBase_WidgetSelectionFilter::storeValueCustom()
577 ModuleBase_ModelWidget* aActive = myWorkshop->propertyPanel()->activeWidget();
579 return aActive->storeValue();
580 updateObject(myFeature);
584 bool ModuleBase_WidgetSelectionFilter::restoreValueCustom()
586 ModelAPI_FiltersFactory* aFactory = ModelAPI_Session::get()->filters();
587 FiltersFeaturePtr aFiltersFeature = std::dynamic_pointer_cast<ModelAPI_FiltersFeature>(myFeature);
588 std::list<std::string> aFilters = aFiltersFeature->filters();
589 std::list<std::string>::const_iterator aIt;
590 for (aIt = aFilters.cbegin(); aIt != aFilters.cend(); aIt++) {
591 std::string aStr = (*aIt);
593 FilterPtr aFilterObj = aFactory->filter(aStr);
594 int aId = myFiltersCombo->findText(aFilterObj->name().c_str());
596 myFiltersCombo->removeItem(aId);
598 // Init filters member of the parent attribute
599 AttributeSelectionListPtr aAttrList = mySelectorFeature->selectionList(mySelectorAttribute);
600 if (aAttrList->filters() != aFiltersFeature) {
601 aAttrList->setFilters(aFiltersFeature);
604 QList<QWidget*> aWidgets;
605 QList<ModuleBase_FilterItem*> aItems = myFiltersWgt->findChildren<ModuleBase_FilterItem*>();
606 foreach(ModuleBase_FilterItem* aItem, aItems) {
607 QList<ModuleBase_ModelWidget*> aSubList = aItem->widgets();
608 foreach(ModuleBase_ModelWidget* aWgt, aSubList) {
609 aWgt->restoreValue();
615 QString ModuleBase_WidgetSelectionFilter::getError(const bool theValueStateChecked) const
617 QString aErrorMsg = ModuleBase_ModelWidget::getError(theValueStateChecked);
618 if (aErrorMsg.isEmpty()) {
619 if (myValues.size() == 0)
620 aErrorMsg = tr("Selection is empty");
625 void ModuleBase_WidgetSelectionFilter::onObjectUpdated()
627 clearCurrentSelection(true);
628 updateNumberSelected();
629 updateObject(myFeature);