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
"
6
#include "
BaseGizmos/GizmoElementLineBase.h
"
7
#include "
InputState.h
"
8
#include "
UObject/ObjectMacros.h
"
9
#include "GizmoElementLineStrip.generated.h"
10
11
class
FPrimitiveDrawInterface
;
12
class
FMaterialRenderProxy
;
13
18
UCLASS
(
Transient
, MinimalAPI)
19
class
UGizmoElementLineStrip
:
public
UGizmoElementLineBase
20
{
21
GENERATED_BODY
()
22
23
public
:
24
25
//~ Begin UGizmoElementBase Interface.
26
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
Render
(
IToolsContextRenderAPI
*
RenderAPI
,
const
FRenderTraversalState
&
RenderState
)
override
;
27
INTERACTIVETOOLSFRAMEWORK_API
virtual
FInputRayHit
LineTrace(
const
UGizmoViewContext
*
ViewContext
,
const
FLineTraceTraversalState
&
LineTraceState
,
const
FVector
& RayOrigin,
const
FVector
& RayDirection,
FLineTraceOutput
&
OutLineTraceOutput
)
override
;
28
//~ End UGizmoElementBase Interface.
29
30
// The vertices of the line strip
31
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
SetVertices(
const
TArrayView<const FVector>
&
InVertices
);
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
50
protected
:
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
};
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
EPackageAutoSaveType::Transient
@ Transient
true
return true
Definition
ExternalRpcRegistry.cpp:601
GizmoElementLineBase.h
InputState.h
ObjectMacros.h
UPROPERTY
#define UPROPERTY(...)
UObject definition macros.
Definition
ObjectMacros.h:744
GENERATED_BODY
#define GENERATED_BODY(...)
Definition
ObjectMacros.h:765
UCLASS
#define UCLASS(...)
Definition
ObjectMacros.h:776
EOpenGLFormatCapabilities::Render
@ Render
EBulkReregister::RenderState
@ RenderState
FMaterialRenderProxy
Definition
MaterialRenderProxy.h:102
FPrimitiveDrawInterface
Definition
PrimitiveDrawInterface.h:19
IToolsContextRenderAPI
Definition
ToolContextInterfaces.h:427
TArrayView
Definition
ArrayView.h:139
TArray
Definition
Array.h:670
UGizmoElementLineBase
Definition
GizmoElementLineBase.h:18
UGizmoElementLineStrip
Definition
GizmoElementLineStrip.h:20
UGizmoViewContext
Definition
GizmoViewContext.h:20
FInputRayHit
Definition
InputState.h:52
UE::Math::TTransform< double >
UE::Math::TVector< double >
UGizmoElementBase::FLineTraceOutput
Definition
GizmoElementBase.h:125
UGizmoElementBase::FLineTraceTraversalState
Definition
GizmoElementBase.h:96
UGizmoElementBase::FRenderTraversalState
Definition
GizmoElementBase.h:52
Engine
Source
Runtime
InteractiveToolsFramework
Public
BaseGizmos
GizmoElementLineStrip.h
Generated by
1.9.8