Overload  1.1
Game engine with editor
Public Types | Public Member Functions | List of all members
OvEditor::Core::GizmoBehaviour Class Reference

#include <GizmoBehaviour.h>

Public Types

enum  EDirection { EDirection::X, EDirection::Y, EDirection::Z }
 

Public Member Functions

void StartPicking (OvCore::ECS::Actor &p_target, const OvMaths::FVector3 &p_cameraPosition, EGizmoOperation p_operation, EDirection p_direction)
 
void StopPicking ()
 
void ApplyOperation (const OvMaths::FMatrix4 &p_viewMatrix, const OvMaths::FMatrix4 &p_projectionMatrix, const OvMaths::FVector2 &p_viewSize)
 
void SetCurrentMouse (const OvMaths::FVector2 &p_mousePosition)
 
bool IsPicking () const
 

Member Enumeration Documentation

◆ EDirection

Enumerator

Member Function Documentation

◆ ApplyOperation()

void OvEditor::Core::GizmoBehaviour::ApplyOperation ( const OvMaths::FMatrix4 p_viewMatrix,
const OvMaths::FMatrix4 p_projectionMatrix,
const OvMaths::FVector2 p_viewSize 
)

Handle the current behaviour

Parameters
p_viewMatrix
p_projectionMatrix
p_viewSize

◆ IsPicking()

bool OvEditor::Core::GizmoBehaviour::IsPicking ( ) const

Returns true if the gizmo is currently picked

◆ SetCurrentMouse()

void OvEditor::Core::GizmoBehaviour::SetCurrentMouse ( const OvMaths::FVector2 p_mousePosition)

Set the given mouse position as the current mouse position and update the previous mouse position

Parameters
p_mousePosition

◆ StartPicking()

void OvEditor::Core::GizmoBehaviour::StartPicking ( OvCore::ECS::Actor p_target,
const OvMaths::FVector3 p_cameraPosition,
EGizmoOperation  p_operation,
EDirection  p_direction 
)

Starts the gizmo picking behaviour for the given target in the given direction

Parameters
p_actor
p_cameraPosition
p_operation
p_direction@project: Overload
Author
: Overload Tech. @restrictions: This software may not be resold, redistributed or otherwise conveyed to a third party.

◆ StopPicking()

void OvEditor::Core::GizmoBehaviour::StopPicking ( )

Stops the gizmo picking behaviour


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