Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseGizmos
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGizmoBaseVec2ParameterSource
- UGizmoPlaneTranslationParameterSource
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/ParameterToTransformAdapters.h |
| Include | #include "BaseGizmos/ParameterToTransformAdapters.h" |
Syntax
class UGizmoPlaneTranslationParameterSource : public UGizmoBaseVec2ParameterSource
Remarks
UGizmoAxisRotationParameterSource is an IGizmoVec2ParameterSource implementation that interprets the FVector2D parameter as a position in a 2D plane, and maps this position to a 3D translation in a plane with origin/normal given by an IGizmoAxisSource. This translation is applied to an IGizmoTransformSource.
This ParameterSource is intended to be used to create 3D Plane Translation Gizmos.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TScriptInterface< IGizmoAxisSource > | AxisSource | AxisSource provides the 3D plane (origin/normal/u/v) that is used to interpret the 2D parameters | |
| TUniqueFunction< bool(double AxisDelta, double &SnappedDelta)> | AxisXDeltaConstraintFunction | Optional axis delta constraint function. | |
| TUniqueFunction< bool(double AxisDelta, double &SnappedDelta)> | AxisYDeltaConstraintFunction | ||
| FVector | CurTranslationAxisX | In-plane axis X for current parameter edit (only valid between BeginModify/EndModify) | |
| FVector | CurTranslationAxisY | In-plane axis Y for current parameter edit (only valid between BeginModify/EndModify) | |
| FVector | CurTranslationNormal | Plane normal for current parameter edit (only valid between BeginModify/EndModify) | |
| FVector | CurTranslationOrigin | Plane origin for current parameter edit (only valid between BeginModify/EndModify) | |
| FTransform | InitialTransform | Saved copy of Initial Transform for current parameter edit (only valid between BeginModify/EndModify) | |
| FGizmoVec2ParameterChange | LastChange | Active parameter change (only valid between BeginModify/EndModify) | |
| FVector2D | Parameter | Parameter is the two line-equation parameters that this Vec2ParameterSource provides | |
| TUniqueFunction< bool(const FVector &Input, FVector &PreProjectedOutput)> | PositionConstraintFunction | Optional position constraint function. | |
| TScriptInterface< IGizmoTransformSource > | TransformSource | This TransformSource is updated by applying the constructed 3D translation |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UGizmoPlaneTranslationParameterSource * | Construct
(
IGizmoAxisSource* AxisSourceIn, |
Create a standard instance of this ParameterSource, with the given AxisSource and TransformSource |
Overridden from IGizmoVec2ParameterSource
| Type | Name | Description | |
|---|---|---|---|
| void | BeginModify () |
Notify ParameterSource that a parameter modification is about to begin | |
| void | EndModify () |
Notify ParameterSource that a parameter modification is complete | |
| FVector2D | GetParameter () |
||
| void | SetParameter
(
const FVector2D& NewValue |
Set value of parameter |