Files
UnrealEngine/Engine/Plugins/Mutable/Source/MutableTools/Private/MuT/ASTOpMeshTransform.h
2025-05-18 13:04:45 +08:00

49 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "HAL/Platform.h"
#include "MuR/MutableMath.h"
#include "MuR/Operations.h"
#include "MuR/Ptr.h"
#include "MuT/AST.h"
namespace mu
{
struct FProgram;
//---------------------------------------------------------------------------------------------
//!
//---------------------------------------------------------------------------------------------
class ASTOpMeshTransform final : public ASTOp
{
public:
ASTChild source;
FMatrix44f matrix;
public:
ASTOpMeshTransform();
ASTOpMeshTransform(const ASTOpMeshTransform&) = delete;
~ASTOpMeshTransform();
// ASTOp interface
EOpType GetOpType() const override { return EOpType::ME_TRANSFORM; }
uint64 Hash() const override;
void ForEachChild(const TFunctionRef<void(ASTChild&)>) override;
bool IsEqual(const ASTOp& otherUntyped) const override;
Ptr<ASTOp> Clone(MapChildFuncRef mapChild) const override;
void Link(FProgram& program, FLinkerOptions* Options) override;
virtual FSourceDataDescriptor GetSourceDataDescriptor(FGetSourceDataDescriptorContext*) const override;
virtual EClosedMeshTest IsClosedMesh(TMap<const ASTOp*, EClosedMeshTest>* Cache) const override;
};
}