SHAPER  9.12.0
SketchPlugin_FilletVertexValidator Class Reference

Validator for the point for fillet creation. More...

Inheritance diagram for SketchPlugin_FilletVertexValidator:
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...
 

Static Public Member Functions

static bool isValidVertex (const AttributePtr &theAttribute, Events_InfoMessage &theError, FeaturePtr &theEdge1, FeaturePtr &theEdge2)
 returns true if attribute is a good point for fillet More...
 

Detailed Description

Validator for the point for fillet creation.

Checks that selected point have exactly two coincident lines.

Member Function Documentation

◆ isValid()

bool SketchPlugin_FilletVertexValidator::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 (not used)
theErrorerror message

Implements ModelAPI_AttributeValidator.

◆ isValidVertex()

bool SketchPlugin_FilletVertexValidator::isValidVertex ( const AttributePtr &  theAttribute,
Events_InfoMessage theError,
FeaturePtr &  theEdge1,
FeaturePtr &  theEdge2 
)
static

returns true if attribute is a good point for fillet

Parameters
theAttributethe checked point attribute
theErrorerror message
theEdge1adjacent edge feature
theEdge2adjacent edge feature