Files
UnrealEngineUWP/Engine/Source/Editor/DetailCustomizations/Private/Vector4StructCustomization.h
jeanmichel dignard 2ce7666d2d Copying //UE4/Dev-Core [at] 10708550 to Dev-Main (//UE4/Dev-Main)
#rb none

#ROBOMERGE-OWNER: jeanmichel.dignard
#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 10708666 in //UE4/Main/...
#ROBOMERGE-BOT: TOOLS (Main -> Dev-Tools-Staging) (v626-10872990)

[CL 10898071 by jeanmichel dignard in Dev-Tools-Staging branch]
2020-01-07 15:54:23 -05:00

35 lines
1.3 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Customizations/MathStructCustomizations.h"
#include "IDetailCustomNodeBuilder.h"
#include "ColorGradingVectorCustomization.h"
/**
* Customizes FVector4 structs.
* We override Vector4 because the color grading controls are made with vector4
*/
class FVector4StructCustomization
: public FMathStructCustomization
{
public:
FVector4StructCustomization();
~FVector4StructCustomization();
/** @return A new instance of this class */
static TSharedRef<IPropertyTypeCustomization> MakeInstance();
//////////////////////////////////////////////////////////////////////////
/** FMathStructCustomization interface */
virtual void MakeHeaderRow(TSharedRef<IPropertyHandle>& StructPropertyHandle, FDetailWidgetRow& Row) override;
virtual void CustomizeChildren(TSharedRef<IPropertyHandle> StructPropertyHandle, IDetailChildrenBuilder& StructBuilder, IPropertyTypeCustomizationUtils& StructCustomizationUtils) override;
private:
// We specialize the detail display of color grading vector property. The color grading mode is specified inside the metadata of the FProperty
TSharedPtr<FColorGradingVectorCustomization> GetOrCreateColorGradingVectorCustomization(TSharedRef<IPropertyHandle>& StructPropertyHandle);
TSharedPtr<FColorGradingVectorCustomization> ColorGradingVectorCustomization;
};