Navigation
API > API/Plugins > API/Plugins/PCG
Base class for a 2D texture or render target.
| Name | UPCGBaseTextureData |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Data/PCGTextureData.h |
| Include Path | #include "Data/PCGTextureData.h" |
Syntax
UCLASS (MinimalAPI, Abstract)
class UPCGBaseTextureData : public UPCGSurfaceData
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UPCGData → UPCGSpatialData → UPCGSpatialDataWithPointCache → UPCGSurfaceData → UPCGBaseTextureData
Derived Classes
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| TypeInfo | FPCGDataTypeInfoBaseTexture2D | Data/PCGTextureData.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bUseAdvancedTiling | bool | Whether to tile the source or to stretch it to fit target area. | Data/PCGTextureData.h |
|
| bUseDensitySourceChannel | bool | Data/PCGTextureData.h |
|
|
| bUseTileBounds | bool | Data/PCGTextureData.h |
|
|
| CenterOffset | FVector2D | Data/PCGTextureData.h |
|
|
| ColorChannel | EPCGTextureColorChannel | Data/PCGTextureData.h |
|
|
| DensityFunction | PRAGMA_DISABLE_DEPRECATION_WARNINGS EPCGTextureDensityFunction | Data/PCGTextureData.h |
|
|
| Filter | EPCGTextureFilter | Method used to determine the value for a sample based on the value of nearby texels. | Data/PCGTextureData.h |
|
| Rotation | float | Rotation to apply when sampling texture. | Data/PCGTextureData.h |
|
| TexelSize | float | The size of one texel in cm, used when calling ToPointData. | Data/PCGTextureData.h |
|
| TileBounds | FBox2D | Data/PCGTextureData.h |
|
|
| Tiling | FVector2D | Data/PCGTextureData.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TRefCountPtr< IPooledRenderTarget > GetRefCountedTexture() |
Data/PCGTextureData.h | ||
virtual UTexture * GetTexture() |
Data/PCGTextureData.h | ||
virtual EPCGTextureResourceType GetTextureResourceType() |
Data/PCGTextureData.h | ||
virtual FTextureRHIRef GetTextureRHI() |
Data/PCGTextureData.h | ||
virtual FIntPoint GetTextureSize() |
Data/PCGTextureData.h | ||
virtual int GetTextureSlice() |
Data/PCGTextureData.h | ||
virtual bool IsValid() |
Data/PCGTextureData.h | ||
bool SamplePointLocal
(
const FVector2D& LocalPosition, |
Sample using a local space 'UV' position. | Data/PCGTextureData.h |
Overridden from UPCGSpatialDataWithPointCache
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const UPCGPointArrayData * CreatePointArrayData
(
FPCGContext* Context, |
Data/PCGTextureData.h | ||
virtual const UPCGPointData * CreatePointData
(
FPCGContext* Context |
Data/PCGTextureData.h |
Overridden from UPCGSpatialData
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FBox GetBounds() |
Returns the full bounds (including density fall-off) of the data | Data/PCGTextureData.h | |
virtual FBox GetStrictBounds() |
Returns the bounds in which the density is always 1 | Data/PCGTextureData.h | |
virtual bool SamplePoint
(
const FTransform& Transform, |
Sample rotation, scale and other attributes from this data at the query position. | Data/PCGTextureData.h |
Overridden from UPCGData
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual PRAGMA_DISABLE_DEPRECATION_WARNINGSEPCGDataType GetDataType() |
@todo_pcg To be deprecated when we switch to the new type | Data/PCGTextureData.h | |
virtual const FPCGDataTypeBaseId & GetDataTypeId() |
Data/PCGTextureData.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostLoad() |
Data/PCGTextureData.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CopyBaseTextureData
(
UPCGBaseTextureData* NewTextureData |
Data/PCGTextureData.h | ||
const UPCGBasePointData * CreateBasePointData
(
FPCGContext* Context, |
Data/PCGTextureData.h | ||
PRAGMA_DISABLE_DEPRECATION_WARNINGS EPCGTextureDensityFunction GetDensityFunctionEquivalent() |
Data/PCGTextureData.h |
|
|
void SetDensityFunctionEquivalent
(
EPCGTextureDensityFunction DensityFunction |
Data/PCGTextureData.h |
|