CustomFilter filters assets based on a custom filter function. More...
#include <Filter.h>
Inherits AzToolsFramework::AssetBrowser::AssetBrowserEntryFilter.
Public Member Functions | |
CustomFilter (const AZStd::function< bool(const AssetBrowserEntry *)> &filterFn) | |
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 | |
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. | |
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. | |
CustomFilter filters assets based on a custom filter function.