UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GizmoElementSphere.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "InputState.h"
9#include "GizmoElementSphere.generated.h"
10
16UCLASS(Transient, MinimalAPI)
18{
20
21public:
22
23 //~ Begin UGizmoElementBase Interface.
26 //~ End UGizmoElementBase Interface.
27
28 // Location of center of sphere
29 INTERACTIVETOOLSFRAMEWORK_API virtual void SetCenter(const FVector& InCenter);
30 INTERACTIVETOOLSFRAMEWORK_API virtual FVector GetCenter() const;
31
32 // Sphere radius.
33 INTERACTIVETOOLSFRAMEWORK_API virtual void SetRadius(float InRadius);
34 INTERACTIVETOOLSFRAMEWORK_API virtual float GetRadius() const;
35
36 // Number of sides for tessellating sphere.
37 INTERACTIVETOOLSFRAMEWORK_API virtual void SetNumSides(int32 InNumSides);
38 INTERACTIVETOOLSFRAMEWORK_API virtual int32 GetNumSides() const;
39
40protected:
41
42 // Location of center of sphere
43 UPROPERTY()
44 FVector Center = FVector::ZeroVector;
45
46 // Sphere radius.
47 UPROPERTY()
48 float Radius = 0.5f;
49
50 // Number of sides for tessellating sphere.
51 UPROPERTY()
52 int32 NumSides = 32;
53};
54
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition ToolContextInterfaces.h:427
Definition GizmoElementBase.h:26
Definition GizmoElementSphere.h:18
Definition GizmoViewContext.h:20
Definition InputState.h:52
Definition GizmoElementBase.h:125
Definition GizmoElementBase.h:96
Definition GizmoElementBase.h:52