SHAPER  9.12.0
BuildPlugin_ValidatorBaseForSolids Class Reference

A validator for selection base shapes for solid. More...

Inheritance diagram for BuildPlugin_ValidatorBaseForSolids:
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
 Returns true if attributes is ok. More...
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 selection base shapes for solid.

Allows to select faces closed enough to create a solid.

Member Function Documentation

◆ isValid()

bool BuildPlugin_ValidatorBaseForSolids::isValid ( const std::shared_ptr< ModelAPI_Feature > &  theFeature,
const std::list< std::string > &  theArguments,
Events_InfoMessage theError 
) const

Returns true if attributes is ok.

theFeaturethe checked feature.
theArgumentsarguments of the feature.
theErrorerror message.

remove objects of sub-type if ojects of correct type is in List, in some cases : Solid builder: faces and shapes shells or solids seleted --> remove faces

Implements ModelAPI_FeatureValidator.

◆ isNotObligatory()

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