| IStatsPage
|
Module |
|
Header |
/Engine/Source/Editor/StatsViewer/Public/IStatsPage.h |
Include |
#include "IStatsPage.h" |
class IStatsPage
The public interface for a stats page.
The table does its best to display the relevant information.
Objects UCLASS metadata required are: DisplayName - The name displayed in the page selection dropdown. Tooltip - The tooltip displayed in the page selection dropdown. ObjectSetType - A text representation of the UENUM used for object set enumeration.
The object set UENUM also uses metadata to display certain information. UENUM metadata syntax differs from UCLASS metadata as it is specified via the UMETA() tag, rather than meta=() UPROPERTY subtags. DisplayName - The name displayed in the object set dropdown. ToolTip - The tooltip displayed over the object set dropdown.
The UI supports the following UPROPERTY metadata: ColumnWidth - Integer value. The (proportionally-based, not absolute) width of the properties column. ShowTotal - Either true or false. Whether the column header should attempt to show a total (provided in Generate() via the OutTotals map). SortMode - Either Ascending or Descending. If this is specified then the properties column will be sorted on table creation. Unit - Text value displayed next to table entries and totals
Name | Description | ||
---|---|---|---|
|
AddEntry ( |
Adds a stats entry to the page Not all pages have to override this - only ones that accept transient data output from processes that do not persist in the editor |
|
|
Clear() |
Clears any entries added via AddEntry() Not all pages have to override this - only ones that accept transient data output from processes that do not persist in the editor |
|
|
Generate ( |
Fill the output array with statistic objects to be displayed |
|
|
GenerateTotals |
Totals are displayed by mapping the CPP name of the columns property to the total string in the OutTotals map. |
|
|
GetCustomColumns ( |
Get any column customizations that this page wants to use. |
|
|
TSharedPtr< ... |
GetCustomFilter ( |
Get custom filter to display in the top part of the stats viewer, can return nullptr |
|
TSharedPtr< ... |
GetCustomWidget ( |
Get custom widget to display in the top part of the stats viewer, can return nullptr |
|
const FText |
GetDisplayName() |
Get the name of the entry type to be displayed in the page selection dropdown |
|
UClass * |
GetEntryClass() |
Get the class of the entry we handle This is needed to display the search filter's combo button |
|
GetName() |
Get the name of the entry type |
|
|
GetObjectSetCount() |
Get the number of object sets this page supports |
|
|
GetObjectSetName ( |
Get the name of the object set, to be displayed in the dropdown |
|
|
GetObjectSetToolTip ( |
Get the tooltip of the object set, to be displayed over the object set the dropdown |
|
|
GetSelectedObjectSet() |
Get the currently displayed object set |
|
|
const FText |
GetToolTip() |
Get the tooltip to be displayed over the page selection dropdown |
|
UWorld * |
GetWorld() |
Get the world used for page statistics. |
|
IsRefreshPending() |
Check if this page wants to refresh itself |
|
|
IsShowPending() |
Check if this page wants to show itself |
|
|
OnHide() |
Called back each time the page is hidden |
|
|
OnShow ( |
Called back each time the page is shown |
|
|
Refresh ( |
Sends a requests to the stats page to refresh itself the next chance it gets |
|
|
SetSelectedObjectSet ( |
Set the currently displayed object set |
|
|
SetWorld ( |
Set a specific world to use for page statistics. |
|
|
Show ( |
Tries to switch the currently displayed page to this one |