You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
63 lines
1.9 KiB
C++
63 lines
1.9 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "GameFramework/Actor.h"
|
|
#include "VisualLogger/VisualLoggerTypes.h"
|
|
#include "DebugRenderSceneProxy.h"
|
|
#include "VisualLoggerRenderingActorBase.generated.h"
|
|
|
|
/**
|
|
* Transient actor used to draw visual logger data on level
|
|
* Base class shared between RewindDebugger and Visual Logger implementations
|
|
*/
|
|
|
|
UCLASS(config = Engine, NotBlueprintable, Transient, notplaceable, AdvancedClassDisplay)
|
|
class LOGVISUALIZER_API AVisualLoggerRenderingActorBase : public AActor
|
|
{
|
|
public:
|
|
GENERATED_UCLASS_BODY()
|
|
virtual ~AVisualLoggerRenderingActorBase();
|
|
|
|
struct FTimelineDebugShapes
|
|
{
|
|
TArray<FDebugRenderSceneProxy::FDebugLine> Lines;
|
|
TArray<FDebugRenderSceneProxy::FCone> Cones;
|
|
TArray<FDebugRenderSceneProxy::FDebugBox> Boxes;
|
|
TArray<FDebugRenderSceneProxy::FSphere> Points;
|
|
TArray<FDebugRenderSceneProxy::FMesh> Meshes;
|
|
TArray<FDebugRenderSceneProxy::FText3d> Texts;
|
|
TArray<FDebugRenderSceneProxy::FWireCylinder> Cylinders;
|
|
TArray<FDebugRenderSceneProxy::FCapsule> Capsules;
|
|
TArray<FDebugRenderSceneProxy::FArrowLine> Arrows;
|
|
TArray<FVector> LogEntriesPath;
|
|
|
|
void Reset()
|
|
{
|
|
Lines.Reset();
|
|
Cones.Reset();
|
|
Boxes.Reset();
|
|
Points.Reset();
|
|
Meshes.Reset();
|
|
Texts.Reset();
|
|
Cylinders.Reset();
|
|
Capsules.Reset();
|
|
Arrows.Reset();
|
|
LogEntriesPath.Reset();
|
|
}
|
|
};
|
|
|
|
// Iterate over each active FTimelineDebugShapes, and call callback
|
|
virtual void IterateDebugShapes(TFunction<void(const FTimelineDebugShapes&) > Callback) { };
|
|
virtual bool MatchCategoryFilters(const FName& CategoryName, ELogVerbosity::Type Verbosity) const { return true; };
|
|
|
|
protected:
|
|
#if ENABLE_VISUAL_LOG
|
|
void GetDebugShapes(const FVisualLogEntry& EntryItem, bool bAddEntryLocationPointer, FTimelineDebugShapes& OutDebugShapes);
|
|
#endif
|
|
|
|
UPrimitiveComponent* RenderingComponent;
|
|
};
|