Files
UnrealEngineUWP/Engine/Source/Editor/StatsViewer/Private/StatsPages/PrimitiveStatsPage.h
2014-03-14 14:13:41 -04:00

37 lines
1.2 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "PrimitiveStats.h"
/** Stats page representing primitive component stats */
class FPrimitiveStatsPage : public FStatsPage<UPrimitiveStats>
{
public:
/** Singleton accessor */
static FPrimitiveStatsPage& 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 */
private:
/**
* Delegate to allow is to trigger a refresh on object selection
* @param NewSelection The new selected object
* @param InParentStatsViewer The parent stats viewer of this page
*/
void OnEditorSelectionChanged( UObject* NewSelection, TWeakPtr< class IStatsViewer > InParentStatsViewer );
/**
* Delegate to allow is to trigger a refresh on new level
* @param InParentStatsViewer The parent stats viewer of this page
*/
void OnEditorNewCurrentLevel( TWeakPtr< class IStatsViewer > InParentStatsViewer );
};