SHAPER  9.12.0
SketchPlugin_CurveFittingValidator Class Reference

Validator for the selected vertices for the curve fitting feature. More...

Inheritance diagram for SketchPlugin_CurveFittingValidator:
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 number of selected points is greater than the minimal value 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

Validator for the selected vertices for the curve fitting feature.

Member Function Documentation

◆ isValid()

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

returns true if number of selected points is greater than the minimal value

Parameters
theAttributethe checked attribute
theArgumentsarguments of the attribute
theErrorerror message

Implements ModelAPI_FeatureValidator.

◆ isNotObligatory()

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