|
SHAPER
9.15.0
|
A validator for shape types, such as vertex, line, circe or arc. More...

Public Types | |
| enum | TypeOfShape { Empty , Vertex , Edge , Line , Circle , Wire , Face , Plane , Shell , Solid , CompSolid , Compound , AnyShape } |
| Type of shape. More... | |
Public Member Functions | |
| virtual bool | isValid (const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const |
| Returns true if attribute has shape type listed in the parameter arguments. More... | |
Static Public Member Functions | |
| static TypeOfShape | shapeType (const std::string &theType) |
| Convert string to TypeOfShape value. More... | |
Protected Member Functions | |
| bool | isValidAttribute (const AttributePtr &theAttribute, const TypeOfShape theShapeType, Events_InfoMessage &theError) const |
| Returns true if the attibute's object type satisfies the argument value. More... | |
| bool | isValidObject (const ObjectPtr &theObject, const TypeOfShape theShapeType, const bool theIsGeometricalSelection, Events_InfoMessage &theError) const |
| Returns true if the attibute's object type satisfies the argument value. More... | |
| bool | isValidShape (const GeomShapePtr theShape, const TypeOfShape theShapeType, const bool theIsGeometricalSelection, Events_InfoMessage &theError) const |
| Returns true if the attibute's object type satisfies the argument value. More... | |
A validator for shape types, such as vertex, line, circe or arc.
If there are some argument parameters, this validator returns true if the attribute satisfied at least one argument (OR combination of arguments).
Type of shape.
|
virtual |
Returns true if attribute has shape type listed in the parameter arguments.
| [in] | theAttribute | the checked attribute |
| [in] | theArguments | arguments of the attribute |
| [out] | theError | error message. |
Implements ModelAPI_AttributeValidator.
Reimplemented in FiltersPlugin_ShapeTypeValidator.
|
static |
Convert string to TypeOfShape value.
| theType | a string value |
|
protected |
Returns true if the attibute's object type satisfies the argument value.
| [in] | theAttribute | a checked attribute |
| [in] | theShapeType | a type of shape |
| [out] | theError | error message. |
|
protected |
Returns true if the attibute's object type satisfies the argument value.
| [in] | theObject | a checked object |
| [in] | theShapeType | a shape type |
| [out] | theError | error message. |
|
protected |
Returns true if the attibute's object type satisfies the argument value.
| [in] | theShape | a checked shape |
| [in] | theShapeType | a shape type |
| [out] | theError | error message. |