SHAPER  9.12.0
FeaturesPlugin_ValidatorBaseForGeneration Class Reference

A validator for selection base for generation. More...

Inheritance diagram for FeaturesPlugin_ValidatorBaseForGeneration:
Inheritance graph

Public Member Functions

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

Detailed Description

A validator for selection base for generation.

Allows to select faces on sketch, whole sketch (if it has at least one face), and following objects: vertex, edge, wire, face.

Member Function Documentation

◆ isValid()

bool FeaturesPlugin_ValidatorBaseForGeneration::isValid ( const AttributePtr &  theAttribute,
const std::list< std::string > &  theArguments,
Events_InfoMessage theError 
) const
true if attribute has selection type listed in the parameter arguments.
[in]theAttributethe checked attribute.
[in]theArgumentsarguments of the attribute.
[out]theErrorerror message.

Implements ModelAPI_AttributeValidator.