Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseGizmos
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGizmoElementBase
- UGizmoElementLineBase
- UGizmoElementCircleBase
- UGizmoElementArc
- UGizmoElementCircle
- UGizmoElementTorus
- UGizmoElementGroup
- UGizmoElementRectangle
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoElementLineBase.h |
| Include | #include "BaseGizmos/GizmoElementLineBase.h" |
Syntax
class UGizmoElementLineBase : public UGizmoElementBase
Remarks
Base class for 2d and 3d primitive objects which support line drawing, intended to be used as part of 3D Gizmos.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bScreenSpaceLine | Whether line thickness is in screen space. | |
| float | HoverLineThicknessMultiplier | Multiplier applied to line thickness when hovering. | |
| float | InteractLineThicknessMultiplier | Multiplier applied to line thickness when interacting. | |
| FGizmoElementLineRenderStateAttributes | LineRenderAttributes | Line render state attributes for this element. | |
| float | LineThickness | Line thickness when rendering lines, must be >= 0.0, value of 0.0 will render thinnest line. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Clear line render state hover line color attribute. | ||
| void | Clear line render state interact line color attribute. | ||
| void | Clear line render state line color attribute. | ||
| bool | Get line render state hover line color attribute's override setting. | ||
| bool | Get line render state interact line color attribute's override setting. | ||
| bool | Get line render state line color attribute's override setting. | ||
| float | GetCurrentLineThickness
(
bool bPerspectiveView, |
Get line thickness for based on current element interaction state and view. | |
| FLinearColor | Get line render state hover line color attribute's value. | ||
| float | |||
| FLinearColor | Get line render state interact line color attribute's value. | ||
| float | |||
| FLinearColor | GetLineColor () |
Get line render state line color attribute's value. | |
| float | |||
| bool | |||
| bool | Returns true if line render state hover line color attribute has been set. | ||
| bool | Returns true if line render state interact line color attribute has been set. | ||
| bool | HasLineColor () |
Returns true if line render state line color attribute has been set. | |
| void | SetHoverLineColor
(
FLinearColor InColor, |
Set line render state hover line color attribute. | |
| void | SetHoverLineThicknessMultiplier
(
float InHoverLineThicknessMultiplier |
Multiplier applied to line thickness when hovering. | |
| void | SetInteractLineColor
(
FLinearColor InColor, |
Set line render state interact line color attribute. | |
| void | SetInteractLineThicknessMultiplier
(
float InInteractLineThicknessMultiplier |
Multiplier applied to line thickness when interacting. | |
| void | SetLineColor
(
FLinearColor InColor, |
Methods for managing line state attributes: LineColor, HoverLineColor, InteractLineColor | |
| void | SetLineThickness
(
float InLineThickness |
Line thickness when rendering lines, 0.0 is valid and will render thinnest line. | |
| void | SetScreenSpaceLine
(
bool bInScreenSpaceLine |
Whether line thickness is in screen space. |
Overridden from UGizmoElementBase
| Type | Name | Description | |
|---|---|---|---|
| bool | UpdateRenderState
(
IToolsContextRenderAPI* RenderAPI, |
Update render state during render traversal, determines the current render state for this element |