Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework
UGizmoAxisScaleParameterSource is an IGizmoFloatParameterSource implementation that interprets the float value as the parameter of a line equation, and maps this parameter to a scale factor along a line with origin/direction given by an IGizmoAxisSource. This scale is applied to an IGizmoTransformSource.
This ParameterSource is intended to be used to create 3D Axis Scale Gizmos.
| Name | UGizmoAxisScaleParameterSource |
| Type | class |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/ParameterToTransformAdapters.h |
| Include Path | #include "BaseGizmos/ParameterToTransformAdapters.h" |
Syntax
UCLASS (MinimalAPI)
class UGizmoAxisScaleParameterSource : public UGizmoBaseFloatParameterSource
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UGizmoBaseFloatParameterSource → UGizmoAxisScaleParameterSource
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AxisSource | TScriptInterface< IGizmoAxisSource > | The Parameter line-equation value is converted to a 3D Translation along this Axis | BaseGizmos/ParameterToTransformAdapters.h | |
| bClampToZero | bool | If true, the minimal output scale will be zero. | BaseGizmos/ParameterToTransformAdapters.h | |
| CurScaleAxis | FVector | Scale axis for current parameter edit (only valid between BeginModify/EndModify) | BaseGizmos/ParameterToTransformAdapters.h | |
| CurScaleOrigin | FVector | Scale origin for current parameter edit (only valid between BeginModify/EndModify) | BaseGizmos/ParameterToTransformAdapters.h | |
| InitialTransform | FTransform | Saved copy of Initial transform for current parameter edit (only valid between BeginModify/EndModify) | BaseGizmos/ParameterToTransformAdapters.h | |
| LastChange | FGizmoFloatParameterChange | Active parameter change (only valid between BeginModify/EndModify) | BaseGizmos/ParameterToTransformAdapters.h | |
| Parameter | float | Parameter is the line-equation parameter that this FloatParameterSource provides | BaseGizmos/ParameterToTransformAdapters.h | |
| ScaleAxisDeltaConstraintFunction | TUniqueFunction< bool(const double &ScaleAxisDelta, double &SnappedScaleAxisDelta)> | Optional scale axis delta constraint function. | BaseGizmos/ParameterToTransformAdapters.h | |
| ScaleConstraintFunction | TUniqueFunction< double(const double &)> | Optional scale constraint function. | BaseGizmos/ParameterToTransformAdapters.h | |
| ScaleMultiplier | float | Coordinate delta is multiplied by this amount | BaseGizmos/ParameterToTransformAdapters.h | |
| TransformSource | TScriptInterface< IGizmoTransformSource > | This TransformSource is updated by applying the constructed 3D rotation | BaseGizmos/ParameterToTransformAdapters.h |
Functions
Public
Overridden from IGizmoFloatParameterSource
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginModify() |
Notify ParameterSource that a parameter modification is about to begin | BaseGizmos/ParameterToTransformAdapters.h | |
virtual void EndModify() |
Notify ParameterSource that a parameter modification is complete | BaseGizmos/ParameterToTransformAdapters.h | |
virtual float GetParameter() |
BaseGizmos/ParameterToTransformAdapters.h | ||
virtual void SetParameter
(
float NewValue |
Set value of parameter | BaseGizmos/ParameterToTransformAdapters.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UGizmoAxisScaleParameterSource * Construct
(
IGizmoAxisSource* AxisSourceIn, |
Create a standard instance of this ParameterSource, with the given AxisSource and TransformSource | BaseGizmos/ParameterToTransformAdapters.h |