Cesium for Unreal 2.13.2
Loading...
Searching...
No Matches
CesiumIonRasterOverlay.h
Go to the documentation of this file.
1// Copyright 2020-2024 CesiumGS, Inc. and Contributors
2
3#pragma once
4
6#include "CoreMinimal.h"
7#include "CesiumIonRasterOverlay.generated.h"
8
10
11/**
12 * A raster overlay that uses an IMAGERY asset from Cesium ion.
13 */
14UCLASS(
15 DisplayName = "Cesium ion Raster Overlay",
16 ClassGroup = (Cesium),
17 meta = (BlueprintSpawnableComponent))
18class CESIUMRUNTIME_API UCesiumIonRasterOverlay : public UCesiumRasterOverlay {
19 GENERATED_BODY()
20
21public:
22 /**
23 * The ID of the Cesium ion asset to use.
24 *
25 * If this property is non-zero, the Bing Maps Key and Map Style properties
26 * are ignored.
27 */
28 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
29 int64 IonAssetID;
30
31 /**
32 * The access token to use to access the Cesium ion resource.
33 */
34 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
35 FString IonAccessToken;
36
37 /**
38 * The URL of the ion asset endpoint. Defaults to Cesium ion but a custom
39 * endpoint can be specified.
40 */
41 UPROPERTY(
42 meta =
43 (DeprecatedProperty,
44 DeprecationMessage = "Use CesiumIonServer instead."))
45 FString IonAssetEndpointUrl_DEPRECATED;
46
47 /**
48 * The Cesium ion Server from which this raster overlay is loaded.
49 */
50 UPROPERTY(
51 EditAnywhere,
52 BlueprintReadWrite,
53 Category = "Cesium",
54 AdvancedDisplay)
55 UCesiumIonServer* CesiumIonServer;
56
57 /**
58 * Check if the Cesium ion token used to access this raster overlay is working
59 * correctly, and fix it if necessary.
60 */
61 UFUNCTION(CallInEditor, Category = "Cesium")
62 void TroubleshootToken();
63
64 // UActorComponent overrides
65 virtual void PostLoad() override;
66
67protected:
68 virtual std::unique_ptr<CesiumRasterOverlays::RasterOverlay> CreateOverlay(
69 const CesiumRasterOverlays::RasterOverlayOptions& options = {}) override;
70};
Defines a Cesium ion Server.
FString DisplayName
The name to display for this server.
A quadtree pyramid of 2D raster images meant to be draped over a Cesium 3D Tileset.
virtual std::unique_ptr< CesiumRasterOverlays::RasterOverlay > CreateOverlay(const CesiumRasterOverlays::RasterOverlayOptions &options={}) 0