Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Data
Inheritance Hierarchy
- UObject
- UPCGData
- UPCGSpatialData
- UPCGSpatialDataWithPointCache
- UPCGPolyLineData
- UPCGSplineData
- UPCGWaterSplineData
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Data/PCGSplineData.h |
| Include | #include "Data/PCGSplineData.h" |
Syntax
UCLASS (BlueprintType, ClassGroup=(Procedural))
class UPCGSplineData : public UPCGPolyLineData
Variables
| Type | Name | Description | |
|---|---|---|---|
| FBox | CachedBounds | ||
| FPCGSplineStruct | SplineStruct | Minimal data needed to replicate the behavior from USplineComponent. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyTo
(
USplineComponent* InSpline |
||
| void | CopySplineData
(
UPCGSplineData* InCopy |
||
| void | Initialize
(
const USplineComponent* InSpline |
||
| void | Initialize
(
const FPCGSplineStruct& InSplineStruct |
||
| void | Initialize
(
const TArray< FSplinePoint >& InSplinePoints, |
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 | GetLocationAtDistance
(
int SegmentIndex, |
Get the location at a distance along the 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 | GetTransformAtDistance
(
int SegmentIndex, |
Get the location at a distance along the line. | |
| bool | IsClosed () |
True if the line is a closed loop. |
Overridden from UPCGSpatialDataWithPointCache
| Type | Name | Description | |
|---|---|---|---|
| const UPCGPointData * | CreatePointData
(
FPCGContext* Context |
Overridden from UPCGSpatialData
| Type | Name | Description | |
|---|---|---|---|
| UPCGSpatialData * | CopyInternal () |
||
| FBox | GetBounds () |
Returns the full bounds (including density fall-off) of the data | |
| UPCGSpatialData * | ProjectOn
(
const UPCGSpatialData* InOther, |
Returns a specialized data to project this on another data of equal or higher dimension. | |
| 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 () |