SHAPER  9.12.0
BuildPlugin_ValidatorBaseForWire Class Reference

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

Inheritance diagram for BuildPlugin_ValidatorBaseForWire:
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 wire.

Allows to select edges on sketch and wires objects that are connected to already selected shapes.

Member Function Documentation

◆ isValid()

bool BuildPlugin_ValidatorBaseForWire::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 : Wire builder: wires and edges selected

Implements ModelAPI_FeatureValidator.

◆ isNotObligatory()

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