Cesium for Unreal 2.12.0
Loading...
Searching...
No Matches
CesiumSampleHeightMostDetailedAsyncAction.h
Go to the documentation of this file.
1// Copyright 2020-2024 CesiumGS, Inc. and Contributors
2#pragma once
3
5#include "Kismet/BlueprintAsyncActionBase.h"
6#include "CesiumSampleHeightMostDetailedAsyncAction.generated.h"
7
9
21DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(
23 const TArray<FCesiumSampleHeightResult>&,
24 Result,
25 const TArray<FString>&,
26 Warnings);
27
28UCLASS()
30 : public UBlueprintAsyncActionBase {
31 GENERATED_BODY()
32
33public:
44 UFUNCTION(
45 BlueprintCallable,
46 Category = "Cesium",
47 meta = (BlueprintInternalUseOnly = true))
49 ACesium3DTileset* Tileset,
50 const TArray<FVector>& LongitudeLatitudeHeightArray);
51
58 UPROPERTY(BlueprintAssignable)
60
61 virtual void Activate() override;
62
63private:
64 void RaiseOnHeightsSampled(
65 ACesium3DTileset* Tileset,
66 const TArray<FCesiumSampleHeightResult>& Result,
67 const TArray<FString>& Warnings);
68
69 ACesium3DTileset* _pTileset;
70 TArray<FVector> _longitudeLatitudeHeightArray;
71};
void SampleHeightMostDetailed(const TArray< FVector > &LongitudeLatitudeHeightArray, FCesiumSampleHeightMostDetailedCallback OnHeightsSampled)
Initiates an asynchronous query for the height of this tileset at a list of cartographic positions,...
The delegate used to asynchronously return sampled heights.
The result of sampling the height on a tileset at the given cartographic position.