Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Data
Inheritance Hierarchy
- UObject
- UPCGData
- UPCGSpatialData
- UPCGSpatialDataWithPointCache
- UPCGCollisionShapeData
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Data/PCGCollisionShapeData.h |
| Include | #include "Data/PCGCollisionShapeData.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup=(Procedural))
class UPCGCollisionShapeData : public UPCGSpatialDataWithPointCache
Variables
| Type | Name | Description | |
|---|---|---|---|
| FBox | CachedBounds | ||
| FBox | CachedStrictBounds | ||
| FCollisionShape | Shape | If we want to serialize this data, this will need to be broken up, and the shape adapter will need to be recreated as well. | |
| TUniquePtr< FPhysicsShapeAdapter > | ShapeAdapter | Built from shape & transform, not serialized. | |
| FTransform | Transform |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Initialize
(
UShapeComponent* InShape |
||
| bool | IsSupported
(
UShapeComponent* InShape |
Overridden from UPCGSpatialDataWithPointCache
| Type | Name | Description | |
|---|---|---|---|
| const UPCGPointData * | CreatePointData
(
FPCGContext* Context |
~Begin UPCGSpatialDataWithPointCache implementation |
Overridden from UPCGSpatialData
| Type | Name | Description | |
|---|---|---|---|
| UPCGSpatialData * | CopyInternal () |
TODO needs an implementation to support projection virtual bool ProjectPoint(const FTransform& InTransform, const FBox& InBounds, const FPCGProjectionParams& InParams, FPCGPoint& OutPoint, UPCGMetadata* OutMetadata) const; | |
| FBox | GetBounds () |
Returns the full bounds (including density fall-off) of the data | |
| int | GetDimension () |
Returns the dimension of the data type, which has nothing to do with the dimension of its points | |
| FBox | Returns the bounds in which the density is always 1 | ||
| 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 () |