SHAPER  9.12.0
SketchPlugin_TrimValidator Class Reference

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

Inheritance diagram for SketchPlugin_TrimValidator:
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 or intersected it
  • Arc with point(s) coincident to the arc or intersected it
  • Circle with at least 2 split-points on this circle or intersected it

Checks that there are coincident point on selected feature.

Member Function Documentation

◆ isValid()

bool SketchPlugin_TrimValidator::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.