Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Data
Inheritance Hierarchy
- UObject
- UPCGData
- UPCGSpatialData
- UPCGSpatialDataWithPointCache
- UPCGSurfaceData
- UPCGBaseTextureData
- UPCGRenderTargetData
- UPCGTextureData
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Data/PCGTextureData.h |
| Include | #include "Data/PCGTextureData.h" |
Syntax
UCLASS (Abstract)
class UPCGBaseTextureData : public UPCGSurfaceData
Variables
| Type | Name | Description | |
|---|---|---|---|
| FBox | Bounds | ||
| bool | bUseAdvancedTiling | Whether to tile the source or to stretch it to fit target area. | |
| bool | bUseTileBounds | ||
| FVector2D | CenterOffset | ||
| EPCGTextureColorChannel | ColorChannel | ||
| TArray< FLinearColor > | ColorData | ||
| EPCGTextureDensityFunction | DensityFunction | ||
| EPCGTextureFilter | Filter | Method used to determine the value for a sample based on the value of nearby texels. | |
| int32 | Height | ||
| float | Rotation | Rotation to apply when sampling texture. | |
| float | TexelSize | The size of one texel in cm, used when calling ToPointData. | |
| FBox2D | TileBounds | ||
| FVector2D | Tiling | ||
| int32 | Width |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CopyBaseTextureData
(
UPCGBaseTextureData* NewTextureData |
||
| bool | IsValid () |
||
| bool | SamplePointLocal
(
const FVector2D& LocalPosition, |
Sample using a local space 'UV' position. |
Overridden from UPCGSpatialDataWithPointCache
| Type | Name | Description | |
|---|---|---|---|
| const UPCGPointData * | CreatePointData
(
FPCGContext* Context |
Overridden from UPCGSpatialData
| Type | Name | Description | |
|---|---|---|---|
| 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 | SamplePoint
(
const FTransform& Transform, |
Sample rotation, scale and other attributes from this data at the query position. |
Overridden from UPCGData
| Type | Name | Description | |
|---|---|---|---|
| EPCGDataType | GetDataType () |