Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Data
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UPCGData
- UPCGSpatialData
- UPCGPointData
- UPCGSpatialDataWithPointCache
- UPCGCollisionShapeData
- UPCGDifferenceData
- UPCGIntersectionData
- UPCGPolyLineData
- UPCGLandscapeSplineData
- UPCGSplineData
- UPCGPrimitiveData
- UPCGProjectionData
- UPCGSplineProjectionData
- UPCGSurfaceData
- UPCGBaseTextureData
- UPCGRenderTargetData
- UPCGTextureData
- UPCGLandscapeData
- UPCGWorldRayHitData
- UPCGUnionData
- UPCGVolumeData
- UPCGWorldVolumetricData
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/Data/PCGSpatialData.h |
| Include | #include "Data/PCGSpatialData.h" |
Syntax
UCLASS&40;Abstract, BlueprintType, ClassGroup&61;&40;Procedural&41;&41;
class UPCGSpatialData : public UPCGData
Remarks
"Concrete" data base class for PCG generation This will be the base class for data classes that actually represent concrete evidence of spatial data - points, surfaces, splines, etc. In opposition to settings/control type of data.
Conceptually, any concrete data can be decayed into points (potentially through transformations) which hold metadata and a transform, and this is the basic currency of the PCG framework.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bKeepZeroDensityPoints | ||
| TObjectPtr< UPCGMetadata > | Metadata | Not accessible through blueprint to make sure the constness is preserved. | |
| TWeakObjectPtr< AActor > | TargetActor | Recipient of any artifacts generated using this data. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UPCGSpatialData
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const UPCGMetadata * | |||
| UPCGSpatialData * | CopyInternal () |
||
| UPCGMetadata * | |||
| UPCGSpatialData * | DuplicateData
(
const bool bInitializeMetadata |
Virtual call to allocate a new spacial data object, duplicate this spatial data into and parent the new metadata with this class metadata (if asked). | |
| 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 | |
| float | GetDensityAtPosition
(
const FVector& InPosition |
Computes the density at a given location | |
| int | GetDimension () |
Returns the dimension of the data type, which has nothing to do with the dimension of its points | |
| FVector | GetNormal () |
Returns the expected data normal (for surfaces) or eventual projection axis (for volumes) | |
| FBox | Returns the bounds in which the density is always 1 | ||
| bool | Returns true if the data has a non-trivial transform | ||
| void | InitializeFromData
(
const UPCGSpatialData* InSource, |
||
| UPCGIntersectionData * | IntersectWith
(
const UPCGSpatialData* InOther |
Returns a specialized data to intersect with another data | |
| bool | IsBounded () |
Returns whether a given spatial data is bounded as some data types do not require bounds by themselves | |
| UPCGMetadata * | |||
| UPCGSpatialData * | ProjectOn
(
const UPCGSpatialData* InOther, |
Returns a specialized data to project this on another data of equal or higher dimension. | |
| bool | ProjectPoint
(
const FTransform& InTransform, |
Project the query point onto this data, and sample point and metadata information at the projected position. | |
| bool | True if this operation does not have an inverse and cannot be queried analytically/implicitly, and therefore must be collapsed to an explicit point representation. | ||
| bool | SamplePoint
(
const FTransform& Transform, |
Sample rotation, scale and other attributes from this data at the query position. | |
| UPCGDifferenceData * | Subtract
(
const UPCGSpatialData* InOther |
||
| const UPCGPointData * | ToPointData () |
Discretizes the data into points | |
| const UPCGPointData * | ToPointData
(
FPCGContext* Context, |
||
| const UPCGPointData * | ToPointDataWithContext
(
FPCGContext& Context |
||
| UPCGUnionData * | UnionWith
(
const UPCGSpatialData* InOther |
Returns a specialized data to union this with another data |
Overridden from UPCGData
| Type | Name | Description | |
|---|---|---|---|
| FPCGAttributePropertyInputSelector | |||
| EPCGDataType | GetDataType () |
||
| bool | |||
| void | SetLastSelector
(
const FPCGAttributePropertySelector& InSelector |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | GetResourceSizeEx
(
FResourceSizeEx& CumulativeResourceSize |
Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). |