Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Data
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UPCGData
- UPCGSpatialData
- UPCGPointData
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/Data/PCGPointData.h |
| Include | #include "Data/PCGPointData.h" |
Syntax
UCLASS&40;BlueprintType, ClassGroup&61;&40;Procedural&41;&41;
class UPCGPointData : public UPCGSpatialData
Remarks
TODO: Split this in "concrete" vs "api" class (needed for views)
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bBoundsAreDirty | ||
| bool | bOctreeIsDirty | ||
| FBox | Bounds | ||
| FCriticalSection | CachedDataLock | ||
| PointOctree | Octree | ||
| TArray< FPCGPoint > | Points |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddSinglePointFromActor
(
AActor* InActor |
Adds a single point based on the given actor | |
| void | CopyPointsFrom
(
const UPCGPointData* InData, |
||
| TArray< FPCGPoint > & | |||
| const PointOctree & | GetOctree () |
||
| FPCGPoint | GetPoint
(
int32 Index |
||
| const TArray< FPCGPoint > & | GetPoints () |
||
| void | InitializeFromActor
(
AActor* InActor |
Initializes a single point based on the given actor | |
| void | |||
| void | |||
| void |
Overridden from UPCGSpatialData
| Type | Name | Description | |
|---|---|---|---|
| UPCGSpatialData * | CopyInternal () |
||
| 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 | |
| bool | ProjectPoint
(
const FTransform& InTransform, |
Project the query point onto this data, and sample point and metadata information at the projected position. | |
| bool | SamplePoint
(
const FTransform& Transform, |
Sample rotation, scale and other attributes from this data at the query position. | |
| const UPCGPointData * | ToPointData
(
FPCGContext* Context, |
Overridden from UPCGData
| Type | Name | Description | |
|---|---|---|---|
| void | AddToCrc
(
FArchiveCrc32& Ar, |
Adds this data to Crc. Fallback implementation writes object instance UID. | |
| EPCGDataType | GetDataType () |
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). |
Typedefs
| Name | Description |
|---|---|
| PointOctree |