SHAPER  9.12.0
SketchPlugin_SplitValidator Class Reference

Validator for the entity of the following type: More...

Inheritance diagram for SketchPlugin_SplitValidator:
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 entity of the following type:

  • Linear segment with point(s) coinident to this line
  • Arc with point(s) coincident to the arc
  • Circle with at least 2 split-points on this circle

Checks that there are coincident point on selected feature.

Member Function Documentation

◆ isValid()

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

returns true if attribute is valid

theAttributethe checked attribute
theArgumentsarguments of the attribute
theErrorerror message

Implements ModelAPI_AttributeValidator.