// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// 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
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// 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
//
//
//
#ifndef SMESHGUI_Filter_HeaderFile
#define SMESHGUI_Filter_HeaderFile
+#include "SMESH_SMESHGUI.hxx"
+
#include "VTKViewer_Filter.h"
#include <SALOMEconfig.h>
SMESHGUI_VolumeFilter = 3,
SMESHGUI_AllElementsFilter = 4,
SMESHGUI_QuadFilter = 5,
- SMESHGUI_TriaFilter = 6
+ SMESHGUI_TriaFilter = 6,
+ SMESHGUI_LastFilter
};
/*
Class : SMESHGUI_Filter
- Description : Base class for SMESH selection filters for VTK viewer.
+ Description : Base class for SMESH selection filters for VTK viewer.
*/
DEFINE_STANDARD_HANDLE(SMESHGUI_Filter, VTKViewer_Filter)
DEFINE_STANDARD_RTTI(SMESHGUI_TriangleFilter)
};
+/*
+ Class : SMESHGUI_FacesFilter
+ Description : Verify whether selected cell is any face
+*/
+
+DEFINE_STANDARD_HANDLE(SMESHGUI_FacesFilter, SMESHGUI_Filter)
+
+class SMESHGUI_FacesFilter : public SMESHGUI_Filter
+{
+
+public:
+ SMESHGUI_FacesFilter();
+ virtual ~SMESHGUI_FacesFilter();
+
+ virtual bool IsValid( const int theCellId ) const;
+ virtual bool IsObjValid( const int theObjId ) const;
+ virtual int GetId() const;
+ virtual bool IsNodeFilter() const;
+
+public:
+ DEFINE_STANDARD_RTTI(SMESHGUI_FacesFilter)
+};
+
+/*
+ Class : SMESHGUI_VolumesFilter
+ Description : Verify whether selected cell is any volume
+*/
+
+DEFINE_STANDARD_HANDLE(SMESHGUI_VolumesFilter, SMESHGUI_Filter)
+
+class SMESHGUI_VolumesFilter : public SMESHGUI_Filter
+{
+
+public:
+ SMESHGUI_VolumesFilter();
+ virtual ~SMESHGUI_VolumesFilter();
+
+ virtual bool IsValid( const int theCellId ) const;
+ virtual bool IsObjValid( const int theObjId ) const;
+ virtual int GetId() const;
+ virtual bool IsNodeFilter() const;
+
+public:
+ DEFINE_STANDARD_RTTI(SMESHGUI_VolumesFilter)
+};
+
#endif