Skip to content

Commit

Permalink
Doc, parameter names.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Sep 18, 2024
1 parent 6852eae commit 3aed881
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions Source/CesiumRuntime/Public/Cesium3DTileset.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<FVector>& LongitudeLatitudeHeightArray,
FCesiumSampleHeightMostDetailedCallback OnHeightsSampled);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ class CESIUMRUNTIME_API UCesiumSampleHeightMostDetailedAsyncAction

private:
void RaiseOnHeightsSampled(
ACesium3DTileset*,
const TArray<FCesiumSampleHeightResult>&,
const TArray<FString>&);
ACesium3DTileset* Tileset,
const TArray<FCesiumSampleHeightResult>& Result,
const TArray<FString>& Warnings);

ACesium3DTileset* _pTileset;
TArray<FVector> _longitudeLatitudeHeightArray;
Expand Down

0 comments on commit 3aed881

Please sign in to comment.