SHAPER  9.12.0
FeaturesPlugin_ValidatorLoftSameTypeShape Class Reference

Validator for the same type of shape. More...

Inheritance diagram for FeaturesPlugin_ValidatorLoftSameTypeShape:
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 same type of shape.

Member Function Documentation

◆ isValid()

bool FeaturesPlugin_ValidatorLoftSameTypeShape::isValid ( const std::shared_ptr< ModelAPI_Feature > &  theFeature,
const std::list< std::string > &  theArguments,
Events_InfoMessage theError 
) const
virtual
Returns
true if the type of selected are the same
Parameters
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 
)
virtualinherited