X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Filter.h;h=0114f38b88c4fb58a57522a4469a42b6fd6ca2c9;hp=a3fcf83b3adab2e0c39c4e89c819d3fde9d12315;hb=81a502af8470190be359d6491a20796dbad5bb97;hpb=e4737e85f0da6d3f90fd08f6be1c2825195fe16f diff --git a/src/SMESHGUI/SMESHGUI_Filter.h b/src/SMESHGUI/SMESHGUI_Filter.h index a3fcf83b3..0114f38b8 100755 --- a/src/SMESHGUI/SMESHGUI_Filter.h +++ b/src/SMESHGUI/SMESHGUI_Filter.h @@ -13,11 +13,11 @@ // 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org // // // @@ -44,12 +44,13 @@ enum SMESHGUI_FilterType 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) @@ -141,4 +142,50 @@ public: 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