X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFiltersPlugin%2FFiltersPlugin_BelongsTo.cpp;h=9c7010b2d1204cb245e93ddefb45299d9114ebe4;hb=09365c927ebe8d881de2eda7f96bc33a2d9511c8;hp=b03093e0ff05dc3454cbb66bee49878ce17ae7a5;hpb=c155919c16327dae7e09cd1e6a5b6d166e844767;p=modules%2Fshaper.git diff --git a/src/FiltersPlugin/FiltersPlugin_BelongsTo.cpp b/src/FiltersPlugin/FiltersPlugin_BelongsTo.cpp index b03093e0f..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)