X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomValidators%2FGeomValidators_ShapeType.h;h=5d30779b107c5c88a3906bb53683fcc5e380ee82;hb=de596ab18a7a14ffd7d82ed9e35b1fa53dc3e756;hp=de7fae9ba6575bec0ff18ab6243b30c0c9942a3a;hpb=c6735117e1b786d39bbae7bd3b8e4a1297fff099;p=modules%2Fshaper.git diff --git a/src/GeomValidators/GeomValidators_ShapeType.h b/src/GeomValidators/GeomValidators_ShapeType.h index de7fae9ba..5d30779b1 100644 --- a/src/GeomValidators/GeomValidators_ShapeType.h +++ b/src/GeomValidators/GeomValidators_ShapeType.h @@ -26,14 +26,16 @@ class GeomValidators_ShapeType : public ModelAPI_AttributeValidator // the edge type enum TypeOfShape { - AnyShape, + Empty, Vertex, Edge, Line, Circle, - Solid, Face, - Compound + Solid, + Compound, + Plane, + AnyShape }; public: @@ -42,7 +44,8 @@ class GeomValidators_ShapeType : public ModelAPI_AttributeValidator //! \param theAttribute the checked attribute //! \param theArguments arguments of the attribute GEOMVALIDATORS_EXPORT virtual bool isValid(const AttributePtr& theAttribute, - const std::list& theArguments) const; + const std::list& theArguments, + std::string& theError) const; protected: /// Convert string to TypeOfShape value /// \param theType a string value