Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Data
Inheritance Hierarchy
- UObject
- UPCGData
- UPCGSpatialData
- UPCGSpatialDataWithPointCache
- UPCGSurfaceData
- UPCGSplineInteriorSurfaceData
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Data/PCGSplineInteriorSurfaceData.h |
| Include | #include "Data/PCGSplineInteriorSurfaceData.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup=(Procedural))
class UPCGSplineInteriorSurfaceData : public UPCGSurfaceData
Remarks
Represents a surface implicitly using the top-down 2D projection of a closed spline.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bNeedsToCache | Flag that indicates when we need to recompute our cached information. | |
| FBox | CachedBounds | ||
| TArray< FVector > | CachedSplinePoints | Cached list of points to describe the polygon given by the spline. | |
| TArray< FVector2D > | CachedSplinePoints2D | Cached list of 2D points to describe the polygon given by the spline. | |
| FPCGSplineStruct | SplineStruct | Minimal data needed to replicate the behavior from USplineComponent. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CacheData () |
Recompute cached data used for sampling. | |
| void | Initialize
(
const UPCGSplineData* InSplineData |
||
| bool | PointInsidePolygon
(
const FTransform& InTransform, |
True if the given location falls in the top-down projection of the polygon given by our cached spline points. | |
| void | PostLoad () |
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 | |
| FBox | Returns the bounds in which the density is always 1 | ||
| bool | Returns true if the data has a non-trivial transform | ||
| bool | IsBounded () |
Returns whether a given spatial data is bounded as some data types do not require bounds by themselves | |
| bool | ProjectPoint
(
const FTransform& InTransform, |
Project the query point onto this data, and sample point and metadata information at the projected position. | |
| 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. |