Salome HOME
ae7543320602c4419504573310a2781b9ac869d3
[modules/geom.git] / src / GEOMFiltersSelection / GEOM_PreviewFilter.cxx
1 #include "GEOM_PreviewFilter.h"
2
3 #include <LightApp_DataOwner.h>
4
5 //=======================================================================
6 // function : GEOM_SelectionFilter
7 // purpose  : 
8 //=======================================================================
9 GEOM_PreviewFilter::GEOM_PreviewFilter( SalomeApp_Study* study )
10 : SalomeApp_Filter( study )
11 {
12 }
13
14 //=======================================================================
15 // function : ~GEOM_SelectionFilter
16 // purpose  : 
17 //=======================================================================
18 GEOM_PreviewFilter::~GEOM_PreviewFilter()
19 {
20 }
21
22 //=======================================================================
23 // function : isOk
24 // purpose  : 
25 //=======================================================================
26 bool GEOM_PreviewFilter::isOk( const SUIT_DataOwner* sOwner ) const
27 {
28   const LightApp_DataOwner* owner = dynamic_cast<const LightApp_DataOwner*> ( sOwner );
29   return ( owner && strstr( owner->entry(), "TEMP" ) );
30 }
31