Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseGizmos
Deprecated * Use UGizmoScaledAndUnscaledTransformSources instead.
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGizmoBaseTransformSource
- UGizmoScaledTransformSource
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/TransformSources.h |
| Include | #include "BaseGizmos/TransformSources.h" |
Syntax
class UGizmoScaledTransformSource : public UGizmoBaseTransformSource
Remarks
Old description: UGizmoScaledTransformSource wraps another IGizmoTransformSource implementation and adds a separate scaling vector to the Transform. The main use of this class is to support scaling in a 3D gizmo without actually scaling the Gizmo itself. Generally our pattern is to apply the gizmo's position/rotation transform to the target object via a TransformProxy, but that does not work with Scaling. So this class stores the scaling vector separately, provided by an external source via FSeparateScaleProvider, and in GetTransform/SetTransform rewrites the Transform from the child IGizmoTransformSource with the new scale.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TScriptInterface< IGizmoTransformSource > | ChildTransformSource | Child transform source | |
| FSeparateScaleProvider | ScaleProvider | Provider for external scale value/storage |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UGizmoScaledTransformSource * | Construct
(
IGizmoTransformSource* ChildSource, |
Construct a default instance of UGizmoComponentWorldTransformSource with the given Component | |
| FTransform | Return the child transform with combined scale |
Overridden from IGizmoTransformSource
| Type | Name | Description | |
|---|---|---|---|
| FTransform | GetTransform () |
IGizmoTransformSource implementation, returns child transform with local sclae | |
| void | SetTransform
(
const FTransform& NewTransform |
IGizmoTransformSource implementation, removes scale and sends to ScaleProvider, then forwards remaining rotate+translate transform to child |