Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compute progress bar
[modules/smesh.git]
/
src
/
SMESHFiltersSelection
/
SMESH_NumberFilter.hxx
diff --git
a/src/SMESHFiltersSelection/SMESH_NumberFilter.hxx
b/src/SMESHFiltersSelection/SMESH_NumberFilter.hxx
index c4d3d84180d5a1dfd849bf3f82c3a5eb143a4e6f..a1cd52702d07615329d994c7f63edbb409c5fdfd 100644
(file)
--- a/
src/SMESHFiltersSelection/SMESH_NumberFilter.hxx
+++ b/
src/SMESHFiltersSelection/SMESH_NumberFilter.hxx
@@
-1,28
+1,33
@@
-// Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
+//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
+// License as published by the Free Software Foundation; either
// version 2.1 of the License.
// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+//
+// This library is distributed in the hope that it will be useful
,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// Lesser General Public License for more details.
//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
+// You should have received a copy of the GNU Lesser General Public
+// 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/ or email : webmaster.salome@opencascade.com
//
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+
// File : SMESH_NumberFilter.hxx
// Module : SMESH
// File : SMESH_NumberFilter.hxx
// Module : SMESH
-
+//
#ifndef _SMESH_NumberFilter_HeaderFile
#define _SMESH_NumberFilter_HeaderFile
#ifndef _SMESH_NumberFilter_HeaderFile
#define _SMESH_NumberFilter_HeaderFile
+#include "SMESH_Type.h"
+
#include "SUIT_SelectionFilter.h"
#include <TopAbs_ShapeEnum.hxx>
#include "SUIT_SelectionFilter.h"
#include <TopAbs_ShapeEnum.hxx>
@@
-31,6
+36,8
@@
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(GEOM_Gen)
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(GEOM_Gen)
+#include <string>
+
class SUIT_DataOwner;
/*!
class SUIT_DataOwner;
/*!
@@
-39,13
+46,14
@@
class SUIT_DataOwner;
* Filter geom objects by number of subshapes of the given type
* Parameters of constructor:
* * theSubShapeType - Type of subshape
* 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
*/
* * 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 SMESH
FILTERSSELECTION_EXPORT SMESH
_NumberFilter : public SUIT_SelectionFilter
{
public:
SMESH_NumberFilter (const char* theKind,
{
public:
SMESH_NumberFilter (const char* theKind,
@@
-77,7
+85,7
@@
class SMESH_NumberFilter : public SUIT_SelectionFilter
GEOM::GEOM_Object_ptr getGeom (const SUIT_DataOwner*, const bool extractReference = true ) const;
private:
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;
TopAbs_ShapeEnum mySubShapeType;
int myNumber;
bool myIsClosedOnly;