5#include <CesiumVectorOverlays/VectorStylingProvider.h>
12#include "Components/ActorComponent.h"
13#include "CoreMinimal.h"
14#include "Delegates/Delegate.h"
15#include "CesiumVectorTilesRasterOverlay.generated.h"
23 None = 0
UMETA(ToolTip =
"Only the default style will be used."),
26 "Uses the Blueprint class implementing the ICesiumVectorTilesStylingCallbacks interface specified in BlueprintStylingProvider."),
29 "Calls the TFunction specified on the overlay using C++ to create a VectorStylingProvider directly.")
48 Category =
"Cesium|Styling")
62 Category =
"Cesium|Styling")
65 const FVector& InPointLlh,
69 const FVector& InPointLlh,
83 Category =
"Cesium|Styling")
86 const TArray<FVector>& InPolylineLlh,
90 const TArray<FVector>& InPolylineLlh,
103 BlueprintNativeEvent,
104 Category =
"Cesium|Styling")
107 const TArray<FVector>& InPolygonLlh,
111 const TArray<FVector>& InPolygonLlh,
137 meta = (BlueprintSpawnableComponent))
143 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category =
"Cesium")
155 "Source == ECesiumVectorTilesRasterOverlaySource::FromCesiumIon"))
167 "Source == ECesiumVectorTilesRasterOverlaySource::FromCesiumIon"))
180 "Source == ECesiumVectorTilesRasterOverlaySource::FromCesiumIon"))
192 "Source == ECesiumVectorTilesRasterOverlaySource::FromUrl"))
205 "Source == ECesiumVectorTilesRasterOverlaySource::FromUrl"))
219 meta = (ClampMin =
"0", ClampMax =
"8"))
228 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category =
"Cesium|Styling")
237 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category =
"Cesium|Styling")
253 Category =
"Cesium|Styling",
256 "StylingProviderType == ECesiumVectorStylingProviderType::Blueprint",
258 "/Script/CesiumRuntime.CesiumVectorTilesStylingCallbacks"))
267 TFunction<
std::shared_ptr<CesiumVectorOverlays::VectorStylingProvider>()>>
276 UObject* _pStylingInterfaceObject;
@ UMETA
The tileset will be loaded from Cesium Ion using the provided IonAssetID and IonAccessToken.
@ FromCesiumIon
The raster overlay will load a GeoJsonDocument from Cesium ion.
@ FromUrl
The raster overlay will load a GeoJsonDocument from a URL.
ECesiumVectorStylingProviderType
Determines the styling provider to be used to provide styling information for individual features.
ECesiumVectorTilesRasterOverlaySource
Configures where the CesiumVectorTilesRasterOverlay should load its vector data from.
@ FromCesiumIon
The raster overlay will load a vector tileset from Cesium ion.
bool OnStylePoint(int64 InFeatureId, const FVector &InPointLlh, FCesiumVectorPointStyle &OutPointStyle)
This function is called for each individual point feature.
virtual bool OnStylePoint_Implementation(int64 InFeatureId, const FVector &InPointLlh, FCesiumVectorPointStyle &OutPointStyle)
virtual void OnStylingBegin_Implementation(const FCesiumModelMetadata &InModelMetadata)
bool OnStylePolygon(int64 InFeatureId, const TArray< FVector > &InPolygonLlh, FCesiumVectorPolygonStyle &OutPolygonStyle)
This function is called for each individual polygon feature.
virtual bool OnStylePolyline_Implementation(int64 InFeatureId, const TArray< FVector > &InPolylineLlh, FCesiumVectorLineStyle &OutLineStyle)
virtual bool OnStylePolygon_Implementation(int64 InFeatureId, const TArray< FVector > &InPolygonLlh, FCesiumVectorPolygonStyle &OutPolygonStyle)
bool OnStylePolyline(int64 InFeatureId, const TArray< FVector > &InPolylineLlh, FCesiumVectorLineStyle &OutLineStyle)
This function is called for each individual polyline feature.
void OnStylingBegin(const FCesiumModelMetadata &InModelMetadata)
This function is called before styling begins.
Defines a Cesium ion Server.
TSubclassOf< UObject > BlueprintStylingProvider
The Blueprint class that will be instantiated to provide styling information for features when Stylin...
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.
ECesiumVectorStylingProviderType StylingProviderType
The styling provider to use to apply styling information to individual features.
virtual std::unique_ptr< CesiumRasterOverlays::RasterOverlay > CreateOverlay(const CesiumRasterOverlays::RasterOverlayOptions &options={}) override
TOptional< TFunction< std::shared_ptr< CesiumVectorOverlays::VectorStylingProvider >()> > LambdaStylingProvider
The lambda that will be called to instantiate a CesiumVectorOverlays::VectorStylingProvider when Styl...
The style used to draw polylines and strokes.
The style used to draw polygons.
Style information to use when drawing vector data.