Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseGizmos
Inheritance Hierarchy
- UObject
- UTransformProxy
- UComponentBoundTransformProxy
- USkeletonTransformProxy
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/TransformProxy.h |
| Include | #include "BaseGizmos/TransformProxy.h" |
Syntax
UCLASS (Transient, MinimalAPI)
class UTransformProxy : public UObject
Remarks
UTransformProxy is used to transform a set of sub-objects. An internal FTransform is generated based on the sub-object set, and the relative FTransform of each sub-object is stored. Then as this main transform is updated, the sub-objects are also updated.
Currently only USceneComponent sub-objects are supported.
If only one sub-object is set, the main transform is the sub-object transform. Otherwise the main transform is centered at the average origin and has no rotation.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bRotatePerObject | If true, relative rotation of shared transform is applied to objects before relative translation (ie they rotate in place) | |
| bool | bSetPivotMode | If true, then on SetTransform() the components are not moved, and their local transforms are recalculated | |
| FTransform | InitialSharedTransform | The main transform | |
| TArray< FRelativeObject > | Objects | List of sub-objects | |
| FOnBeginPivotEdit | OnBeginPivotEdit | ||
| FOnBeginTransformEdit | OnBeginTransformEdit | ||
| FOnEndPivotEdit | OnEndPivotEdit | ||
| FOnEndTransformEdit | OnEndTransformEdit | ||
| FOnPivotChanged | OnPivotChanged | ||
| FOnTransformChanged | OnTransformChanged | ||
| FOnTransformChanged | OnTransformChangedUndoRedo | This delegate is fired whenever the transform is changed by a FTransformProxyChange, ie on undo/redo. | |
| FTransform | SharedTransform | The main transform |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddComponent
(
USceneComponent* Component, |
Add a component sub-object to the proxy set. | |
| void | AddComponentCustom
(
USceneComponent* Component, |
Add a component sub-object to the proxy set with custom transform access functions. | |
| void | Clients should call this before a sequence of SetTransform calls that have bSetPivotMode as true (see comment in BeginTransformEditSequence). | ||
| void | In some use cases SetTransform() will be called repeatedly (eg during an interactive gizmo edit). | ||
| void | Clients should call this when done with a sequence of SetTransform that have bSetPivotMode as true (see comment in BeginTransformEditSequence). | ||
| void | External clients should call this when done a sequence of SetTransform calls (see BeginTransformEditSequence) | ||
| FTransform | GetTransform () |
||
| void | SetTransform
(
const FTransform& Transform |
Update the main transform and then update the sub-objects based on their relative transformations | |
| void | Propagate a transform update to the sub-objects | ||
| void | Recalculate per-object relative transforms | ||
| void | Recalculate main SharedTransform when object set changes |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FRelativeObject |
Typedefs
| Name | Description |
|---|---|
| FOnBeginPivotEdit | This delegate is fired when BeginTransformEditSequence() is called to indicate that a sequence of pivot updates has started |
| FOnBeginTransformEdit | This delegate is fired when BeginTransformEditSequence() is called to indicate that a sequence of transform updates has started |
| FOnEndPivotEdit | This delegate is fired when EndTransformEditSequence() is called to indicate that a sequence of pivot updates has ended |
| FOnEndTransformEdit | This delegate is fired when EndTransformEditSequence() is called to indicate that a sequence of transform updates has ended |
| FOnPivotChanged | This delegate is fired whenever the internal transform changes due to a pivot reposition, ie on AddComponent and when SetTransform is called with bSetPivotMode being true. |
| FOnTransformChanged | This delegate is fired whenever the transform changes in a way that updates the contained components. |