SHAPER  9.12.0
FeaturesPlugin_ValidatorExtrusionDir Class Reference

A validator for extrusion direction attribute. More...

Inheritance diagram for FeaturesPlugin_ValidatorExtrusionDir:
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

A validator for extrusion direction attribute.

Allows it to be empty if base objects are planar and do not contain vertices and edges.

Member Function Documentation

◆ isValid()

bool FeaturesPlugin_ValidatorExtrusionDir::isValid ( const std::shared_ptr< ModelAPI_Feature > &  theFeature,
const std::list< std::string > &  theArguments,
Events_InfoMessage theError 
) const
true if attribute listed in the parameter arguments are planar.
[in]theFeaturethe checked feature.
[in]theArgumentsarguments of the attribute.
[out]theErrorerror message.

Implements ModelAPI_FeatureValidator.

◆ isNotObligatory()

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