5#include "CesiumGeospatial/CartographicPolygon.h"
7#include "Components/SplineComponent.h"
8#include "CoreMinimal.h"
9#include "Engine/StaticMesh.h"
10#include "GameFramework/Actor.h"
13#include "CesiumCartographicPolygon.generated.h"
24 LongitudeLatitudeHeight
UMETA(DisplayName =
"Longitude Latitude Height"),
29 EarthCenteredEarthFixed
UMETA(DisplayName =
"Earth-Centered, Earth-Fixed"),
36UCLASS(ClassGroup = Cesium,
meta = (BlueprintSpawnableComponent))
47 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category =
"Cesium")
53 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category =
"Cesium")
76 UFUNCTION(BlueprintCallable, Category =
"Cesium")
79 const TArray<FVector>& Points);
91 bool ResetSplineAndCenterInEditorViewport();
ECesiumCoordinateReferenceSystem
A coordinate reference system used to interpret position data.
@ UMETA
Indicates a coordinate reference system expressed in terms of longitude in degrees (X),...
USplineComponent * Polygon
The polygon.
virtual void BeginPlay() override
ACesiumCartographicPolygon()
virtual void PostLoad() override
void SetPolygonPoints(const ECesiumCoordinateReferenceSystem CoordinateReferenceSystem, const TArray< FVector > &Points)
Sets the spline points from an array of positions in the specified coordinate reference system.
virtual void OnConstruction(const FTransform &Transform) override
CesiumGeospatial::CartographicPolygon CreateCartographicPolygon(const FTransform &worldToTileset) const
Creates and returns a CartographicPolygon object created from the current spline selection.
UCesiumGlobeAnchorComponent * GlobeAnchor
The Globe Anchor Component that precisely ties this Polygon to the Globe.
This component can be added to a movable actor to anchor it to the globe and maintain precise placeme...