SHAPER  9.12.0
SketchPlugin_NotFixedValidator Class Reference

Validator for the rigid constraint input. More...

Inheritance diagram for SketchPlugin_NotFixedValidator:
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 not used in another rigid constraint More...
 

Detailed Description

Validator for the rigid constraint input.

It just checks there is no rigid constraint for the current feature.

Member Function Documentation

◆ isValid()

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

returns true if attribute is not used in another rigid constraint

Parameters
theAttributethe checked attribute
theArgumentsarguments of the attribute
theErrorerror message

Implements ModelAPI_AttributeValidator.