Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Data
Inheritance Hierarchy
- UObject
- UPCGData
- UPCGSpatialData
- UPCGSpatialDataWithPointCache
- UPCGUnionData
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Data/PCGUnionData.h |
| Include | #include "Data/PCGUnionData.h" |
Syntax
UCLASS (BlueprintType, ClassGroup=(Procedural))
class UPCGUnionData : public UPCGSpatialDataWithPointCache
Variables
| Type | Name | Description | |
|---|---|---|---|
| FBox | CachedBounds | ||
| int | CachedDimension | ||
| FBox | CachedStrictBounds | ||
| TArray< TObjectPtr< const UPCGSpatialData > > | Data | ||
| EPCGUnionDensityFunction | DensityFunction | ||
| TObjectPtr< const UPCGSpatialData > | FirstNonTrivialTransformData | ||
| EPCGUnionType | UnionType |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddData
(
const UPCGSpatialData* InData |
||
| void | Initialize
(
const UPCGSpatialData* InA, |
||
| void | SetDensityFunction
(
EPCGUnionDensityFunction InDensityFunction |
||
| void | SetType
(
EPCGUnionType InUnionType |
Overridden from UPCGSpatialDataWithPointCache
| Type | Name | Description | |
|---|---|---|---|
| const UPCGPointData * | CreatePointData
(
FPCGContext* Context |
Overridden from UPCGSpatialData
| Type | Name | Description | |
|---|---|---|---|
| UPCGSpatialData * | CopyInternal () |
||
| const UPCGSpatialData * | Find the first concrete (non-composite) shape in the network. Depth first search. | ||
| 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 | Returns true if the data has a non-trivial transform | ||
| 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. | |
| FPCGCrc | ComputeCrc
(
bool bFullDataCrc |
Computes Crc for this and any connected data. | |
| EPCGDataType | GetDataType () |
||
| void | VisitDataNetwork
(
TFunctionRef< void(const UPCGData*)> Action |
Executes a lambda over all connected data objects. |