Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
NIS_SelectFilter Class Reference

#include <NIS_SelectFilter.hxx>

Inheritance diagram for NIS_SelectFilter:
Inheritance graph
[legend]

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

Detailed Description

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.


Constructor & Destructor Documentation

Empty constructor.


Member Function Documentation

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.

Returns:
True if objects of the given Type should be checked, False if such objects are excluded from Selection before any checking.
virtual Standard_Boolean NIS_SelectFilter::IsOk ( const NIS_InteractiveObject theObject) const [pure virtual]

Indicate that the given NIS_InteractiveObject passes the Filter.

Returns:
True - theObject is kept in the Selection, False - excluded from it.

The documentation for this class was generated from the following file: