Files
UnrealEngineUWP/Engine/Source/Editor/StatsViewer/Private/StatsPages/TextureStatsPage.h
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

35 lines
1.1 KiB
C++

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "IStatsViewer.h"
#include "StatsPage.h"
#include "TextureStats.h"
/** Stats page representing texture stats */
class FTextureStatsPage : public FStatsPage<UTextureStats>
{
public:
/** Singleton accessor */
static FTextureStatsPage& Get();
/** Begin IStatsPage interface */
virtual void Generate( TArray< TWeakObjectPtr<UObject> >& OutObjects ) const override;
virtual void GenerateTotals( const TArray< TWeakObjectPtr<UObject> >& InObjects, TMap<FString, FText>& OutTotals ) const override;
virtual void OnShow( TWeakPtr< class IStatsViewer > InParentStatsViewer ) override;
virtual void OnHide() override;
/** End IStatsPage interface */
virtual ~FTextureStatsPage() {}
private:
/** Delegate to allow is to trigger a refresh on actor selection */
void OnEditorSelectionChanged( UObject* NewSelection, TWeakPtr< class IStatsViewer > InParentStatsViewer );
/** Delegate to allow is to trigger a refresh on new level */
void OnEditorNewCurrentLevel( TWeakPtr< class IStatsViewer > InParentStatsViewer );
};