Cesium for Unreal 2.12.0
Loading...
Searching...
No Matches
CesiumPolygonRasterOverlay.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 "CesiumPolygonRasterOverlay.generated.h"
8
9class ACesiumCartographicPolygon;
10
11namespace Cesium3DTilesSelection {
12class RasterizedPolygonsTileExcluder;
13}
14
20UCLASS(ClassGroup = (Cesium), meta = (BlueprintSpawnableComponent))
21class CESIUMRUNTIME_API UCesiumPolygonRasterOverlay
22 : public UCesiumRasterOverlay {
23 GENERATED_BODY()
24
25public:
26 UCesiumPolygonRasterOverlay();
27
31 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
32 TArray<TSoftObjectPtr<ACesiumCartographicPolygon>> Polygons;
33
40 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
41 bool InvertSelection = false;
42
54 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
55 bool ExcludeSelectedTiles = true;
56
57protected:
58 virtual std::unique_ptr<CesiumRasterOverlays::RasterOverlay> CreateOverlay(
59 const CesiumRasterOverlays::RasterOverlayOptions& options = {}) override;
60
61 virtual void OnAdd(
63 CesiumRasterOverlays::RasterOverlay* pOverlay) override;
64 virtual void OnRemove(
66 CesiumRasterOverlays::RasterOverlay* pOverlay) override;
67
68private:
69 std::shared_ptr<Cesium3DTilesSelection::RasterizedPolygonsTileExcluder>
70 _pExcluder;
71};
A quadtree pyramid of 2D raster images meant to be draped over a Cesium 3D Tileset.
virtual void OnAdd(Cesium3DTilesSelection::Tileset *pTileset, CesiumRasterOverlays::RasterOverlay *pOverlay)
virtual void OnRemove(Cesium3DTilesSelection::Tileset *pTileset, CesiumRasterOverlays::RasterOverlay *pOverlay)
virtual std::unique_ptr< CesiumRasterOverlays::RasterOverlay > CreateOverlay(const CesiumRasterOverlays::RasterOverlayOptions &options={}) 0