20 #ifndef FeaturesPlugin_Validators_H_
21 #define FeaturesPlugin_Validators_H_
23 #include <ModelAPI_AttributeValidator.h>
24 #include <ModelAPI_FeatureValidator.h>
36 virtual bool isValid(
const AttributePtr& theAttribute,
37 const std::list<std::string>& theArguments,
51 virtual bool isValid(
const AttributePtr& theAttribute,
52 const std::list<std::string>& theArguments,
66 virtual bool isValid(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
67 const std::list<std::string>& theArguments,
81 virtual bool isValid(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
82 const std::list<std::string>& theArguments,
97 virtual bool isValid(
const AttributePtr& theAttribute,
98 const std::list<std::string>& theArguments,
102 bool isValidAttribute(
const AttributePtr& theAttribute,
103 const std::list<std::string>& theArguments,
119 virtual bool isValid(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
120 const std::list<std::string>& theArguments,
134 virtual bool isValid(
const AttributePtr& theAttribute,
135 const std::list<std::string>& theArguments,
150 virtual bool isValid(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
151 const std::list<std::string>& theArguments,
155 bool isShapesCanBeEmpty(
const AttributePtr& theAttribute,
169 virtual bool isValid(
const AttributePtr& theAttribute,
170 const std::list<std::string>& theArguments,
185 virtual bool isValid(
const AttributePtr& theAttribute,
186 const std::list<std::string>& theArguments,
201 virtual bool isValid(
const AttributePtr& theAttribute,
202 const std::list<std::string>& theArguments,
217 virtual bool isValid(
const AttributePtr& theAttribute,
218 const std::list<std::string>& theArguments,
233 virtual bool isValid(
const AttributePtr& theAttribute,
234 const std::list<std::string>& theArguments,
249 virtual bool isValid(
const AttributePtr& theAttribute,
250 const std::list<std::string>& theArguments,
264 virtual bool isValid(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
265 const std::list<std::string>& theArguments,
280 virtual bool isValid(
const AttributePtr& theAttribute,
281 const std::list<std::string>& theArguments,
295 virtual bool isValid(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
296 const std::list<std::string>& theArguments,
310 virtual bool isValid(
const AttributePtr& theAttribute,
311 const std::list<std::string>& theArguments,
325 virtual bool isValid(
const AttributePtr& theAttribute,
326 const std::list<std::string>& theArguments,
343 virtual bool isValid(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
344 const std::list<std::string>& theArguments,
348 virtual bool isNotObligatory(std::string theFeature, std::string theAttribute);
361 virtual bool isValid(
const AttributePtr& theAttribute,
362 const std::list<std::string>& theArguments,
376 virtual bool isValid(
const AttributePtr& theAttribute,
377 const std::list<std::string>& theArguments,
391 virtual bool isValid(
const AttributePtr& theAttribute,
392 const std::list<std::string>& theArguments,
409 virtual bool isValid(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
410 const std::list<std::string>& theArguments,
414 virtual bool isNotObligatory(std::string theFeature, std::string theAttribute);
427 virtual bool isValid(
const AttributePtr& theAttribute,
428 const std::list<std::string>& theArguments,
445 virtual bool isValid(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
446 const std::list<std::string>& theArguments,
450 virtual bool isNotObligatory(std::string theFeature, std::string theAttribute);
464 virtual bool isValid(
const AttributePtr& theAttribute,
465 const std::list<std::string>& theArguments,
480 virtual bool isValid(
const AttributePtr& theAttribute,
481 const std::list<std::string>& theArguments,
496 virtual bool isValid(
const AttributePtr& theAttribute,
497 const std::list<std::string>& theArguments,
An event message for sending a string message which has to be translated.
Definition: Events_InfoMessage.h:35
Verifies the selected object for intersection feature.
Definition: FeaturesPlugin_Validators.h:370
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1722
Validator for the base objects for generation.
Definition: FeaturesPlugin_Validators.h:113
virtual bool isValid(const std::shared_ptr< ModelAPI_Feature > &theFeature, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:374
A validator for selection base for generation.
Definition: FeaturesPlugin_Validators.h:91
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:283
Validates that boolean operation have enough arguments.
Definition: FeaturesPlugin_Validators.h:335
virtual bool isValid(const std::shared_ptr< ModelAPI_Feature > &theFeature, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Returns true if feature and/or attributes are valid.
Definition: FeaturesPlugin_Validators.cpp:1468
virtual bool isNotObligatory(std::string theFeature, std::string theAttribute)
Definition: FeaturesPlugin_Validators.cpp:1562
Validates that boolean operation have enough arguments.
Definition: FeaturesPlugin_Validators.h:437
virtual bool isValid(const std::shared_ptr< ModelAPI_Feature > &theFeature, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Returns true if feature and/or attributes are valid.
Definition: FeaturesPlugin_Validators.cpp:2000
virtual bool isNotObligatory(std::string theFeature, std::string theAttribute)
Definition: FeaturesPlugin_Validators.cpp:2046
Verifies the selected object for boolean common feature.
Definition: FeaturesPlugin_Validators.h:421
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1940
Validates that boolean operation have enough arguments.
Definition: FeaturesPlugin_Validators.h:401
virtual bool isNotObligatory(std::string theFeature, std::string theAttribute)
Definition: FeaturesPlugin_Validators.cpp:1926
virtual bool isValid(const std::shared_ptr< ModelAPI_Feature > &theFeature, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Returns true if feature and/or attributes are valid.
Definition: FeaturesPlugin_Validators.cpp:1848
Verifies the selected object for boolean fuse feature.
Definition: FeaturesPlugin_Validators.h:385
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1794
Validates selection for boolean operation.
Definition: FeaturesPlugin_Validators.h:178
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:874
Verifies the selected object for boolean smash feature.
Definition: FeaturesPlugin_Validators.h:355
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1575
Verifies the selected object is circular edge or cylindrical face.
Definition: FeaturesPlugin_Validators.h:319
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1450
A validator for selection at composite feature start.
Definition: FeaturesPlugin_Validators.h:128
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:578
Validator for the "Recover" feature.
Definition: FeaturesPlugin_Validators.h:304
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1403
Validates selection for fillet operation.
Definition: FeaturesPlugin_Validators.h:457
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:2055
A validator for extrusion from/to face attribute.
Definition: FeaturesPlugin_Validators.h:163
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:781
A validator for extrusion direction attribute.
Definition: FeaturesPlugin_Validators.h:144
virtual bool isValid(const std::shared_ptr< ModelAPI_Feature > &theFeature, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:627
Validates selection for 1d-fillet operation.
Definition: FeaturesPlugin_Validators.h:210
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1032
Validates selection for fillet operation.
Definition: FeaturesPlugin_Validators.h:194
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:965
Validates selection for glue faces operation.
Definition: FeaturesPlugin_Validators.h:489
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:2154
Validator for the same type of shape.
Definition: FeaturesPlugin_Validators.h:75
virtual bool isValid(const std::shared_ptr< ModelAPI_Feature > &theFeature, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:232
Validates selection for partition.
Definition: FeaturesPlugin_Validators.h:226
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1119
Validator for the pipe locations.
Definition: FeaturesPlugin_Validators.h:60
virtual bool isValid(const std::shared_ptr< ModelAPI_Feature > &theFeature, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:181
A validator for selection pipe locations.
Definition: FeaturesPlugin_Validators.h:45
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:104
A validator for selection pipe path.
Definition: FeaturesPlugin_Validators.h:30
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:74
Validator for the Remove Sub-Shapes feature.
Definition: FeaturesPlugin_Validators.h:258
virtual bool isValid(const std::shared_ptr< ModelAPI_Feature > &theFeature, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1241
Validates selection for "Remove Sub-Shapes" feature.
Definition: FeaturesPlugin_Validators.h:242
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1179
Validates selection for sewing operation.
Definition: FeaturesPlugin_Validators.h:473
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:2102
Validator for the "Union" feature.
Definition: FeaturesPlugin_Validators.h:289
virtual bool isValid(const std::shared_ptr< ModelAPI_Feature > &theFeature, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1353
Validates selection for "Union" feature.
Definition: FeaturesPlugin_Validators.h:273
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1302
Generic validator for any attribute of a feature.
Definition: ModelAPI_AttributeValidator.h:31
The geneneric validator for the whole feature.
Definition: ModelAPI_FeatureValidator.h:35