#ifndef SMESH_HypoFilter_HeaderFile
#define SMESH_HypoFilter_HeaderFile
+#include "SMESH_SMESH.hxx"
+
// ===========================
// Filter of SMESH_Hypothesis
// ===========================
class SMESH_HypoFilter;
class SMESH_Hypothesis;
-class SMESH_HypoPredicate {
+class SMESH_EXPORT SMESH_HypoPredicate {
public:
virtual bool IsOk(const SMESH_Hypothesis* aHyp,
const TopoDS_Shape& aShape) const = 0;
friend class SMESH_HypoFilter;
};
-class SMESH_HypoFilter: public SMESH_HypoPredicate
+class SMESH_EXPORT SMESH_HypoFilter: public SMESH_HypoPredicate
{
public:
// Create and add predicates.
static SMESH_HypoPredicate* HasDim(const int theDim);
static SMESH_HypoPredicate* HasType(const int theHypType);
+ /*!
+ * \brief check aHyp or/and aShape it is assigned to
+ */
bool IsOk (const SMESH_Hypothesis* aHyp,
const TopoDS_Shape& aShape) const;
- // check aHyp or/and aShape it is assigned to
+ /*!
+ * \brief return true if contains no predicates
+ */
+ bool IsAny() const { return myPredicates.empty(); }
~SMESH_HypoFilter();