UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MockDataMeshTrackerComponent.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
7#include "MockDataMeshTrackerComponent.generated.h"
8
10
11
13UENUM(BlueprintType)
15{
17 None UMETA(DisplayName = "No Vertex Color"),
19 Confidence UMETA(DisplayName = "Vertex Confidence"),
21 Block UMETA(DisplayName = "Blocks Colored")
22};
23
31UCLASS(ClassGroup = Rendering, BlueprintType, Blueprintable, EditInlineNew, meta = (BlueprintSpawnableComponent), MinimalAPI)
33 : public USceneComponent
34{
36
37public:
40
45 UFUNCTION(BlueprintCallable, Category = "Mesh Reconstruction")
46 MRMESH_API void ConnectMRMesh(class UMRMeshComponent* InMRMeshPtr);
47
52 UFUNCTION(BlueprintCallable, Category = "Mesh Reconstruction")
53 MRMESH_API void DisconnectMRMesh(class UMRMeshComponent* InMRMeshPtr);
54
64
66 UPROPERTY(BlueprintAssignable)
67 FOnMockDataMeshTrackerUpdated OnMeshTrackerUpdated;
68
70 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Meshing")
71 bool ScanWorld = true;
72
74 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Meshing")
75 bool RequestNormals = true;
76
81 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Meshing")
82 bool RequestVertexConfidence = false;
83
87 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Meshing")
89
91 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Meshing")
92 TArray<FColor> BlockVertexColors;
93
95 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Meshing")
96 FLinearColor VertexColorFromConfidenceZero;
97
99 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Meshing")
100 FLinearColor VertexColorFromConfidenceOne;
101
102
103
105 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Meshing|MockData")
106 float UpdateInterval = 3.0f;
107
108
109
112 TObjectPtr<class UMRMeshComponent> MRMesh;
113
121 MRMESH_API virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override;
122
124 MRMESH_API virtual void BeginDestroy() override;
125
127 MRMESH_API virtual void FinishDestroy() override;
128
129#if WITH_EDITOR
130 MRMESH_API virtual void PostEditChangeProperty(FPropertyChangedEvent& e) override;
131#endif
132
133private:
135
136 float LastUpdateTime = 0.0f;
137 float CurrentTime = 0.0f;
138 int32 UpdateCount = 0;
139 int32 NumBlocks = 4;
140
141 void UpdateBlock(int32 BlockIndex);
142 void RemoveBlock(int32 BlockIndex);
143
144
145#if WITH_EDITOR
146private:
148#endif
149};
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
ELevelTick
Definition EngineBaseTypes.h:70
return true
Definition ExternalRpcRegistry.cpp:601
#define DEFINE_LOG_CATEGORY_STATIC(CategoryName, DefaultVerbosity, CompileTimeVerbosity)
Definition LogMacros.h:380
EMeshTrackerVertexColorMode
Definition MockDataMeshTrackerComponent.h:15
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
#define UENUM(...)
Definition ObjectMacros.h:749
int BlockIndex
Definition binka_ue_decode_test.cpp:38
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition MockDataMeshTrackerComponent.cpp:17
Definition Array.h:670
Definition MockDataMeshTrackerComponent.h:34
DECLARE_DYNAMIC_MULTICAST_DELEGATE_FiveParams(FOnMockDataMeshTrackerUpdated, int32, Index, const TArray< FVector > &, Vertices, const TArray< int32 > &, Triangles, const TArray< FVector > &, Normals, const TArray< float > &, Confidence)
Definition ExpressionParserTypes.h:21
@ false
Definition radaudio_common.h:23
U16 Index
Definition radfft.cpp:71
Definition EngineBaseTypes.h:571
Definition Color.h:486
Definition Color.h:48
Definition UnrealType.h:6865
Definition ObjectPtr.h:488