Cesium for Unreal 2.12.0
Loading...
Searching...
No Matches
CesiumTileExcluder.h
Go to the documentation of this file.
1// Copyright 2020-2024 CesiumGS, Inc. and Contributors
2
3#pragma once
4#include "CesiumTile.h"
5#include "CoreMinimal.h"
6#include "CesiumTileExcluder.generated.h"
7
8class CesiumTileExcluderAdapter;
9
18UCLASS(
19 ClassGroup = (Cesium),
20 meta = (BlueprintSpawnableComponent),
22 Abstract)
23class CESIUMRUNTIME_API UCesiumTileExcluder : public UActorComponent {
24 GENERATED_BODY()
25private:
26 CesiumTileExcluderAdapter* pExcluderAdapter;
27
28 UPROPERTY()
29 UCesiumTile* CesiumTile;
30
31public:
32 UCesiumTileExcluder(const FObjectInitializer& ObjectInitializer);
33
34 virtual void Activate(bool bReset) override;
35 virtual void Deactivate() override;
36 virtual void OnComponentDestroyed(bool bDestroyingHierarchy) override;
37
38#if WITH_EDITOR
39 // Called when properties are changed in the editor
40 virtual void
41 PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
42#endif
43
49 UFUNCTION(BlueprintCallable, Category = "Cesium")
50 void AddToTileset();
51
57 UFUNCTION(BlueprintCallable, Category = "Cesium")
58 void RemoveFromTileset();
59
65 UFUNCTION(BlueprintCallable, Category = "Cesium")
66 void Refresh();
67
74 UFUNCTION(BlueprintNativeEvent)
75 bool ShouldExclude(const UCesiumTile* TileObject);
76};
Blueprintable
virtual void Deactivate() override
virtual void Activate(bool bReset) override
UCesiumTileExcluder(const FObjectInitializer &ObjectInitializer)
virtual void OnComponentDestroyed(bool bDestroyingHierarchy) override
A UObject representation of a Cesium Tile.
Definition CesiumTile.h:17