2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "TextureStats.h"
|
|
|
|
|
|
|
|
|
|
/** Stats page representing texture stats */
|
|
|
|
|
class FTextureStatsPage : public FStatsPage<UTextureStats>
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
/** Singleton accessor */
|
|
|
|
|
static FTextureStatsPage& Get();
|
|
|
|
|
|
|
|
|
|
/** Begin IStatsPage interface */
|
2014-06-13 06:14:46 -04:00
|
|
|
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;
|
2014-03-14 14:13:41 -04:00
|
|
|
/** End IStatsPage interface */
|
|
|
|
|
|
2014-07-30 16:16:46 -04:00
|
|
|
virtual ~FTextureStatsPage() {}
|
|
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
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 );
|
|
|
|
|
};
|
|
|
|
|
|