Open CASCADE Technology
6.5.4
|
A framework to define a compound filter composed of
two or more simple filters.
#include <SelectMgr_CompositionFilter.hxx>
Public Member Functions | |
void | Add (const Handle< SelectMgr_Filter > &afilter) |
Adds the filter afilter to a filter object created by a filter class inheriting this framework. | |
void | Remove (const Handle< SelectMgr_Filter > &aFilter) |
Removes the filter aFilter from this framework. | |
Standard_Boolean | IsEmpty () const |
Returns true if this framework is empty. | |
Standard_Boolean | IsIn (const Handle< SelectMgr_Filter > &aFilter) const |
Returns true if the filter aFilter is in this framework. | |
const SelectMgr_ListOfFilter & | StoredFilters () const |
Returns the list of stored filters from this framework. | |
void | Clear () |
Clears the filters used in this framework. | |
virtual Standard_Boolean | ActsOn (const TopAbs_ShapeEnum aStandardMode) const |
Returns true in an AIS local context, if this filter operates on a type of subshape defined in a filter class inheriting this framework. This function completes IsOk in an AIS local context. | |
Protected Attributes | |
SelectMgr_ListOfFilter | myFilters |
virtual Standard_Boolean SelectMgr_CompositionFilter::ActsOn | ( | const TopAbs_ShapeEnum | aStandardMode | ) | const [virtual] |
Reimplemented from SelectMgr_Filter.
void SelectMgr_CompositionFilter::Add | ( | const Handle< SelectMgr_Filter > & | afilter | ) |
Standard_Boolean SelectMgr_CompositionFilter::IsIn | ( | const Handle< SelectMgr_Filter > & | aFilter | ) | const |
void SelectMgr_CompositionFilter::Remove | ( | const Handle< SelectMgr_Filter > & | aFilter | ) |