UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GizmoElementLineStrip.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 "GizmoElementLineStrip.generated.h"
10
13
18UCLASS(Transient, MinimalAPI)
20{
22
23public:
24
25 //~ Begin UGizmoElementBase Interface.
28 //~ End UGizmoElementBase Interface.
29
30 // The vertices of the line strip
32 INTERACTIVETOOLSFRAMEWORK_API virtual const TArray<FVector>& GetVertices() const;
33
34 // Base Location of the line strip
35 INTERACTIVETOOLSFRAMEWORK_API virtual void SetBase(FVector InBase);
36 INTERACTIVETOOLSFRAMEWORK_API virtual FVector GetBase() const;
37
38 // Up direction
39 INTERACTIVETOOLSFRAMEWORK_API virtual void SetUpDirection(const FVector& InUpDirection);
40 INTERACTIVETOOLSFRAMEWORK_API virtual FVector GetUpDirection() const;
41
42 // Side direction
43 INTERACTIVETOOLSFRAMEWORK_API virtual void SetSideDirection(const FVector& InSideDirection);
44 INTERACTIVETOOLSFRAMEWORK_API virtual FVector GetSideDirection() const;
45
46 // Defines if the vertices should be treated as a connected strip or separate line segments
47 INTERACTIVETOOLSFRAMEWORK_API virtual void SetDrawLineStrip(bool InDrawLineStrip);
48 INTERACTIVETOOLSFRAMEWORK_API virtual bool GetDrawLineStrip() const;
49
50protected:
51
52 void ComputeProjectedVertices(const FTransform& InLocalToWorldTransform, bool bIncludeBase);
53
54 // The vertices of the line strip
55 UPROPERTY()
56 TArray<FVector> Vertices;
57
58 // Base Location of the line strip
59 UPROPERTY()
60 FVector Base = FVector::ZeroVector;
61
62 // Up direction
63 UPROPERTY()
64 FVector UpDirection = FVector(0.0f, 0.0f, 1.0f);
65
66 // Side direction
67 UPROPERTY()
68 FVector SideDirection = FVector(0.0f, 1.0f, 0.0f);
69
70 // Defines if the vertices should be treated as a connected strip or separate line segments
71 UPROPERTY()
72 bool bDrawLineStrip = true;
73
74 TArray<FVector> ProjectedVertices;
75};
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 ArrayView.h:139
Definition Array.h:670
Definition GizmoElementLineBase.h:18
Definition GizmoElementLineStrip.h:20
Definition GizmoViewContext.h:20
Definition InputState.h:52
Definition GizmoElementBase.h:125
Definition GizmoElementBase.h:96
Definition GizmoElementBase.h:52