UPointSetComponent

[UPointSetComponent](API\Plugins\ModelingComponents\Drawing\UPointSetComponent) is a Component that draws a set of points, as small squares.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

ModelingComponents

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/Drawing/PointSetComponent.h

Include

#include "Drawing/PointSetComponent.h"

Syntax

UCLASS ()
class UPointSetComponent : public UMeshComponent

Remarks

UPointSetComponent is a Component that draws a set of points, as small squares. Per-point Color and (view-space) Size is supported. Normals are not supported.

Points are inserted with an externally-defined ID, internally this is done via a TSparseArray . This class allocates a contiguous TArray large enugh to hold the largest ID. Using ReservePoints() may be beneficial for huge arrays.

The points are drawn as two triangles (ie a square) orthogonal to the view direction. The actual point size is calculated in the shader, and so a custom material must be used.

Constructors

Name Description

Public function

UPointSetComponent()

Functions

Name Description

Public function

int32

 

AddPoint

(
    const FRenderablePoint & OverlayPoi...
)

Add a point to the overlay

Public function

void

 

Clear()

Clear all primitives

Public function

void

 

InsertPoint

(
    const int32 ID,
    const FRenderablePoint & OverlayPoi...
)

Insert a point with the given ID to the overlay

Public function Const

bool

 

IsPointValid

(
    const int32 ID
)

Queries whether a point with the given ID exists

Public function

void

 

RemovePoint

(
    const int32 ID
)

Remove a point from the overlay

Public function

void

 

ReservePoints

(
    const int32 MaxID
)

Reserve enough memory for up to the given ID

Public function

void

 

SetPointColor

(
    const int32 ID,
    const FColor & NewColor
)

Sets the color of a point

Public function

void

 

SetPointMaterial

(
    UMaterialInterface * InPointMat...
)

Specify material which handles points

Public function

void

 

SetPointSize

(
    const int32 ID,
    const float NewSize
)

Sets the size of a point

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback