ULineSetComponent

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

ModelingComponents

Header

/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Drawing/LineSetComponent.h

Include

#include "Drawing/LineSetComponent.h"

Syntax

UCLASS()
class ULineSetComponent : public UMeshComponent

Constructors

Name Description

Public function

ULineSetComponent()

Functions

Name Description

Public function

int32

 

AddLine

(
    const FVector& InStart,
    const FVector& InEnd,
    const FColor& InColor,
    const float InThickness,
    const float InDepthBias
)

Create and add a line to be rendered using the component.

Public function

int32

 

AddLine

(
    const FRenderableLine& OverlayLine
)

Add a line to be rendered using the component.

Public function

void

 

AddLines

(
    int32 NumIndices,
    TFunctionRef< voidIndex, TArr...,
    int32 LinesPerIndexHint,
    bool bDeferRenderStateDirty
)

Add a set of lines for each index in a sequence

Public function

void

 

Clear()

Clear the line set

Public function

void

 

InsertLine

(
    const int32 ID,
    const FRenderableLine& OverlayLine
)

Insert a line with the given ID to the overlay

Public function Const

bool

 

IsLineValid

(
    const int32 ID
)

Queries whether a line with the given ID exists

Public function

void

 

RemoveLine

(
    const int32 ID
)

Remove a line from the set

Public function

void

 

ReserveLines

(
    const int32 MaxID
)

Reserve enough memory for up to the given ID (for inserting via ID)

Public function

void

 

SetAllLinesColor

(
    const FColor& NewColor
)

Sets the color of all existing lines

Public function

void

 

SetAllLinesLength

(
    const float NewLength,
    bool bUpdateBounds
)

Rescales each line assuming that vertex 0 is the origin

Public function

void

 

SetAllLinesThickness

(
    const float NewThickness
)

Sets the thickness of all existing lines

Public function

void

 

SetLineColor

(
    const int32 ID,
    const FColor& NewColor
)

Sets the color of a line

Public function

void

 

SetLineEnd

(
    const int32 ID,
    const FVector& NewPostion
)

Changes the end coordinates of a line

Public function

void

 

SetLineMaterial

(
    UMaterialInterface* InLineMate...
)

Specify material which handles lines

Public function

void

 

SetLineStart

(
    const int32 ID,
    const FVector& NewPostion
)

Changes the start coordinates of a line

Public function

void

 

SetLineThickness

(
    const int32 ID,
    const float NewThickness
)

Sets the thickness of a line