OCC Main Page | Visualization | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

Visualization
TKNIS
NIS


NIS_SelectFilter Class Reference

#include <NIS_SelectFilter.hxx>


Public Member Functions

 NIS_SelectFilter ()
virtual Standard_Boolean IsOk (const NIS_InteractiveObject *theObject) const =0
virtual Standard_EXPORT 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

NIS_SelectFilter::NIS_SelectFilter  )  [inline]
 

Empty constructor.


Member Function Documentation

virtual Standard_EXPORT 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:
Generated on Mon Aug 25 13:55:53 2008 for OpenCASCADE by  doxygen 1.4.1