RegExpFilter filters assets based on a regular expression pattern. More...
#include <Filter.h>
Inherits AzToolsFramework::AssetBrowser::AssetBrowserEntryFilter.
Public Member Functions | |
| AssetBrowserEntryFilter * | Clone () const override |
| void | SetFilterPattern (const QRegularExpression &filterPattern) |
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::unordered_set< 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 (PropagateDirection direction) |
Additional Inherited Members | |
Public Types inherited from AzToolsFramework::AssetBrowser::AssetBrowserEntryFilter | |
| enum class | PropagateDirection : uint32_t { None , Up , Down , Both } |
| Propagate direction allows match satisfaction based on entry parents and/or children. | |
Signals inherited from AzToolsFramework::AssetBrowser::AssetBrowserEntryFilter | |
| void | updatedSignal () const |
Protected Attributes inherited from AzToolsFramework::AssetBrowser::AssetBrowserEntryFilter | |
| QString | m_name |
| QString | m_tag |
| PropagateDirection | m_direction { PropagateDirection::None } |
RegExpFilter filters assets based on a regular expression pattern.
|
overridevirtual |
Cloning function that must be overridden for certain asset browser views that duplicate and modify incoming filters This should be implemented using a copy constructor, which is currently not possible because inheriting QObject prevents it.
Implements AzToolsFramework::AssetBrowser::AssetBrowserEntryFilter.