SHAPER  9.12.0
SketchPlugin_ExternalValidator Class Reference

Validator for the points selection. More...

Inheritance diagram for SketchPlugin_ExternalValidator:
Inheritance graph

Public Member Functions

virtual SKETCHPLUGIN_EXPORT bool isValid (const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
 returns true if the feature of attribute do not contain external features in the given attribute and among attributes listed in the arguments More...
 

Protected Member Functions

bool isExternalAttribute (const AttributePtr &theAttribute) const
 returns true if the feature of the attribute is external More...
 

Detailed Description

Validator for the points selection.

Allows to select points only.

Member Function Documentation

◆ isValid()

bool SketchPlugin_ExternalValidator::isValid ( const AttributePtr &  theAttribute,
const std::list< std::string > &  theArguments,
Events_InfoMessage theError 
) const
virtual

returns true if the feature of attribute do not contain external features in the given attribute and among attributes listed in the arguments

Parameters
theAttributean attribute to check
theArgumentsa filter parameters
theErrorerror message

Implements ModelAPI_AttributeValidator.

◆ isExternalAttribute()

bool SketchPlugin_ExternalValidator::isExternalAttribute ( const AttributePtr &  theAttribute) const
protected

returns true if the feature of the attribute is external

Parameters
theAttributean attribute to check