Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Data
Inheritance Hierarchy
- UObject
- UPCGData
- UPCGSpatialData
- UPCGSpatialDataWithPointCache
- UPCGPolyLineData
- UPCGLandscapeSplineData
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Data/PCGLandscapeSplineData.h |
| Include | #include "Data/PCGLandscapeSplineData.h" |
Syntax
UCLASS (BlueprintType, ClassGroup=(Procedural))
class UPCGLandscapeSplineData : public UPCGPolyLineData
Variables
| Type | Name | Description | |
|---|---|---|---|
| FInterpCurveFloat | ReparamTable | Reparameterization of the spline by distance. Useful to query the InputKey at arbitrary distance. | |
| TWeakObjectPtr< ULandscapeSplinesComponent > | Spline |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | GetInterpPointAtDistance
(
int SegmentIndex, |
Get the index of the first interp point before a given distance. | |
| void | Initialize
(
ULandscapeSplinesComponent* InSplineComponent |
||
| void | PostLoad () |
||
| void | Recompute the reparameterization of the spline by distance. |
Overridden from UPCGPolyLineData
| Type | Name | Description | |
|---|---|---|---|
| FVector::FReal | GetCurvatureAtDistance
(
int SegmentIndex, |
Get the curvature at a distance along the line. | |
| FVector::FReal | GetDistanceAtSegmentStart
(
int SegmentIndex |
Get the cumulative distance along the line to the start of a segment. | |
| float | GetInputKeyAtDistance
(
int SegmentIndex, |
Get the input key at a distance along the line. | |
| FVector | GetLocationAtAlpha
(
float Alpha |
Get the location of the point at the normalized [0, 1] parameter across the entire the poly line. | |
| int | Get the number of segments in this line. | ||
| FVector::FReal | GetSegmentLength
(
int SegmentIndex |
Get the length of a specific segment of the line. | |
| void | GetTangentsAtSegmentStart
(
int SegmentIndex, |
Get the arrive and leave tangents for a control point via its segment index. | |
| FTransform | GetTransform () |
Get the world-space transform of the entire line. | |
| FTransform | GetTransformAtAlpha
(
float Alpha |
Get the full transform at the normalized [0, 1] parameter across the entire the poly line. | |
| FTransform | GetTransformAtDistance
(
int SegmentIndex, |
Get the location at a distance along the line. |
Overridden from UPCGSpatialDataWithPointCache
| Type | Name | Description | |
|---|---|---|---|
| const UPCGPointData * | CreatePointData
(
FPCGContext* Context |
Overridden from UPCGSpatialData
| Type | Name | Description | |
|---|---|---|---|
| UPCGSpatialData * | CopyInternal
(
FPCGContext* Context |
||
| FBox | GetBounds () |
Returns the full bounds (including density fall-off) of the data | |
| bool | SamplePoint
(
const FTransform& Transform, |
Sample rotation, scale and other attributes from this data at the query position. |
Overridden from UPCGData
| Type | Name | Description | |
|---|---|---|---|
| void | AddToCrc
(
FArchiveCrc32& Ar, |
Adds this data to Crc. Fallback implementation writes object instance UID. | |
| EPCGDataType | GetDataType () |