UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
InterpCurveEdSetup.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3
4#pragma once
5
6#include "CoreMinimal.h"
8#include "UObject/Object.h"
9#include "InterpCurveEdSetup.generated.h"
10
11// Information about a particule curve being viewed.
12// Property could be an FInterpCurve, a DistributionFloat or a DistributionVector
13USTRUCT()
15{
17
18 UPROPERTY()
19 TObjectPtr<class UObject> CurveObject;
20
21 UPROPERTY()
22 FColor CurveColor;
23
24 UPROPERTY()
25 FString CurveName;
26
27 UPROPERTY()
28 int32 bHideCurve;
29
30 UPROPERTY()
31 int32 bColorCurve;
32
33 UPROPERTY()
34 int32 bFloatingPointColorCurve;
35
36 UPROPERTY()
37 int32 bClamp;
38
39 UPROPERTY()
40 float ClampLow;
41
42 UPROPERTY()
43 float ClampHigh;
44
45
47 : CurveObject(NULL)
48 , CurveColor(ForceInit)
49 , bHideCurve(0)
50 , bColorCurve(0)
51 , bFloatingPointColorCurve(0)
52 , bClamp(0)
53 , ClampLow(0)
54 , ClampHigh(0)
55 {
56 }
57
58};
59
60USTRUCT()
62{
64
65 UPROPERTY()
66 FString TabName;
67
68 UPROPERTY()
70
71 // Remember the view setting for each tab.
72 UPROPERTY()
73 float ViewStartInput;
74
75 UPROPERTY()
76 float ViewEndInput;
77
78 UPROPERTY()
79 float ViewStartOutput;
80
81 UPROPERTY()
82 float ViewEndOutput;
83
84
86 : ViewStartInput(0)
87 , ViewEndInput(0)
88 , ViewStartOutput(0)
89 , ViewEndOutput(0)
90 {
91 }
92
94 : TabName(InTabName)
95 , ViewStartInput(InViewStartInput)
96 , ViewEndInput(InViewEndInput)
97 , ViewStartOutput(InViewStartOutput)
98 , ViewEndOutput(InViewEndOutput)
99 {
100 }
101};
102
103UCLASS(MinimalAPI)
105{
107
108 UPROPERTY()
110
111 UPROPERTY()
112 int32 ActiveTab;
113
114
115 //~ Begin UObject Interface
116 virtual void PostLoad() override;
117 //~ End UObject Interface
118
119 //~ Begin InterpCurveEdSetup Interface
120 ENGINE_API static FCurveEdInterface* GetCurveEdInterfacePointer(const FCurveEdEntry& Entry);
121
129 ENGINE_API bool AddCurveToCurrentTab(UObject* InCurve, const FString& CurveName, const FColor& CurveColor,
131 bool bInClamp=false, float InClampLow=0.f, float InClampHigh=0.f);
132
134 ENGINE_API void RemoveCurve(UObject* InCurve);
135
137 ENGINE_API void ReplaceCurve(UObject* RemoveCurve, UObject* AddCurve);
138
140 ENGINE_API void CreateNewTab(const FString& InTabName);
141
143 ENGINE_API void RemoveTab(const FString& InTabName);
144
146 ENGINE_API bool ShowingCurve(UObject* InCurve);
147
149 ENGINE_API void ChangeCurveColor(UObject* InCurve, const FColor& CurveColor);
150
152 ENGINE_API void ChangeCurveName(UObject* InCurve, const FString& NewCurveName);
153
155 void ResetTabs();
156
157};
158
159
160
#define NULL
Definition oodle2base.h:134
@ ForceInit
Definition CoreMiscDefines.h:155
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
Definition CurveEdInterface.h:11
Definition Array.h:670
Definition InterpCurveEdSetup.h:105
Definition Object.h:95
Definition Color.h:486
Definition InterpCurveEdSetup.h:15
Definition InterpCurveEdSetup.h:62
FCurveEdTab(FString InTabName, float InViewStartInput, float InViewEndInput, float InViewStartOutput, float InViewEndOutput)
Definition InterpCurveEdSetup.h:93
Definition ObjectPtr.h:488