CompositeFilter performs an AND/OR operation between multiple subfilters. More...
#include <Filter.h>
Inherits AzToolsFramework::AssetBrowser::AssetBrowserEntryFilter.
Public Types | |
enum class | LogicOperatorType { OR , AND } |
Public Types inherited from AzToolsFramework::AssetBrowser::AssetBrowserEntryFilter | |
enum | PropagateDirection : int { None = 0x00 , Up = 0x01 , Down = 0x02 } |
Propagate direction allows match satisfaction based on entry parents and/or children. | |
Public Member Functions | |
CompositeFilter (LogicOperatorType logicOperator) | |
void | AddFilter (FilterConstType filter) |
void | RemoveFilter (FilterConstType filter) |
void | RemoveAllFilters () |
void | SetLogicOperator (LogicOperatorType logicOperator) |
const QList< FilterConstType > & | GetSubFilters () const |
void | SetEmptyResult (bool result) |
Return value if there are no subfilters present. | |
Public Member Functions inherited from AzToolsFramework::AssetBrowser::AssetBrowserEntryFilter | |
bool | Match (const AssetBrowserEntry *entry) const |
Check if entry matches filter. | |
bool | MatchWithoutPropagation (const AssetBrowserEntry *entry) const |
Check if the entry matches filter without propagation (i.e. it's an exact match and it doesn't match only. | |
void | Filter (AZStd::vector< const AssetBrowserEntry * > &result, const AssetBrowserEntry *entry) const |
Retrieve all matching entries that are either entry itself or its parents or children. | |
QString | GetName () const |
Filter name is used to uniquely identify the filter. | |
void | SetName (const QString &name) |
const QString & | GetTag () const |
Tags are used for identifying filter groups. | |
void | SetTag (const QString &tag) |
void | SetFilterPropagation (int direction) |
Additional Inherited Members | |
Signals inherited from AzToolsFramework::AssetBrowser::AssetBrowserEntryFilter | |
void | updatedSignal () const |
Emitted every time a filter is updated, in case of composite filter, the signal is propagated to the top level filter so only one listener needs to connected. | |
CompositeFilter performs an AND/OR operation between multiple subfilters.