// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// File : SMESH_NumberFilter.hxx
// Module : SMESH
#ifndef _SMESH_NumberFilter_HeaderFile
#define _SMESH_NumberFilter_HeaderFile
+#include "SMESH_Type.h"
+
#include "SUIT_SelectionFilter.h"
#include <TopAbs_ShapeEnum.hxx>
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(GEOM_Gen)
+#include <string>
+
class SUIT_DataOwner;
/*!
* Filter geom objects by number of subshapes of the given type
* Parameters of constructor:
* * theSubShapeType - Type of subshape
- * * theNumber - Number of subshapes. Object is selected if it contains theNumber of
- * theSubShapeType sub-shapes
+ * * theNumber - Number of subshapes. Object is selected if it contains
+ * theNumber of theSubShapeType sub-shapes, or at least
+ * one theSubShapeType, provided that theNumber==0
* * theShapeType - This map specifies types of object to be selected
* * theMainObject - Sub-shapes of this object is selected only
* * theIsClosedOnly - Closed shapes is selected if this parameter is true
*/
-class SMESH_NumberFilter : public SUIT_SelectionFilter
+class SMESHFILTERSSELECTION_EXPORT SMESH_NumberFilter : public SUIT_SelectionFilter
{
public:
SMESH_NumberFilter (const char* theKind,
GEOM::GEOM_Object_ptr getGeom (const SUIT_DataOwner*, const bool extractReference = true ) const;
private:
- char* myKind;
+ std::string myKind;
TopAbs_ShapeEnum mySubShapeType;
int myNumber;
bool myIsClosedOnly;