UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GizmoElementCone.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/GizmoElementBase.h
"
7
#include "
InputState.h
"
8
#include "
UObject/ObjectMacros.h
"
9
#include "GizmoElementCone.generated.h"
10
16
UCLASS
(
Transient
, MinimalAPI)
17
class
UGizmoElementCone
:
public
UGizmoElementBase
18
{
19
GENERATED_BODY
()
20
21
public
:
22
23
//~ Begin UGizmoElementBase Interface.
24
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
Render
(
IToolsContextRenderAPI
*
RenderAPI
,
const
FRenderTraversalState
&
RenderState
)
override
;
25
INTERACTIVETOOLSFRAMEWORK_API
virtual
FInputRayHit
LineTrace(
const
UGizmoViewContext
*
ViewContext
,
const
FLineTraceTraversalState
&
LineTraceState
,
const
FVector
& RayOrigin,
const
FVector
& RayDirection,
FLineTraceOutput
&
OutLineTraceOutput
)
override
;
26
//~ End UGizmoElementBase Interface.
27
28
// Cone tip location.
29
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
SetOrigin(
const
FVector
&
InBase
);
30
INTERACTIVETOOLSFRAMEWORK_API
virtual
FVector
GetOrigin()
const
;
31
32
// Cone axis direction pointing from tip toward base of cone.
33
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
SetDirection(
const
FVector
&
InDirection
);
34
INTERACTIVETOOLSFRAMEWORK_API
virtual
FVector
GetDirection()
const
;
35
36
// Cone height.
37
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
SetHeight(
float
InHeight
);
38
INTERACTIVETOOLSFRAMEWORK_API
virtual
float
GetHeight()
const
;
39
40
// Cone radius.
41
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
SetRadius(
float
InRadius
);
42
INTERACTIVETOOLSFRAMEWORK_API
virtual
float
GetRadius()
const
;
43
44
// Number of sides for tessellating cone.
45
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
SetNumSides(
int32
InNumSides
);
46
INTERACTIVETOOLSFRAMEWORK_API
virtual
int32
GetNumSides()
const
;
47
48
// Whether to render and end cap on the base of the cone.
49
INTERACTIVETOOLSFRAMEWORK_API
virtual
void
SetEndCaps(
bool
InEndCaps
);
50
INTERACTIVETOOLSFRAMEWORK_API
virtual
bool
GetEndCaps()
const
;
51
52
protected
:
53
54
// Cone tip location.
55
UPROPERTY
()
56
FVector
Origin =
FVector
::ZeroVector;
57
58
// Cone axis direction pointing from tip toward base of cone.
59
UPROPERTY
()
60
FVector
Direction =
FVector
(0.0f, 0.0f, -1.0f);
61
62
// Cone height.
63
UPROPERTY
()
64
float
Height = 1.0f;
65
66
// Cone radius.
67
UPROPERTY
()
68
float
Radius = 0.5f;
69
70
// Number of sides for tessellating cone.
71
UPROPERTY
()
72
int32
NumSides = 32;
73
74
// Whether to render and end cap on the base of the cone.
75
UPROPERTY
()
76
bool
bEndCaps =
false
;
77
};
CoreMinimal.h
int32
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition
Platform.h:1125
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
EPackageAutoSaveType::Transient
@ Transient
GizmoElementBase.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
IToolsContextRenderAPI
Definition
ToolContextInterfaces.h:427
UGizmoElementBase
Definition
GizmoElementBase.h:26
UGizmoElementCone
Definition
GizmoElementCone.h:18
UGizmoViewContext
Definition
GizmoViewContext.h:20
false
@ false
Definition
radaudio_common.h:23
FInputRayHit
Definition
InputState.h:52
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
GizmoElementCone.h
Generated by
1.9.8