SHAPER  9.12.0
FeaturesPlugin_ValidatorBaseForGenerationSketchOrSketchObjects Class Reference

Validator for the base objects for generation. More...

Inheritance diagram for FeaturesPlugin_ValidatorBaseForGenerationSketchOrSketchObjects:
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 base objects for generation.

Checks that sketch and it objects are not selected at the same time.

Member Function Documentation

◆ isValid()

bool FeaturesPlugin_ValidatorBaseForGenerationSketchOrSketchObjects::isValid ( const std::shared_ptr< ModelAPI_Feature > &  theFeature,
const std::list< std::string > &  theArguments,
Events_InfoMessage theError 
) const
true if sketch and it objects not selected at the same time.
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