Open CASCADE Technology
6.5.4
|
#include <NIS_SelectFilter.hxx>
Public Member Functions | |
NIS_SelectFilter () | |
virtual Standard_Boolean | IsOk (const NIS_InteractiveObject *theObject) const =0 |
virtual Standard_Boolean | ActsOn (const Handle_Standard_Type &theType) const |
Interface for selection filters. It can be used in NIS_InteractiveContext by methods SetFilter and GetFilter.
Unlike in AIS, only one filter can be installed in InteractiveContext. If you need more than one filter instance to work together, create a composite NIS_SelectFilter specialization that would hold a list of simpler Filter instances.
NIS_SelectFilter::NIS_SelectFilter | ( | ) | [inline] |
Empty constructor.
virtual Standard_Boolean NIS_SelectFilter::ActsOn | ( | const Handle_Standard_Type & | theType | ) | const [virtual] |
Check if the type of InteractiveObject is allowed for selection. Default implementation returns always True.
virtual Standard_Boolean NIS_SelectFilter::IsOk | ( | const NIS_InteractiveObject * | theObject | ) | const [pure virtual] |
Indicate that the given NIS_InteractiveObject passes the Filter.