UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GizmoElementRectangle.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 "GizmoElementRectangle.generated.h"
10
13
18UCLASS(Transient, MinimalAPI)
20{
22
23public:
24
25 //~ Begin UGizmoElementBase Interface.
28 //~ End UGizmoElementBase Interface.
29
30 // Location of rectangle center
31 INTERACTIVETOOLSFRAMEWORK_API virtual void SetCenter(FVector InCenter);
32 INTERACTIVETOOLSFRAMEWORK_API virtual FVector GetCenter() const;
33
34 // Width
35 INTERACTIVETOOLSFRAMEWORK_API virtual void SetWidth(float InWidth);
36 INTERACTIVETOOLSFRAMEWORK_API virtual float GetWidth() const;
37
38 // Height
39 INTERACTIVETOOLSFRAMEWORK_API virtual void SetHeight(float InHeight);
40 INTERACTIVETOOLSFRAMEWORK_API virtual float GetHeight() const;
41
42 // Up direction
43 INTERACTIVETOOLSFRAMEWORK_API virtual void SetUpDirection(const FVector& InUpDirection);
44 INTERACTIVETOOLSFRAMEWORK_API virtual FVector GetUpDirection() const;
45
46 // Side direction
47 INTERACTIVETOOLSFRAMEWORK_API virtual void SetSideDirection(const FVector& InSideDirection);
48 INTERACTIVETOOLSFRAMEWORK_API virtual FVector GetSideDirection() const;
49
50 // Draw mesh
51 INTERACTIVETOOLSFRAMEWORK_API virtual void SetDrawMesh(bool InDrawMesh);
52 INTERACTIVETOOLSFRAMEWORK_API virtual bool GetDrawMesh() const;
53
54 // Draw line
55 INTERACTIVETOOLSFRAMEWORK_API virtual void SetDrawLine(bool InDrawLine);
56 INTERACTIVETOOLSFRAMEWORK_API virtual bool GetDrawLine() const;
57
58 // Hit mesh
59 INTERACTIVETOOLSFRAMEWORK_API virtual void SetHitMesh(bool InHitMesh);
60 INTERACTIVETOOLSFRAMEWORK_API virtual bool GetHitMesh() const;
61
62 // Hit line
63 INTERACTIVETOOLSFRAMEWORK_API virtual void SetHitLine(bool InHitLine);
64 INTERACTIVETOOLSFRAMEWORK_API virtual bool GetHitLine() const;
65
66protected:
67
68 // Location of rectangle center
69 UPROPERTY()
70 FVector Center = FVector::ZeroVector;
71
72 // Width
73 UPROPERTY()
74 float Width = 1.0f;
75
76 // Height
77 UPROPERTY()
78 float Height = 1.0f;
79
80 // Up direction
81 UPROPERTY()
82 FVector UpDirection = FVector(0.0f, 0.0f, 1.0f);
83
84 // Side direction
85 UPROPERTY()
86 FVector SideDirection = FVector(0.0f, 1.0f, 0.0f);
87
88 UPROPERTY()
89 bool bDrawMesh = true;
90
91 UPROPERTY()
92 bool bDrawLine = false;
93
94 UPROPERTY()
95 bool bHitMesh = true;
96
97 UPROPERTY()
98 bool bHitLine = false;
99};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition MaterialRenderProxy.h:102
Definition PrimitiveDrawInterface.h:19
Definition ToolContextInterfaces.h:427
Definition GizmoElementLineBase.h:18
Definition GizmoElementRectangle.h:20
Definition GizmoViewContext.h:20
@ false
Definition radaudio_common.h:23
Definition InputState.h:52
Definition GizmoElementBase.h:125
Definition GizmoElementBase.h:96
Definition GizmoElementBase.h:52