#include "GeomValidators.h"
#include "ModelAPI_AttributeValidator.h"
+#include <GeomAPI_Shape.h>
+
#include <string>
/**
{
AnyShape,
Vertex,
+ Edge,
Line,
- Circle
+ Circle,
+ Solid,
+ Face,
+ Compound
};
public:
bool isValidArgument(const AttributePtr& theAttribute,
const std::string& theArgument) const;
+ /// Returns true if the attibute's object type satisfies the argument value
+ /// \param theAttribute a checked attribute
+ /// \param theArgument a parameter
+ bool isValidAttribute(const AttributePtr& theAttribute,
+ const TypeOfShape theShapeType) const;
+
+ /// Returns true if the attibute's object type satisfies the argument value
+ /// \param theAttribute a checked object
+ /// \param theShapeType a shape type
+ bool isValidObject(const ObjectPtr& theObject,
+ const TypeOfShape theShapeType) const;
+
+ /// Returns true if the attibute's object type satisfies the argument value
+ /// \param theShape a checked shape
+ /// \param theShapeType a shape type
+ bool isValidShape(const GeomShapePtr theShape,
+ const TypeOfShape theShapeType) const;
+
};
#endif