SHAPER  9.12.0
SketchPlugin_ThirdPointValidator Class Reference

Validator for the third point of MacroCircle feature. More...

Inheritance diagram for SketchPlugin_ThirdPointValidator:
Inheritance graph

Public Member Functions

virtual bool isValid (const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
 returns true if attribute is valid More...
 

Detailed Description

Validator for the third point of MacroCircle feature.

Checks that third point does not lie on a line passed through the first two points. Checks that third point does not refer to feature lying between the first two points.

Member Function Documentation

◆ isValid()

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

returns true if attribute is valid

Parameters
theAttributethe checked attribute
theArgumentsarguments of the attribute
theErrorerror message

Implements ModelAPI_AttributeValidator.