Open 3D Engine AzToolsFramework API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzToolsFramework::ScaleManipulators Class Reference

#include <ScaleManipulators.h>

Inherits AzToolsFramework::Manipulators.

Public Member Functions

 ScaleManipulators (const AZ::Transform &worldFromLocal)
 
void InstallAxisLeftMouseDownCallback (const LinearManipulator::MouseActionCallback &onMouseDownCallback)
 
void InstallAxisMouseMoveCallback (const LinearManipulator::MouseActionCallback &onMouseMoveCallback)
 
void InstallAxisLeftMouseUpCallback (const LinearManipulator::MouseActionCallback &onMouseUpCallback)
 
void InstallUniformLeftMouseDownCallback (const LinearManipulator::MouseActionCallback &onMouseDownCallback)
 
void InstallUniformMouseMoveCallback (const LinearManipulator::MouseActionCallback &onMouseMoveCallback)
 
void InstallUniformLeftMouseUpCallback (const LinearManipulator::MouseActionCallback &onMouseUpCallback)
 
void SetSpaceImpl (const AZ::Transform &worldFromLocal) override
 
void SetLocalTransformImpl (const AZ::Transform &localTransform) override
 
void SetLocalPositionImpl (const AZ::Vector3 &localPosition) override
 
void SetLocalOrientationImpl (const AZ::Quaternion &localOrientation) override
 
void SetAxes (const AZ::Vector3 &axis1, const AZ::Vector3 &axis2, const AZ::Vector3 &axis3)
 
void ConfigureView (float axisLength, const AZ::Color &axis1Color, const AZ::Color &axis2Color, const AZ::Color &axis3Color)
 
void SetLineBoundWidth (float lineBoundWidth)
 Sets the bound width to use for the line/axis of a linear manipulator.
 
void ProcessManipulators (const ManipulatorVisitCallback &) override
 
- Public Member Functions inherited from AzToolsFramework::Manipulators
void Register (ManipulatorManagerId manipulatorManagerId)
 
void Unregister ()
 
void SetBoundsDirty ()
 
void AddEntityComponentIdPair (const AZ::EntityComponentIdPair &entityComponentIdPair)
 
void RemoveEntityId (AZ::EntityId entityId)
 
void RemoveEntityComponentIdPair (const AZ::EntityComponentIdPair &entityComponentIdPair)
 
bool PerformingAction ()
 
bool Registered ()
 
const AZ::Transform & GetLocalTransform () const
 
const AZ::Transform & GetSpace () const
 
const AZ::Vector3 & GetNonUniformScale () const
 
void SetSpace (const AZ::Transform &worldFromLocal)
 
void SetLocalTransform (const AZ::Transform &localTransform)
 
void SetLocalPosition (const AZ::Vector3 &localPosition)
 
void SetLocalOrientation (const AZ::Quaternion &localOrientation)
 
void SetNonUniformScale (const AZ::Vector3 &nonUniformScale)
 
virtual void RefreshView (const AZ::Vector3 &worldViewPosition)
 Refresh the Manipulator and/or View based on the current view position.
 
virtual void DisplayFeedback (AzFramework::DebugDisplayRequests &debugDisplay, const AzFramework::CameraState &cameraState)
 Provide additional display feedback for an aggregate manipulator.
 
virtual void ProcessManipulators (const ManipulatorVisitCallback &)=0
 

Additional Inherited Members

- Public Types inherited from AzToolsFramework::Manipulators
using ManipulatorVisitCallback = AZStd::function< void(BaseManipulator *)>
 Callback function that is used to visit every manipulator in this group of Manipulators.
 
- Protected Member Functions inherited from AzToolsFramework::Manipulators
virtual void SetNonUniformScaleImpl (const AZ::Vector3 &nonUniformScale)
 
- Protected Attributes inherited from AzToolsFramework::Manipulators
ManipulatorSpaceWithLocalTransform m_manipulatorSpaceWithLocalTransform
 The space and local transform for the manipulators.
 

Detailed Description

ScaleManipulators is an aggregation of 3 linear manipulators for each basis axis who share the same transform, and a single linear manipulator at the center of the transform whose axis is world up (z).

Member Function Documentation

◆ ProcessManipulators()

void AzToolsFramework::ScaleManipulators::ProcessManipulators ( const ManipulatorVisitCallback )
overridevirtual

Common processing for base manipulator type - Implement for all individual manipulators used in an aggregate manipulator.

Implements AzToolsFramework::Manipulators.

◆ SetLocalOrientationImpl()

void AzToolsFramework::ScaleManipulators::SetLocalOrientationImpl ( const AZ::Quaternion &  localOrientation)
overridevirtual

Reimplemented from AzToolsFramework::Manipulators.

◆ SetLocalPositionImpl()

void AzToolsFramework::ScaleManipulators::SetLocalPositionImpl ( const AZ::Vector3 &  localPosition)
overridevirtual

Reimplemented from AzToolsFramework::Manipulators.

◆ SetLocalTransformImpl()

void AzToolsFramework::ScaleManipulators::SetLocalTransformImpl ( const AZ::Transform &  localTransform)
overridevirtual

Reimplemented from AzToolsFramework::Manipulators.

◆ SetSpaceImpl()

void AzToolsFramework::ScaleManipulators::SetSpaceImpl ( const AZ::Transform &  worldFromLocal)
overridevirtual

Allows implementers to perform additional logic when updating the location of the manipulator group.

Reimplemented from AzToolsFramework::Manipulators.


The documentation for this class was generated from the following file: