Navigation
API > API/Plugins > API/Plugins/UVEditorTools
A generic data storage class template for 3D or 2D vector data representing geometric elements composed of 1, 2, or 3 points, nominally points, lines and triangles respectively.
To support both 2D and 3D with minimal code duplication, the heigher level point/line/triangle set components are composed from the UBasic[*]SetComponentBase class for the component specific functionality, and an instantiation of the TBasicElementSet template class for either FVector2f or FVector3f that encapsulates all data storage specific functionality. The final derived classes UBasic[2/3]D[Point/Line/Triangle]SetComponent contain identical boilerplate code to facilitate calls that need to go both to the component base class and the point base class, e.g. Clear() will both mark the component as dirty and delete all points. Generic storage for sets of geometry.
| Name | TBasicElementSet |
| Type | class |
| Header File | /Engine/Plugins/Editor/UVEditor/Source/UVEditorTools/Public/Drawing/BasicElementSet.h |
| Include Path | #include "Drawing/BasicElementSet.h" |
Syntax
template<typename VectorType, int32 ElementDataSize>
class TBasicElementSet
Derived Classes
TBasicElementSet derived class hierarchy
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| GeometryType | VectorType | Drawing/BasicElementSet.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ElementSize | const int32 | Drawing/BasicElementSet.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddElement
(
Targs... ElementPoints |
Add a point to be rendered using the component. | Drawing/BasicElementSet.h | |
void ClearElements() |
Drawing/BasicElementSet.h | ||
int32 NumElements() |
Current number of points. | Drawing/BasicElementSet.h | |
void ReserveAdditionalElements
(
const int32 AdditionalNum |
Reserve enough memory for an additional number of points over the existing number already reserved. | Drawing/BasicElementSet.h | |
void ReserveElements
(
const int32 MaxNum |
Reserve enough memory for up to the given maximum number of points. | Drawing/BasicElementSet.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddElementInternal
(
const T& ElementPoint |
Drawing/BasicElementSet.h | ||
void AddElementInternal
(
const T& ElementPoint, |
Drawing/BasicElementSet.h | ||
FBox CalcElementsBox() |
Drawing/BasicElementSet.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AddPointToBox
(
const VectorType& Point, |
Helper function to generically add a point to an FBox. | Drawing/BasicElementSet.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
VectorType & operator[]
(
int32 Index |
Drawing/BasicElementSet.h | ||
const VectorType & operator[]
(
int32 Index |
Drawing/BasicElementSet.h |