| FQuickTransformer
|
Module |
|
Header |
/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/Transforms/QuickAxisTranslater.h |
Include |
#include "Transforms/QuickAxisTranslater.h" |
class FQuickAxisTranslater : public FQuickTransformer
FQuickAxisTranslater implements the underpinnings for "quick" axis transformations, ie axis-gizmo-like behavior without having to explicitly click on an axis.
To use this class, you first configure the internal world-axis-frame using the SetActiveX() functions. Then as you collect input updates, you call UpdateSnap() with the input ray, and this will output a snapped 3D world-space point. The delta (Frame.Origin - SnapPoint) is the move axis.
You must also call UpdateCameraState() each time the camera changes (typically each frame in a tool Render())
A default visualization is provided via the Render() function
A small snap-ball around the frame origin prevents small movements, which are unstable with this approach.
Name | Description | ||
---|---|---|---|
|
AxisColorMap |
||
|
AxisFrameWorld |
||
|
CameraState |
Camera state saved at last Render() |
|
|
MoveAxisSolver |
||
|
QuickAxisPreviewRenderer |
||
|
QuickAxisRenderer |
Name | Description | |
---|---|---|
|
~FQuickAxisTranslater() |
Name | Description | ||
---|---|---|---|
|
HaveActiveSnap() |
||
|
SetActiveFrameFromWorldNormal |
Set current snap-axis frame to a frame at the given Origin with Z aligned to the given Normal. |
|
|
UpdateSnap |
Try to find the best snap point for the given Ray, and store in SnapPointOut if found |
|
|
UpdateSnapAxes() |
Name | Description | ||
---|---|---|---|
|
Initialize() |
Set up internal data structures |
|
|
PreviewRender ( |
Draw a visualization of the current snap axes and active snap point |
|
|
Render ( |
Draw a visualization of the current snap axes and active snap point |
|
|
Reset() |
Reset transformer state |
|
|
SetActiveFrameFromWorldAxes ( |
Set current snap-axis frame to the unit axes at the given Origin |
|
|
SetActiveWorldFrame ( |
Set current snap-axis frame to the given frame |
|
|
UpdateActiveFrameOrigin ( |
Update the current snap-axis frame with a new origin |
|
|
UpdateCameraState ( |
Update internal copy of camera state. You must call this for snapping to work! |