Navigation
API > API/Plugins > API/Plugins/PointCloud
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- UPrimitiveComponent
- UMeshComponent
- UPointCloudComponent
References
| Module | PointCloud |
| Header | /Engine/Plugins/Experimental/AR/PointCloud/Source/PointCloud/Public/PointCloudComponent.h |
| Include | #include "PointCloudComponent.h" |
Syntax
UCLASS&40;HideCategories&61;&40;Object, LOD&41;, Meta&61;&40;BlueprintSpawnableComponent&41;, ClassGroup&61;PointCloud&41;
class UPointCloudComponent : public UMeshComponent
Remarks
Component for rendering a point cloud
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsVisible | If true, each tick the component will render its point cloud | |
| TArray< FVector > | PointCloud | Point cloud data that will be used for rendering, assumes each point is in world space | |
| TObjectPtr< UMaterialInterface > | PointCloudMaterial | The material to render with | |
| float | PointCloudUpdateInterval | If > 0, will automatically update the point cloud data from AR system based on this interval (sec) | |
| FLinearColor | PointColor | The color to render the points with | |
| TArray< FColor > | PointColors | Point cloud color data that will be used for rendering | |
| float | PointSize | The size of the point when rendering | |
| TObjectPtr< UTexture > | SpriteTexture | An optional sprite texture to render the point with |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UPointCloudComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Empties the point cloud | ||
| TArray< FVector > | GetPointsInBox
(
const FBox& WorldSpaceBox |
Determines which points are within the box and returns those to the caller | |
| TArray< FVector > | GetPointsOutsideBox
(
const FBox& WorldSpaceBox |
Determines which points are outside the box and returns those to the caller | |
| void | SetIsVisible
(
bool bNewVisibility |
Changes the visibility setting | |
| void | SetPointCloud
(
const TArray< FVector >& Points |
Updates the point cloud data with the new set of points | |
| void | SetPointCloudWithColors
(
const TArray< FVector >& Points, |
Updates the point cloud data with the new set of points and colors | |
| void | SetPointColor
(
const FLinearColor& Color |
Allows you to change the color of the points being rendered | |
| void | SetPointSize
(
float Size |
Allows you to change the size of the points being rendered |