Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework
Base class for 2d and 3d primitive objects intended to be used as part of 3D Gizmos. Contains common properties and utility functions. This class does nothing by itself, use subclasses like UGizmoElementCylinder
| Name | UGizmoElementBase |
| Type | class |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoElementBase.h |
| Include Path | #include "BaseGizmos/GizmoElementBase.h" |
Syntax
UCLASS (Transient, Abstract, MinimalAPI)
class UGizmoElementBase : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UGizmoElementBase
Derived Classes
UGizmoElementBase derived class hierarchy
Structs
| Name | Remarks |
|---|---|
| FLineTraceTraversalState | |
| FRenderTraversalState | Render traversal state structure used to maintain the current render state while rendering. |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DefaultPartIdentifier | uint32 | BaseGizmos/GizmoElementBase.h | |
| DefaultViewAlignAngleTol | float | BaseGizmos/GizmoElementBase.h | |
| DefaultViewAlignMaxCosAngleTol | float | BaseGizmos/GizmoElementBase.h | |
| DefaultViewDependentAngleTol | float | BaseGizmos/GizmoElementBase.h | |
| DefaultViewDependentAxialMaxCosAngleTol | float | BaseGizmos/GizmoElementBase.h | |
| DefaultViewDependentPlanarMinCosAngleTol | float | BaseGizmos/GizmoElementBase.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| LineTrace | void virtual Render(IToolsContextRenderAPI *RenderAPI, const FRenderTraversalState &RenderState) PURE_VIRTUAL(UGizmoElementBase FInputRayHi | Render enabled visible element. | BaseGizmos/GizmoElementBase.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ClearHoverMaterial() |
Clear mesh render state hover material attribute. | BaseGizmos/GizmoElementBase.h | |
virtual void ClearHoverVertexColor() |
Clear mesh render state vertex color attribute. | BaseGizmos/GizmoElementBase.h | |
virtual void ClearInteractMaterial() |
Clear mesh render interact state material attribute. | BaseGizmos/GizmoElementBase.h | |
virtual void ClearInteractVertexColor() |
Clear mesh render state vertex color attribute. | BaseGizmos/GizmoElementBase.h | |
virtual void ClearMaterial() |
Clear mesh render state material attribute. | BaseGizmos/GizmoElementBase.h | |
virtual void ClearVertexColor() |
Clear mesh render state vertex color attribute. | BaseGizmos/GizmoElementBase.h | |
virtual bool DoesHoverMaterialOverrideChildState() |
Get mesh render state hover material attribute's override setting. | BaseGizmos/GizmoElementBase.h | |
virtual bool DoesHoverVertexColorOverrideChildState() |
Get mesh render state vertex color attribute's override setting. | BaseGizmos/GizmoElementBase.h | |
virtual bool DoesInteractMaterialOverrideChildState() |
Get mesh render state interact material attribute's override setting. | BaseGizmos/GizmoElementBase.h | |
virtual bool DoesInteractVertexColorOverrideChildState() |
Get mesh render state vertex color attribute's override setting. | BaseGizmos/GizmoElementBase.h | |
virtual bool DoesMaterialOverrideChildState() |
Get mesh render state material attribute's override setting. | BaseGizmos/GizmoElementBase.h | |
virtual bool DoesVertexColorOverrideChildState() |
Get mesh render state vertex color attribute's override setting. | BaseGizmos/GizmoElementBase.h | |
virtual EGizmoElementInteractionState GetElementInteractionState() |
BaseGizmos/GizmoElementBase.h | ||
virtual EGizmoElementState GetElementState() |
BaseGizmos/GizmoElementBase.h | ||
virtual bool GetEnabled() |
BaseGizmos/GizmoElementBase.h | ||
virtual bool GetEnabledForDefaultState() |
BaseGizmos/GizmoElementBase.h | ||
virtual bool GetEnabledForHoveringState() |
BaseGizmos/GizmoElementBase.h | ||
virtual bool GetEnabledForInteractingState() |
BaseGizmos/GizmoElementBase.h | ||
virtual bool GetEnabledForPerspectiveProjection() |
BaseGizmos/GizmoElementBase.h | ||
virtual bool GetEnabledInOrthographicProjection() |
BaseGizmos/GizmoElementBase.h | ||
virtual bool GetHittableState() |
BaseGizmos/GizmoElementBase.h | ||
virtual const UMaterialInterface * GetHoverMaterial() |
Get mesh render state hover material attribute's value. | BaseGizmos/GizmoElementBase.h | |
virtual FLinearColor GetHoverVertexColor() |
Get mesh render state vertex color attribute's value. | BaseGizmos/GizmoElementBase.h | |
virtual const UMaterialInterface * GetInteractMaterial() |
Get mesh render state interact material attribute's value. | BaseGizmos/GizmoElementBase.h | |
virtual FLinearColor GetInteractVertexColor() |
Get mesh render state vertex color attribute's value. | BaseGizmos/GizmoElementBase.h | |
virtual const UMaterialInterface * GetMaterial() |
Get mesh render state material attribute's value. | BaseGizmos/GizmoElementBase.h | |
virtual TOptional< bool > GetPartHittableState
(
uint32 InPartIdentifier |
Get element's hittable state for element associated with the specified gizmo part, if part id was found. | BaseGizmos/GizmoElementBase.h | |
virtual uint32 GetPartIdentifier() |
BaseGizmos/GizmoElementBase.h | ||
virtual TOptional< EGizmoElementInteractionState > GetPartInteractionState
(
uint32 InPartIdentifier |
Get element's interaction state for element associated with the specified gizmo part, if part id was found. | BaseGizmos/GizmoElementBase.h | |
virtual TOptional< bool > GetPartVisibleState
(
uint32 InPartIdentifier |
Get element's visible state for element associated with the specified gizmo part, if part id was found. | BaseGizmos/GizmoElementBase.h | |
virtual float GetPixelHitDistanceThreshold() |
BaseGizmos/GizmoElementBase.h | ||
virtual FLinearColor GetVertexColor() |
Get mesh render state vertex color attribute's value. | BaseGizmos/GizmoElementBase.h | |
virtual float GetViewAlignAxialAngleTol() |
BaseGizmos/GizmoElementBase.h | ||
virtual FVector GetViewAlignAxis() |
BaseGizmos/GizmoElementBase.h | ||
virtual FVector GetViewAlignNormal() |
BaseGizmos/GizmoElementBase.h | ||
virtual EGizmoElementViewAlignType GetViewAlignType() |
BaseGizmos/GizmoElementBase.h | ||
virtual float GetViewDependentAngleTol() |
BaseGizmos/GizmoElementBase.h | ||
virtual FVector GetViewDependentAxis() |
BaseGizmos/GizmoElementBase.h | ||
virtual EGizmoElementViewDependentType GetViewDependentType() |
BaseGizmos/GizmoElementBase.h | ||
virtual bool GetVisibleState() |
BaseGizmos/GizmoElementBase.h | ||
virtual bool HasHoverVertexColor() |
Returns true, if mesh render state vertex color attribute has been set. | BaseGizmos/GizmoElementBase.h | |
virtual bool HasInteractVertexColor() |
Returns true, if mesh render state vertex color attribute has been set. | BaseGizmos/GizmoElementBase.h | |
virtual bool HasVertexColor() |
Returns true, if mesh render state vertex color attribute has been set. | BaseGizmos/GizmoElementBase.h | |
virtual void SetElementInteractionState
(
EGizmoElementInteractionState InInteractionState |
Object interaction state - None, Hovering or Interacting. | BaseGizmos/GizmoElementBase.h | |
virtual void SetElementState
(
EGizmoElementState InElementState |
Object type bitmask indicating whether this object is visible or hittable or both. | BaseGizmos/GizmoElementBase.h | |
virtual void SetEnabled
(
bool bInEnabled |
Element enabled flag. | BaseGizmos/GizmoElementBase.h | |
virtual void SetEnabledForDefaultState
(
bool bInEnabledForDefaultState |
Whether element is enabled when element state is default. | BaseGizmos/GizmoElementBase.h | |
virtual void SetEnabledForHoveringState
(
bool bInEnabledForHoveringState |
Whether element is enabled when element state is hovering. | BaseGizmos/GizmoElementBase.h | |
virtual void SetEnabledForInteractingState
(
bool bInEnabledForInteractingState |
Whether element is enabled when element state is interacting. | BaseGizmos/GizmoElementBase.h | |
virtual void SetEnabledForPerspectiveProjection
(
bool bInEnabledForPerspectiveProjection |
Whether element is enabled for perspective projections. | BaseGizmos/GizmoElementBase.h | |
virtual void SetEnabledInOrthographicProjection
(
bool bInEnabledForOrthographicProjection |
Whether element is enabled for orthographic projections. | BaseGizmos/GizmoElementBase.h | |
virtual void SetHittableState
(
bool bHittable |
Set/get the hittable bit in element state. | BaseGizmos/GizmoElementBase.h | |
virtual void SetHoverMaterial
(
TWeakObjectPtr< UMaterialInterface > InHoverMaterial, |
Set mesh render state hover material attribute. | BaseGizmos/GizmoElementBase.h | |
virtual void SetHoverVertexColor
(
FLinearColor InVertexColor, |
Set mesh render state vertex color attribute. | BaseGizmos/GizmoElementBase.h | |
virtual void SetInteractMaterial
(
TWeakObjectPtr< UMaterialInterface > InInteractMaterial, |
Set mesh render state interact material attribute. | BaseGizmos/GizmoElementBase.h | |
virtual void SetInteractVertexColor
(
FLinearColor InVertexColor, |
Set mesh render state vertex color attribute. | BaseGizmos/GizmoElementBase.h | |
virtual void SetMaterial
(
TWeakObjectPtr< UMaterialInterface > InMaterial, |
Methods for managing render state attributes: Material, HoverMaterial, InteractMaterial, VertexColor | BaseGizmos/GizmoElementBase.h | |
virtual void SetPartIdentifier
(
uint32 InPartId |
For an element hierarchy representing multiple parts of a single gizmo, the part identifier establishes a correspondence between a gizmo part and the elements that represent that part. | BaseGizmos/GizmoElementBase.h | |
virtual void SetPixelHitDistanceThreshold
(
float InPixelHitDistanceThreshold |
Pixel hit distance threshold, element will be scaled enough to add this threshold when line-tracing. */. | BaseGizmos/GizmoElementBase.h | |
virtual void SetVertexColor
(
FLinearColor InVertexColor, |
Set mesh render state vertex color attribute. | BaseGizmos/GizmoElementBase.h | |
virtual void SetViewAlignAxialAngleTol
(
float InMaxAngleTol |
View-align angle tolerance in radians. | BaseGizmos/GizmoElementBase.h | |
virtual void SetViewAlignAxis
(
FVector InAxis |
View align axis. | BaseGizmos/GizmoElementBase.h | |
virtual void SetViewAlignNormal
(
FVector InAxis |
View align normal. | BaseGizmos/GizmoElementBase.h | |
virtual void SetViewAlignType
(
EGizmoElementViewAlignType InViewAlignType |
View align type: None, PointEye, PointOnly, or Axial. | BaseGizmos/GizmoElementBase.h | |
virtual void SetViewDependentAngleTol
(
float InMaxAngleTol |
View-dependent angle tolerance in radians For Axis, object is culled when angle between view dependent axis and view direction is less than tolerance angle. | BaseGizmos/GizmoElementBase.h | |
virtual void SetViewDependentAxis
(
FVector InAxis |
View-dependent axis or plane normal, based on the view-dependent type. | BaseGizmos/GizmoElementBase.h | |
virtual void SetViewDependentType
(
EGizmoElementViewDependentType ViewDependentType |
View-dependent type - None, Axis or Plane. | BaseGizmos/GizmoElementBase.h | |
virtual void SetVisibleState
(
bool bVisible |
Set/get the visible bit in element state. | BaseGizmos/GizmoElementBase.h | |
virtual bool UpdatePartHittableState
(
bool bHittable, |
Update element's hittable state if element is associated with the specified gizmo part, return true if part id was found. | BaseGizmos/GizmoElementBase.h | |
virtual bool UpdatePartInteractionState
(
EGizmoElementInteractionState InInteractionState, |
Update element's interaction state if element is associated with the specified gizmo part, return true if part id was found. | BaseGizmos/GizmoElementBase.h | |
virtual bool UpdatePartVisibleState
(
bool bVisible, |
Update element's visibility state if element is associated with the specified gizmo part, return true if part was found. | BaseGizmos/GizmoElementBase.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FQuat GetAlignRotBetweenCoordSpaces
(
FVector SourceForward, |
Helper method for view alignment. | BaseGizmos/GizmoElementBase.h | |
virtual bool GetEnabledForInteractionState
(
EGizmoElementInteractionState InInteractionState |
Returns whether element is enabled for given interaction state. | BaseGizmos/GizmoElementBase.h | |
virtual bool GetEnabledForViewProjection
(
bool bIsPerspectiveProjection |
Returns whether element is enabled for given view projection type. | BaseGizmos/GizmoElementBase.h | |
virtual bool GetViewAlignRot
(
const FVector& InViewLocation, |
Return whether this element has a view alignment rotation based on input view parameters and view-dependent alignment settings. | BaseGizmos/GizmoElementBase.h | |
virtual bool GetViewAlignRot
(
const UGizmoViewContext* View, |
Return whether this element has a view alignment rotation based on input gizmo view context and view-dependent alignment settings. | BaseGizmos/GizmoElementBase.h | |
virtual bool GetViewAlignRot
(
const FSceneView* View, |
Return whether this element has a view alignment rotation based on input FSceneView and view-dependent alignment settings. | BaseGizmos/GizmoElementBase.h | |
virtual bool GetViewDependentVisibility
(
const FVector& InViewLocation, |
Returns whether object is visible based on view-dependent visibility settings. | BaseGizmos/GizmoElementBase.h | |
virtual bool GetViewDependentVisibility
(
const UGizmoViewContext* View, |
Returns whether object is visible in input gizmo view context based on view-dependent visibility settings. | BaseGizmos/GizmoElementBase.h | |
virtual bool GetViewDependentVisibility
(
const FSceneView* View, |
Returns whether object is visible in input FSceneView based on view-dependent visibility settings. | BaseGizmos/GizmoElementBase.h | |
virtual bool IsHittable
(
const UGizmoViewContext* ViewContext, |
Return whether element is currently hittable. | BaseGizmos/GizmoElementBase.h | |
virtual bool IsVisible
(
const FSceneView* View, |
Return whether element is currently visible. | BaseGizmos/GizmoElementBase.h | |
virtual bool UpdateLineTraceState
(
const UGizmoViewContext* ViewContext, |
Update line trace state during line trace traversal, determines the current state for this element | BaseGizmos/GizmoElementBase.h | |
virtual bool UpdateLineTraceState
(
const UGizmoViewContext* ViewContext, |
Update line trace state during line trace traversal, determines the current state for this element Same parameters as UpdateLineTraceState above plus two output parameters: | BaseGizmos/GizmoElementBase.h | |
virtual bool UpdateRenderState
(
IToolsContextRenderAPI* RenderAPI, |
Update render state during render traversal, determines the current render state for this element | BaseGizmos/GizmoElementBase.h | |
virtual bool UpdateRenderState
(
IToolsContextRenderAPI* RenderAPI, |
Update render state during render traversal, determines the current render state for this element Same parameters as UpdateRenderState above plus two output parameters: | BaseGizmos/GizmoElementBase.h | |
bool VerifyUniformScale
(
const FVector& Scale |
Helper method to verify scale is uniform. | BaseGizmos/GizmoElementBase.h |