SHAPER  9.12.0
FeaturesPlugin_ValidatorRemoveSubShapesResult Class Reference

Validator for the Remove Sub-Shapes feature. More...

Inheritance diagram for FeaturesPlugin_ValidatorRemoveSubShapesResult:
Inheritance graph

Public Member Functions

virtual bool isValid (const std::shared_ptr< ModelAPI_Feature > &theFeature, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
virtual bool isNotObligatory (std::string theFeature, std::string theAttribute)
 Returns true if the attribute in feature is not obligatory for the feature execution. More...

Detailed Description

Validator for the Remove Sub-Shapes feature.

Member Function Documentation

◆ isValid()

bool FeaturesPlugin_ValidatorRemoveSubShapesResult::isValid ( const std::shared_ptr< ModelAPI_Feature > &  theFeature,
const std::list< std::string > &  theArguments,
Events_InfoMessage theError 
) const
true if result is valid shape.
theFeaturethe checked feature
theArgumentsarguments of the feature (not used)
theErrorerror message

Implements ModelAPI_FeatureValidator.

◆ isNotObligatory()

bool ModelAPI_FeatureValidator::isNotObligatory ( std::string  theFeature,
std::string  theAttribute