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,
265 virtual bool isValid(
const AttributePtr& theAttribute,
266 const std::list<std::string>& theArguments,
281 virtual bool isValid(
const AttributePtr& theAttribute,
282 const std::list<std::string>& theArguments,
296 virtual bool isValid(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
297 const std::list<std::string>& theArguments,
312 virtual bool isValid(
const AttributePtr& theAttribute,
313 const std::list<std::string>& theArguments,
327 virtual bool isValid(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
328 const std::list<std::string>& theArguments,
342 virtual bool isValid(
const AttributePtr& theAttribute,
343 const std::list<std::string>& theArguments,
357 virtual bool isValid(
const AttributePtr& theAttribute,
358 const std::list<std::string>& theArguments,
375 virtual bool isValid(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
376 const std::list<std::string>& theArguments,
380 virtual bool isNotObligatory(std::string theFeature, std::string theAttribute);
393 virtual bool isValid(
const AttributePtr& theAttribute,
394 const std::list<std::string>& theArguments,
408 virtual bool isValid(
const AttributePtr& theAttribute,
409 const std::list<std::string>& theArguments,
423 virtual bool isValid(
const AttributePtr& theAttribute,
424 const std::list<std::string>& theArguments,
441 virtual bool isValid(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
442 const std::list<std::string>& theArguments,
446 virtual bool isNotObligatory(std::string theFeature, std::string theAttribute);
459 virtual bool isValid(
const AttributePtr& theAttribute,
460 const std::list<std::string>& theArguments,
477 virtual bool isValid(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
478 const std::list<std::string>& theArguments,
482 virtual bool isNotObligatory(std::string theFeature, std::string theAttribute);
496 virtual bool isValid(
const AttributePtr& theAttribute,
497 const std::list<std::string>& theArguments,
512 virtual bool isValid(
const AttributePtr& theAttribute,
513 const std::list<std::string>& theArguments,
528 virtual bool isValid(
const AttributePtr& theAttribute,
529 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:402
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1877
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:375
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:284
Validates that boolean operation have enough arguments.
Definition: FeaturesPlugin_Validators.h:367
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:1623
virtual bool isNotObligatory(std::string theFeature, std::string theAttribute)
Definition: FeaturesPlugin_Validators.cpp:1717
Validates that boolean operation have enough arguments.
Definition: FeaturesPlugin_Validators.h:469
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:2155
virtual bool isNotObligatory(std::string theFeature, std::string theAttribute)
Definition: FeaturesPlugin_Validators.cpp:2201
Verifies the selected object for boolean common feature.
Definition: FeaturesPlugin_Validators.h:453
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:2095
Validates that boolean operation have enough arguments.
Definition: FeaturesPlugin_Validators.h:433
virtual bool isNotObligatory(std::string theFeature, std::string theAttribute)
Definition: FeaturesPlugin_Validators.cpp:2081
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:2003
Verifies the selected object for boolean fuse feature.
Definition: FeaturesPlugin_Validators.h:417
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1949
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:875
Verifies the selected object for boolean smash feature.
Definition: FeaturesPlugin_Validators.h:387
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1730
Verifies the selected object is circular edge or cylindrical face.
Definition: FeaturesPlugin_Validators.h:351
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1605
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:579
Validator for the "Recover" feature.
Definition: FeaturesPlugin_Validators.h:336
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1558
Validates selection for fillet 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:2210
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:782
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:628
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:1033
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:966
Validates selection for glue faces operation.
Definition: FeaturesPlugin_Validators.h:521
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:2309
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:233
Validates selection for "Offset" feature.
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:1120
Validates selection for partition.
Definition: FeaturesPlugin_Validators.h:258
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1274
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:182
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:105
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:75
Validator for the Remove Sub-Shapes feature.
Definition: FeaturesPlugin_Validators.h:290
virtual bool isValid(const std::shared_ptr< ModelAPI_Feature > &theFeature, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1396
Validates selection for "Remove Sub-Shapes" feature.
Definition: FeaturesPlugin_Validators.h:274
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1334
Validates selection for sewing operation.
Definition: FeaturesPlugin_Validators.h:505
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:2257
Validates selection for "Thickness" 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:1178
Validator for the "Union" feature.
Definition: FeaturesPlugin_Validators.h:321
virtual bool isValid(const std::shared_ptr< ModelAPI_Feature > &theFeature, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1508
Validates selection for "Union" feature.
Definition: FeaturesPlugin_Validators.h:305
virtual bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Definition: FeaturesPlugin_Validators.cpp:1457
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