1 #include "GEOM_TypeFilter.h"
3 //=======================================================================
4 // function : GEOM_TypeFilter
6 //=======================================================================
7 GEOM_TypeFilter::GEOM_TypeFilter( SalomeApp_Study* study, const int type, const bool isShapeType )
8 :GEOM_SelectionFilter( study ),
10 myIsShapeType(isShapeType)
14 //=======================================================================
15 // function : ~GEOM_TypeFilter
17 //=======================================================================
18 GEOM_TypeFilter::~GEOM_TypeFilter()
22 //=======================================================================
25 //=======================================================================
26 bool GEOM_TypeFilter::isOk( const SUIT_DataOwner* sOwner ) const
28 GEOM::GEOM_Object_var obj = getObject( sOwner );
29 if ( !CORBA::is_nil( obj ) )
32 return obj->GetType() == type();
34 return obj->GetShapeType() == type();
40 //=======================================================================
43 //=======================================================================
44 int GEOM_TypeFilter::type() const