class ModuleBase_SelectionValidator : public ModelAPI_Validator
{
public:
- virtual ~ModuleBase_SelectionValidator();
- /// Returns True if selection is valid
- /// \param theSelection selection instance
- virtual bool isValid(const ModuleBase_ISelection* theSelection) const = 0;
-
/// Returns True if selection is valid
/// \param theSelection selection instance
/// \param theArguments list of arguments
- virtual bool isValid(const ModuleBase_ISelection* theSelection,
+ virtual MODULEBASE_EXPORT bool isValid(const ModuleBase_ISelection* theSelection,
const std::list<std::string>& theArguments) const;
+ protected:
+ /// Returns True if selection is valid
+ /// \param theSelection selection instance
+ virtual bool isValid(const ModuleBase_ISelection* theSelection) const = 0;
};
#endif
//! A class to validate a selection for Distance constraint operation
class PartSet_DistanceSelection : public ModuleBase_SelectionValidator
{
- public:
+ protected:
PARTSET_EXPORT virtual bool isValid(const ModuleBase_ISelection* theSelection) const;
};
//! A class to validate a selection for Length constraint operation
class PartSet_LengthSelection : public ModuleBase_SelectionValidator
{
- public:
+ protected:
PARTSET_EXPORT virtual bool isValid(const ModuleBase_ISelection* theSelection) const;
};
//! A class to validate a selection for Perpendicular constraint operation
class PartSet_PerpendicularSelection : public ModuleBase_SelectionValidator
{
- public:
+ protected:
PARTSET_EXPORT virtual bool isValid(const ModuleBase_ISelection* theSelection) const;
};
//! A class to validate a selection for Parallel constraint operation
class PartSet_ParallelSelection : public ModuleBase_SelectionValidator
{
- public:
+ protected:
PARTSET_EXPORT virtual bool isValid(const ModuleBase_ISelection* theSelection) const;
};
//! A class to validate a selection for Radius constraint operation
class PartSet_RadiusSelection : public ModuleBase_SelectionValidator
{
- public:
+ protected:
PARTSET_EXPORT virtual bool isValid(const ModuleBase_ISelection* theSelection) const;
};
//! A class to validate a selection for Rigid constraint operation
class PartSet_RigidSelection : public ModuleBase_SelectionValidator
{
- public:
+ protected:
PARTSET_EXPORT virtual bool isValid(const ModuleBase_ISelection* theSelection) const;
};
//! A class to validate a selection for coincedence constraint operation
class PartSet_CoincidentSelection : public ModuleBase_SelectionValidator
{
- public:
+ protected:
PARTSET_EXPORT virtual bool isValid(const ModuleBase_ISelection* theSelection) const;
};
//! A class to validate a selection for Horizontal and Vertical constraints operation
class PartSet_HVDirSelection : public ModuleBase_SelectionValidator
{
- public:
+ protected:
PARTSET_EXPORT virtual bool isValid(const ModuleBase_ISelection* theSelection) const;
};
//! A class to validate a selection for Tangential constraints operation
class PartSet_TangentSelection : public ModuleBase_SelectionValidator
{
- public:
+ protected:
PARTSET_EXPORT virtual bool isValid(const ModuleBase_ISelection* theSelection) const;
};
//! A class to validate a selection for Fillet constraints operation
class PartSet_FilletSelection : public ModuleBase_SelectionValidator
{
- public:
+ protected:
PARTSET_EXPORT virtual bool isValid(const ModuleBase_ISelection* theSelection) const;
};