SHAPER  9.12.0
BuildPlugin_ValidatorBaseForFace Class Reference

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

Inheritance diagram for BuildPlugin_ValidatorBaseForFace:
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 face.

Allows to select sketch edges, edges and wires objects that lie in the same plane and don't have intersections.

Member Function Documentation

◆ isValid()

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

Returns true if attributes is ok.

Parameters
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 :

  • Face builder: edges, faces and wires selected --> remove edges and wires

Implements ModelAPI_FeatureValidator.

◆ isNotObligatory()

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