![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <GizmoInterfaces.h>
Inheritance diagram for IGizmoAxisSource:Public Member Functions | |
| virtual FVector | GetOrigin () const =0 |
| virtual FVector | GetDirection () const =0 |
| virtual bool | HasTangentVectors () const |
| virtual void | GetTangentVectors (FVector &TangentXOut, FVector &TangentYOut) const |
| INTERACTIVETOOLSFRAMEWORK_API void | GetAxisFrame (FVector &PlaneNormalOut, FVector &PlaneAxis1Out, FVector &PlaneAxis2Out) const |
IGizmoAxisSource is an interface which is used to get information about a 3D Axis. At minimum this includes a 3D Direction Vector and Origin Point. Optionally the implementation may provide two Tangent Vectors which are assumed to be mutually-orthogonal and perpendicular to the Axis Direction (ie that's the normal and the 3 vectors form a coordinate frame).
| void IGizmoAxisSource::GetAxisFrame | ( | FVector & | PlaneNormalOut, |
| FVector & | PlaneAxis1Out, | ||
| FVector & | PlaneAxis2Out | ||
| ) | const |
Utility function that always returns a 3D coordinate system (ie plane normal and perpendicular axes). Internally calls GetTangentVectors() if available, otherwise constructs arbitrary mutually perpendicular vectors.
Implemented in UGizmoConstantAxisSource, UGizmoConstantFrameAxisSource, UGizmoWorldAxisSource, and UGizmoComponentAxisSource.
Implemented in UGizmoConstantAxisSource, UGizmoConstantFrameAxisSource, UGizmoWorldAxisSource, and UGizmoComponentAxisSource.
|
inlinevirtual |
Get the two tangent vectors that are orthogonal to the Direction vector.
Reimplemented in UGizmoComponentAxisSource, and UGizmoConstantFrameAxisSource.
Reimplemented in UGizmoComponentAxisSource, and UGizmoConstantFrameAxisSource.