SHAPER  9.12.0
SketchPlugin_HasNoConstraint Class Reference

Validator for checking whether the feature has constraint. More...

Inheritance diagram for SketchPlugin_HasNoConstraint:
Inheritance graph

Public Member Functions

virtual bool isValid (const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
 returns true if attribute is valid More...
 

Detailed Description

Validator for checking whether the feature has constraint.

Checks that feature of the attribute does not have constraint with some kinds. The kinds of constraints should be described in parameters of the validator Validator processes the ModelAPI_AttributeRefAttr attribute kind

Member Function Documentation

◆ isValid()

bool SketchPlugin_HasNoConstraint::isValid ( const AttributePtr &  theAttribute,
const std::list< std::string > &  theArguments,
Events_InfoMessage theError 
) const
virtual

returns true if attribute is valid

Parameters
theAttributethe checked attribute
theArgumentsarguments of the attribute
theErrorerror message

Implements ModelAPI_AttributeValidator.