tooltip="Select a set of objects"
type_choice="Vertices Edges Faces Solids"
use_choice="true"
- clear_in_neutral_point="false">
+ clear_in_neutral_point="false"
+ filter_points="false" >
<validator id="GeomValidators_BodyShapes"/>
</multi_selector>
</source>
\ No newline at end of file
title="Field"
tooltip="Create fields for selected shapes"
icon="icons/Collection/field.png">
- <field-panel id="selected">
+ <field-panel id="selected"
+ filter_points="false" >
<validator id="GeomValidators_BodyShapes"/>
</field-panel>
</feature>
#include <ModelAPI_Events.h>
#include <ModelAPI_ResultConstruction.h>
+#include <Config_WidgetAPI.h>
+
#include <TopoDS_Iterator.hxx>
ModuleBase_WidgetSelector::ModuleBase_WidgetSelector(QWidget* theParent,
ModuleBase_IWorkshop* theWorkshop,
const Config_WidgetAPI* theData)
-: ModuleBase_WidgetValidated(theParent, theWorkshop, theData)
+: ModuleBase_WidgetValidated(theParent, theWorkshop, theData),
+myIsPointsFiltering(true)
{
+ QString aFiltering = QString::fromStdString(theData->getProperty("filter_points"));
+ if (aFiltering.toLower() == "false")
+ myIsPointsFiltering = false;
}
//********************************************************************
{
QList<ModuleBase_ViewerPrsPtr> aSelected = getFilteredSelected();
// equal vertices should not be used here
- ModuleBase_ISelection::filterSelectionOnEqualPoints(aSelected);
+ if (myIsPointsFiltering)
+ ModuleBase_ISelection::filterSelectionOnEqualPoints(aSelected);
bool isDone = setSelection(aSelected, true/*false*/);
updateOnSelectionChanged(isDone);