activateShapeSelection(true);
// Restore selection in the viewer by the attribute selection list
- myWorkshop->setSelected(getCurrentSelection());
+ myWorkshop->setSelected(getAttributeSelection());
activateFilters(myWorkshop, true);
}
}
if (isDone) {
updateObject(myFeature);
+ // this emit is necessary to call store/restore method an restore type of selection
emit valuesChanged();
}
return isDone;
}
}
-QList<ModuleBase_ViewerPrs> ModuleBase_WidgetMultiSelector::getCurrentSelection() const
+QList<ModuleBase_ViewerPrs> ModuleBase_WidgetMultiSelector::getAttributeSelection() const
{
QList<ModuleBase_ViewerPrs> aSelected;
// Restore selection in the viewer by the attribute selection list
/// Return the attribute values wrapped in a list of viewer presentations
/// \return a list of viewer presentations, which contains an attribute result and
/// a shape. If the attribute do not uses the shape, it is empty
- QList<ModuleBase_ViewerPrs> getCurrentSelection() const;
+ QList<ModuleBase_ViewerPrs> getAttributeSelection() const;
protected:
/// Update selection list
}
//********************************************************************
-QList<ModuleBase_ViewerPrs> ModuleBase_WidgetShapeSelector::getCurrentSelection() const
+QList<ModuleBase_ViewerPrs> ModuleBase_WidgetShapeSelector::getAttributeSelection() const
{
QList<ModuleBase_ViewerPrs> aSelected;
if(myFeature) {
activateSelection(true);
// Restore selection in the viewer by the attribute selection list
- myWorkshop->setSelected(getCurrentSelection());
+ myWorkshop->setSelected(getAttributeSelection());
activateFilters(myWorkshop, true);
}
/// Return the attribute values wrapped in a list of viewer presentations
/// \return a list of viewer presentations, which contains an attribute result and
/// a shape. If the attribute do not uses the shape, it is empty
- QList<ModuleBase_ViewerPrs> getCurrentSelection() const;
+ QList<ModuleBase_ViewerPrs> getAttributeSelection() const;
//----------- Class members -------------
protected: