X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FAIS%2FAIS_TypeFilter.cxx;h=4d8221d18b394b3019efc73f438bb287de3f76e3;hp=74715cd7fa1a75098a8996b2b9983af6315a892e;hb=4c7a3faef5f292475c23ee615ad49d57fc039b58;hpb=42cf5bc1cacbc83b1bf8639227311ad726522ace diff --git a/src/AIS/AIS_TypeFilter.cxx b/src/AIS/AIS_TypeFilter.cxx index 74715cd..4d8221d 100644 --- a/src/AIS/AIS_TypeFilter.cxx +++ b/src/AIS/AIS_TypeFilter.cxx @@ -20,14 +20,13 @@ #include #include +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;