20 #ifndef GeomValidators_ShapeType_H
21 #define GeomValidators_ShapeType_H
23 #include "GeomValidators.h"
24 #include "ModelAPI_AttributeValidator.h"
26 #include <GeomAPI_Shape.h>
63 GEOMVALIDATORS_EXPORT
virtual bool isValid(
const AttributePtr& theAttribute,
64 const std::list<std::string>& theArguments,
87 const bool theIsGeometricalSelection,
96 const bool theIsGeometricalSelection,
An event message for sending a string message which has to be translated.
Definition: Events_InfoMessage.h:35
A validator for shape types, such as vertex, line, circe or arc.
Definition: GeomValidators_ShapeType.h:37
bool isValidObject(const ObjectPtr &theObject, const TypeOfShape theShapeType, const bool theIsGeometricalSelection, Events_InfoMessage &theError) const
Returns true if the attibute's object type satisfies the argument value.
Definition: GeomValidators_ShapeType.cpp:216
TypeOfShape
Type of shape.
Definition: GeomValidators_ShapeType.h:41
bool isValidShape(const GeomShapePtr theShape, const TypeOfShape theShapeType, const bool theIsGeometricalSelection, Events_InfoMessage &theError) const
Returns true if the attibute's object type satisfies the argument value.
Definition: GeomValidators_ShapeType.cpp:258
bool isValidAttribute(const AttributePtr &theAttribute, const TypeOfShape theShapeType, Events_InfoMessage &theError) const
Returns true if the attibute's object type satisfies the argument value.
Definition: GeomValidators_ShapeType.cpp:131
static TypeOfShape shapeType(const std::string &theType)
Convert string to TypeOfShape value.
Definition: GeomValidators_ShapeType.cpp:45
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Returns true if attribute has shape type listed in the parameter arguments.
Definition: GeomValidators_ShapeType.cpp:95
Generic validator for any attribute of a feature.
Definition: ModelAPI_AttributeValidator.h:31