Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Drawing
Inheritance Hierarchy
- UMeshComponent
- UPointSetComponent
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/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
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | Create and add a point to be rendered using the component. | ||
| int32 | AddPoint
(
const FRenderablePoint& OverlayPoint |
Add a point to be rendered using the component. | |
| void | AddPoints
(
int32 NumIndices, |
Add a set of points for each index in a sequence | |
| void | Clear () |
Clear all primitives | |
| const FRenderablePoint & | Retrieve a point with the given id. | ||
| void | InsertPoint
(
const int32 ID, |
Insert a point with the given ID into the set. | |
| bool | IsPointValid
(
const int32 ID |
Queries whether a point with the given ID exists | |
| void | RemovePoint
(
const int32 ID |
Remove a point from the set. | |
| void | ReservePoints
(
const int32 MaxID |
Reserve enough memory for up to the given ID | |
| void | SetAllPointsColor
(
const FColor& NewColor |
Sets the color of all points currently in the set. | |
| void | SetAllPointsDepthBias
(
float NewDepthBias |
Sets the depth bias of all points currently in the set. | |
| void | SetAllPointsSize
(
float NewSize |
Sets the size of all points currently in the set. | |
| void | SetPointColor
(
const int32 ID, |
Sets the color of a point | |
| void | SetPointMaterial
(
UMaterialInterface* InPointMaterial |
Specify material which handles points | |
| void | SetPointPosition
(
const int32 ID, |
Sets the position of a point (assumes its existence). | |
| void | SetPointSize
(
const int32 ID, |
Sets the size of a point |