Files
UnrealEngineUWP/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/SplineUtil.h
semion piskarev b4529d4548 MeshModelingTools: Create Draw Spline Tool for drawing splines and spline-based blueprints.
#rb Jimmy.Andrews
#jira UE-182356

[CL 25991352 by semion piskarev in ue5-main branch]
2023-06-14 15:47:10 -04:00

36 lines
870 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
class USplineComponent;
class IToolsContextRenderAPI;
namespace UE {
namespace Geometry {
namespace SplineUtil {
// Used for DrawSpline()
struct MODELINGCOMPONENTS_API FDrawSplineSettings
{
FDrawSplineSettings();
// Defaults to FStyleColors::White
FColor RegularColor;
// Defaults to FStyleColors::AccentOrange
FColor SelectedColor;
// If non-positive, the spline is drawn just as points and curves. If positive, the
// orientation and scale are visualized with the given base width.
double ScaleVisualizationWidth = 0;
// Keys to use SelectedColor for
TSet<int32>* SelectedKeys = nullptr;
};
MODELINGCOMPONENTS_API void DrawSpline(const USplineComponent& SplineComp, IToolsContextRenderAPI& RenderAPI, const FDrawSplineSettings& Settings);
}
}
}