UMockDataMeshTrackerComponent

The MeshTrackerComponent class manages requests for environmental mesh data, processes the results and provides them to the calling system.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MRMesh

Header

/Engine/Source/Runtime/MRMesh/Public/MockDataMeshTrackerComponent.h

Include

#include "MockDataMeshTrackerComponent.h"

Syntax

class UMockDataMeshTrackerComponent : public USceneComponent

Remarks

The MeshTrackerComponent class manages requests for environmental mesh data, processes the results and provides them to the calling system. The calling system is able request environmental mesh data within a specified area. Various other search criteria can be set via this class's public properties. Mesh data requests are processed on a separate thread. Once a mesh data request has been processed the calling system will be notified via an FOnMeshTrackerUpdated broadcast.

Variables

Name Description

Public variable

TArray< FColor ...

 

BlockVertexColors

Colors through which we cycle when setting vertex color by block.

Public variable

UMRMeshComponen...

 

MRMesh

MRMeshComponent can render and provide collision based on the Mesh data.

Public variable

FOnMockDataMesh...

 

OnMeshTrackerUpdated

Activated whenever new information about this mesh tracker is detected.

Public variable

bool

 

RequestNormals

If true, the system will generate normals for the triangle vertices.

Public variable

bool

 

RequestVertexConfidence

If true, the system will generate the mesh confidence values for the triangle vertices.

Public variable

bool

 

ScanWorld

Set to true to start scanning the world for meshes.

Public variable

float

 

UpdateInterval

Update Interval in Seconds.

Public variable

FLinearColor

 

VertexColorFromConfidenceOne

Color mapped to confidence value of one.

Public variable

FLinearColor

 

VertexColorFromConfidenceZero

Color mapped to confidence value of zero.

Public variable

EMeshTrackerVer...

 

VertexColorMode

Vertex Colors can be unused, or filled with several types of information.

Constructors

Name Description

Public function

UMockDataMeshTrackerComponent

(
    const FObjectInitializer& ObjectIn...
)

Destructors

Name Description

Public function

~UMockDataMeshTrackerComponent()

Destroys the FMeshTrackerImpl instance.

Functions

Name Description

Public function

void

 

ConnectMRMesh

(
    UMRMeshComponent* InMRMeshPtr
)

Sets the procedural mesh component that will store and display the environmental mesh results.

Public function

void

 

DisconnectMRMesh

(
    UMRMeshComponent* InMRMeshPtr
)

Unlinks the current procedural mesh component from the mesh tracking system.

Overridden from UActorComponent

Name Description

Public function Virtual

void

 

TickComponent

(
    float DeltaTime,
    enum ELevelTick TickType,
    FActorComponentTickFunction* T...
)

The procedural mesh generated should bake physics and update its collision data.

Overridden from UObject

Name Description

Public function Virtual

void

 

BeginDestroy()

Unlinks the current procedural mesh component from the mesh tracking system.

Public function Virtual

void

 

FinishDestroy()

Destroys the interface object to the mesh tracking api

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally

Classes

Name

Description

Public class

FOnMockDataMeshTrackerUpdated

Delegate used by OnMeshUpdated().

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss