UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LandscapeSplineRaster.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 "
LandscapeSplineSegment.h
"
7
8
class
ULandscapeInfo
;
9
class
ULandscapeLayerInfoObject
;
10
11
namespace
LandscapeSplineRaster
12
{
13
#if WITH_EDITOR
14
bool
FixSelfIntersection
(
TArray<FLandscapeSplineInterpPoint>
& Points,
FVector
FLandscapeSplineInterpPoint
::* Side);
15
16
struct
FPointifyFalloffs
17
{
18
FPointifyFalloffs
(
float
StartFalloff
,
float
EndFalloff)
19
:
StartLeftSide
(
StartFalloff
)
20
,
EndLeftSide
(EndFalloff)
21
,
StartRightSide
(
StartFalloff
)
22
,
EndRightSide
(EndFalloff)
23
,
StartLeftSideLayer
(
StartFalloff
)
24
,
EndLeftSideLayer
(EndFalloff)
25
,
StartRightSideLayer
(
StartFalloff
)
26
,
EndRightSideLayer
(EndFalloff)
27
{
28
}
29
30
FPointifyFalloffs
()
31
:
FPointifyFalloffs
(0.0f, 0.0f)
32
{
33
34
}
35
36
float
StartLeftSide
;
37
float
EndLeftSide
;
38
float
StartRightSide
;
39
float
EndRightSide
;
40
float
StartLeftSideLayer
;
41
float
EndLeftSideLayer
;
42
float
StartRightSideLayer
;
43
float
EndRightSideLayer
;
44
};
45
46
void
Pointify
(
const
FInterpCurveVector
& SplineInfo,
TArray<FLandscapeSplineInterpPoint>
&
OutPoints
,
int32
NumSubdivisions
,
47
float
StartFalloffFraction
,
float
EndFalloffFraction
,
48
const
float
StartWidth
,
const
float
EndWidth
,
49
const
float
StartLayerWidth
,
const
float
EndLayerWidth
,
50
const
FPointifyFalloffs
&
Falloffs
,
51
const
float
StartRollDegrees
,
const
float
EndRollDegrees
);
52
53
void
RasterizeSegmentPoints
(
ULandscapeInfo
*
LandscapeInfo
,
TArray<FLandscapeSplineInterpPoint>
Points,
const
FTransform
&
SplineToWorld
,
bool
bRaiseTerrain
,
bool
bLowerTerrain
,
ULandscapeLayerInfoObject
* LayerInfo);
54
#endif
55
}
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
LandscapeSplineSegment.h
TArray
Definition
Array.h:670
ULandscapeInfo
Definition
LandscapeInfo.h:109
ULandscapeLayerInfoObject
Definition
LandscapeLayerInfoObject.h:60
LandscapeSplineRaster
Definition
LandscapeSplineRaster.h:12
FLandscapeSplineInterpPoint
Definition
LandscapeSplineSegment.h:23
UE::Math::TTransform< double >
UE::Math::TVector< double >
Engine
Source
Runtime
Landscape
Private
LandscapeSplineRaster.h
Generated by
1.9.8