From 3aed8816c8777a439fec61d7dace73aabbf072ab Mon Sep 17 00:00:00 2001 From: Kevin Ring Date: Wed, 18 Sep 2024 22:38:02 +1000 Subject: [PATCH] Doc, parameter names. --- Source/CesiumRuntime/Public/Cesium3DTileset.h | 16 ++++++++++++++++ .../CesiumSampleHeightMostDetailedAsyncAction.h | 6 +++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Source/CesiumRuntime/Public/Cesium3DTileset.h b/Source/CesiumRuntime/Public/Cesium3DTileset.h index 7d96837cc..1a591a2fa 100644 --- a/Source/CesiumRuntime/Public/Cesium3DTileset.h +++ b/Source/CesiumRuntime/Public/Cesium3DTileset.h @@ -108,6 +108,22 @@ class CESIUMRUNTIME_API ACesium3DTileset : public AActor { UFUNCTION(BlueprintCallable, meta = (DeprecatedFunction)) void SetMobility(EComponentMobility::Type NewMobility); + /** + * @brief Initiates an asynchronous query for the height of this tileset at a + * list of positions, expressed as longitude (X) and latitude (Y). The most + * detailed available tiles are used to determine each height. + * + * The height of the input positions is ignored, unless height sampling fails + * at that location. On output, the height is expressed in meters above the + * ellipsoid (usually WGS84), which should not be confused with a height above + * mean sea level. + * + * @param LongitudeLatitudeHeightArray The positions for which to sample + * heights, expressed in degrees. Longitude is in the X component, Latitude is + * in the Y component, and Height is in the Z component. + * @param OnHeightsSampled A callback that is invoked in the game thread when + * heights have been sampled for all positions. + */ void SampleHeightMostDetailed( const TArray& LongitudeLatitudeHeightArray, FCesiumSampleHeightMostDetailedCallback OnHeightsSampled); diff --git a/Source/CesiumRuntime/Public/CesiumSampleHeightMostDetailedAsyncAction.h b/Source/CesiumRuntime/Public/CesiumSampleHeightMostDetailedAsyncAction.h index 72a8dbac4..0be6239f4 100644 --- a/Source/CesiumRuntime/Public/CesiumSampleHeightMostDetailedAsyncAction.h +++ b/Source/CesiumRuntime/Public/CesiumSampleHeightMostDetailedAsyncAction.h @@ -61,9 +61,9 @@ class CESIUMRUNTIME_API UCesiumSampleHeightMostDetailedAsyncAction private: void RaiseOnHeightsSampled( - ACesium3DTileset*, - const TArray&, - const TArray&); + ACesium3DTileset* Tileset, + const TArray& Result, + const TArray& Warnings); ACesium3DTileset* _pTileset; TArray _longitudeLatitudeHeightArray;