| UObjectBase
|
Module |
|
Header |
/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/Drawing/PointSetComponent.h |
Include |
#include "Drawing/PointSetComponent.h" |
[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UPointSetComponent : public UMeshComponent
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.
Name | Description | |
---|---|---|
|
UPointSetComponent() |
Name | Description | ||
---|---|---|---|
|
AddPoint ( |
Add a point to the set |
|
|
Clear() |
Clear all primitives |
|
|
const FRende... |
GetPoint ( |
Retrieve a point with the given id. |
|
InsertPoint ( |
Insert a point with the given ID into the set. |
|
|
IsPointValid ( |
Queries whether a point with the given ID exists |
|
|
RemovePoint ( |
Remove a point from the set. |
|
|
ReservePoints ( |
Reserve enough memory for up to the given ID |
|
|
SetAllPointsColor ( |
Sets the color of all points currently in the set. |
|
|
SetPointColor |
Sets the color of a point |
|
|
SetPointMaterial ( |
Specify material which handles points |
|
|
SetPointPosition |
Sets the position of a point (assumes its existence). |
|
|
SetPointSize ( |
Sets the size of a point |