Cesium for Unreal 2.12.0
Loading...
Searching...
No Matches
CesiumCartographicPolygon.h
Go to the documentation of this file.
1// Copyright 2020-2024 CesiumGS, Inc. and Contributors
2
3#pragma once
4
6#include "CesiumGeospatial/CartographicPolygon.h"
7#include "CesiumGeospatial/GlobeRectangle.h"
9#include "Components/SplineComponent.h"
10#include "CoreMinimal.h"
11#include "Engine/StaticMesh.h"
12#include "GameFramework/Actor.h"
13#include <vector>
14
15#include "CesiumCartographicPolygon.generated.h"
16
21UCLASS(ClassGroup = (Cesium), meta = (BlueprintSpawnableComponent))
22class CESIUMRUNTIME_API ACesiumCartographicPolygon : public AActor {
23
24 GENERATED_BODY()
25
26public:
27 ACesiumCartographicPolygon();
28
32 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Cesium")
33 USplineComponent* Polygon;
34
38 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Cesium")
39 UCesiumGlobeAnchorComponent* GlobeAnchor;
40
41 virtual void OnConstruction(const FTransform& Transform) override;
42
52 CreateCartographicPolygon(const FTransform& worldToTileset) const;
53
54 // AActor overrides
55 virtual void PostLoad() override;
56
57protected:
58 virtual void BeginPlay() override;
59
60private:
61 void MakeLinear();
62};
This component can be added to a movable actor to anchor it to the globe and maintain precise placeme...