Open 3D Engine LyShine Gem API Reference  23.05.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
FindEntityItemModel Class Reference

#include <FindEntityItemModel.h>

Inherits QAbstractItemModel.

Public Types

enum  Column { ColumnName, ColumnCount }
 Columns of data to display about each Entity. More...
 
enum  Roles { VisibilityRole = Qt::UserRole + 1, RoleCount }
 

Public Member Functions

 AZ_CLASS_ALLOCATOR (FindEntityItemModel, AZ::SystemAllocator)
 
 FindEntityItemModel (QObject *parent=nullptr)
 
void Initialize (AZ::EntityId canvasEntityId)
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
int columnCount (const QModelIndex &) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 
QModelIndex parent (const QModelIndex &index) const override
 
QModelIndex GetIndexFromEntity (const AZ::EntityId &entityId, int column=0) const
 
AZ::EntityId GetEntityFromIndex (const QModelIndex &index) const
 
void SearchStringChanged (const AZStd::string &filter)
 
void SearchFilterChanged (const AZStd::vector< AZ::Uuid > &componentFilters)
 

Protected Member Functions

QVariant DataForName (const QModelIndex &index, int role) const
 
void InvalidateFilter ()
 Use the current filter setting and re-evaluate the filter.
 
bool FilterEntity (const AZ::EntityId &entityId)
 
bool IsFiltered (const AZ::EntityId &entityId) const
 
bool IsMatch (const AZ::EntityId &entityId) const
 

Protected Attributes

AZStd::string m_filterString
 
AZStd::vector< AZ::Uuid > m_componentFilters
 
AZStd::unordered_map
< AZ::EntityId, bool > 
m_entityFilteredState
 
AZStd::unordered_map
< AZ::EntityId, bool > 
m_entityMatchState
 
AZ::EntityId m_canvasEntityId
 

Detailed Description

Model for items in the "Find Entity" tree view. Each item represents an Entity.

Member Enumeration Documentation

Columns of data to display about each Entity.

Enumerator
ColumnName 

Entity name.

ColumnCount 

Total number of columns.


The documentation for this class was generated from the following file: