Cesium for Unreal 2.26.0
Loading...
Searching...
No Matches
CesiumVectorTilesRasterOverlay.h
Go to the documentation of this file.
1// Copyright 2020-2024 CesiumGS, Inc. and Contributors
2
3#pragma once
4
6#include "CesiumIonServer.h"
8#include "CesiumVectorStyle.h"
9#include "Components/ActorComponent.h"
10#include "CoreMinimal.h"
11#include "Delegates/Delegate.h"
12#include "CesiumVectorTilesRasterOverlay.generated.h"
13
14/**
15 * Configures where the CesiumVectorTilesRasterOverlay should load its vector
16 * data from.
17 */
18UENUM(BlueprintType)
20 /**
21 * The raster overlay will load a vector tileset from Cesium ion.
22 */
24 /**
25 * The raster overlay will load a vector tileset from a URL.
26 */
28};
29
30UCLASS(
31 ClassGroup = Cesium,
32 BlueprintType,
34 meta = (BlueprintSpawnableComponent))
35class CESIUMRUNTIME_API UCesiumVectorTilesRasterOverlay
36 : public UCesiumRasterOverlay {
37 GENERATED_BODY()
38
39public:
40 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
43 /**
44 * The ID of the Cesium ion asset to use.
45 */
46 UPROPERTY(
47 EditAnywhere,
48 BlueprintReadWrite,
49 Category = "Cesium",
50 meta =
51 (EditCondition =
52 "Source == ECesiumVectorTilesRasterOverlaySource::FromCesiumIon"))
54
55 /**
56 * The access token to use to access the Cesium ion resource.
57 */
58 UPROPERTY(
59 EditAnywhere,
60 BlueprintReadWrite,
61 Category = "Cesium",
62 meta =
63 (EditCondition =
64 "Source == ECesiumVectorTilesRasterOverlaySource::FromCesiumIon"))
66
67 /**
68 * The Cesium ion Server from which this raster overlay is loaded.
69 */
70 UPROPERTY(
71 EditAnywhere,
72 BlueprintReadWrite,
73 Category = "Cesium",
74 AdvancedDisplay,
75 meta =
76 (EditCondition =
77 "Source == ECesiumVectorTilesRasterOverlaySource::FromCesiumIon"))
79
80 /**
81 * A URL to load a vector tiles tileset from.
82 */
83 UPROPERTY(
84 EditAnywhere,
85 BlueprintReadWrite,
86 Category = "Cesium",
87 meta =
88 (EditCondition =
89 "Source == ECesiumVectorTilesRasterOverlaySource::FromUrl"))
90 FString Url;
91
92 /**
93 * Headers to use while making a request to `Url` to load a vector tiles
94 * tileset.
95 */
96 UPROPERTY(
97 EditAnywhere,
98 BlueprintReadWrite,
99 Category = "Cesium",
100 meta =
101 (EditCondition =
102 "Source == ECesiumVectorTilesRasterOverlaySource::FromUrl"))
103 TMap<FString, FString> RequestHeaders;
104
105 /**
106 * The number of mip levels to generate for each tile of this raster overlay.
107 *
108 * Additional mip levels can improve the visual quality of tiles farther from
109 * the camera at the cost of additional rasterization time to create each mip
110 * level.
111 */
112 UPROPERTY(
113 EditAnywhere,
114 BlueprintReadWrite,
115 Category = "Cesium",
116 meta = (ClampMin = "0", ClampMax = "8"))
117 int32 MipLevels = 0;
118
119 /**
120 * The default style to use for this raster overlay.
121 *
122 * If no style information is present in the vector tiles tileset, this style
123 * will be used instead.
124 */
125 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
127
128protected:
129 virtual std::unique_ptr<CesiumRasterOverlays::RasterOverlay> CreateOverlay(
130 const CesiumRasterOverlays::RasterOverlayOptions& options = {}) override;
131};
@ FromCesiumIon
The raster overlay will load a GeoJsonDocument from Cesium ion.
@ FromUrl
The raster overlay will load a GeoJsonDocument from a URL.
Blueprintable
ECesiumVectorTilesRasterOverlaySource
Configures where the CesiumVectorTilesRasterOverlay should load its vector data from.
@ FromCesiumIon
The raster overlay will load a vector tileset from Cesium ion.
Defines a Cesium ion Server.
TMap< FString, FString > RequestHeaders
Headers to use while making a request to Url to load a vector tiles tileset.
ECesiumVectorTilesRasterOverlaySource Source
int64 IonAssetID
The ID of the Cesium ion asset to use.
UCesiumIonServer * CesiumIonServer
The Cesium ion Server from which this raster overlay is loaded.
int32 MipLevels
The number of mip levels to generate for each tile of this raster overlay.
FString Url
A URL to load a vector tiles tileset from.
FString IonAccessToken
The access token to use to access the Cesium ion resource.
FCesiumVectorStyle DefaultStyle
The default style to use for this raster overlay.
virtual std::unique_ptr< CesiumRasterOverlays::RasterOverlay > CreateOverlay(const CesiumRasterOverlays::RasterOverlayOptions &options={}) override
STL namespace.
Style information to use when drawing vector data.