Files
UnrealEngineUWP/Engine/Source/Developer/NewLogVisualizer/Private/VisualLoggerCameraController.h
Ben Marsh 149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00

39 lines
1012 B
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Engine/DebugCameraController.h"
#include "VisualLoggerCameraController.generated.h"
UCLASS(config=Input, hidedropdown)
class AVisualLoggerCameraController : public ADebugCameraController
{
public:
DECLARE_DELEGATE_OneParam(FActorSelectedDelegate, class AActor*);
DECLARE_DELEGATE_OneParam(FLogEntryIterationDelegate, int32);
GENERATED_UCLASS_BODY()
UPROPERTY()
class AActor* PickedActor;
virtual void PostInitializeComponents() override;
static AVisualLoggerCameraController* EnableCamera(UWorld* InWorld);
static void DisableCamera(UWorld* InWorld);
static bool IsEnabled(UWorld* InWorld);
virtual void Select( FHitResult const& Hit ) override;
void ShowNextEntry();
void ShowPrevEntry();
static TWeakObjectPtr<AVisualLoggerCameraController> Instance;
FActorSelectedDelegate OnActorSelected;
FLogEntryIterationDelegate OnIterateLogEntries;
protected:
virtual void SetupInputComponent() override;
};