0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / AIS / AIS_TypeFilter.cxx
index 185bd91..4d8221d 100644 (file)
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-#include <AIS_TypeFilter.ixx>
+
 #include <AIS_InteractiveObject.hxx>
+#include <AIS_TypeFilter.hxx>
+#include <SelectMgr_EntityOwner.hxx>
+#include <Standard_Type.hxx>
+
+IMPLEMENT_STANDARD_RTTIEXT(AIS_TypeFilter,SelectMgr_Filter)
 
 AIS_TypeFilter::AIS_TypeFilter(const AIS_KindOfInteractive TheKind):
 myKind(TheKind){}
 
 Standard_Boolean AIS_TypeFilter::IsOk(const Handle(SelectMgr_EntityOwner)& anObj) const 
 {
-  if(Handle(AIS_InteractiveObject)::DownCast(anObj->Selectable()).IsNull()) 
-    return Standard_False;
-  
   Handle(AIS_InteractiveObject) anObject = 
     Handle(AIS_InteractiveObject)::DownCast (anObj->Selectable());
   return ! anObject.IsNull() && anObject->Type()== myKind;