X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFiltersPlugin%2FFiltersPlugin_BelongsTo.cpp;h=9c7010b2d1204cb245e93ddefb45299d9114ebe4;hb=09365c927ebe8d881de2eda7f96bc33a2d9511c8;hp=45a045e0a3ee367782bad358f61b453c1560b15a;hpb=01dbd58cc4ad49d9ff5c506257572a269e1d599d;p=modules%2Fshaper.git diff --git a/src/FiltersPlugin/FiltersPlugin_BelongsTo.cpp b/src/FiltersPlugin/FiltersPlugin_BelongsTo.cpp index 45a045e0a..9c7010b2d 100644 --- a/src/FiltersPlugin/FiltersPlugin_BelongsTo.cpp +++ b/src/FiltersPlugin/FiltersPlugin_BelongsTo.cpp @@ -26,8 +26,8 @@ bool FiltersPlugin_BelongsTo::isSupported(GeomAPI_Shape::ShapeType theType) cons return true; } -bool FiltersPlugin_BelongsTo::isOk(const GeomShapePtr& theShape, - const ModelAPI_FiltersArgs& theArgs) const +bool FiltersPlugin_BelongsTo::isOk(const GeomShapePtr& theShape, const ResultPtr&, + const ModelAPI_FiltersArgs& theArgs) const { AttributePtr aAttr = theArgs.argument("BelongsTo"); AttributeSelectionListPtr aList = @@ -43,19 +43,9 @@ bool FiltersPlugin_BelongsTo::isOk(const GeomShapePtr& theShape, return false; } -static std::string XMLRepresentation = -"" -" " -" " -""; - - std::string FiltersPlugin_BelongsTo::xmlRepresentation() const { - return XMLRepresentation; + return xmlFromFile("filter-BelongsTo.xml"); } void FiltersPlugin_BelongsTo::initAttributes(ModelAPI_FiltersArgs& theArguments)