SpaghettiKart
Loading...
Searching...
No Matches
TrackEditor::Gizmo Class Reference

#include <Gizmo.h>

Collaboration diagram for TrackEditor::Gizmo:
[legend]

Data Structures

struct  TrackDimensions
 

Public Types

enum class  GizmoHandle {
  None , All_Axis , X_Axis , Y_Axis ,
  Z_Axis
}
 
enum class  TranslationMode { Move , Rotate , Scale }
 

Public Member Functions

void Tick ()
 
void Draw ()
 
void Load ()
 
void SetGizmo (const std::variant< AActor *, OObject *, GameObject * > &object, Ray ray)
 
void SetGizmoNoCursor (const std::variant< AActor *, OObject *, GameObject * > &object)
 
void Translate ()
 
void Rotate ()
 
void Scale ()
 
void DrawHandles ()
 
f32 SnapToSurface (FVector pos)
 

Data Fields

TrackDimensions dimensions
 
bool Enabled
 
bool ManipulationStart = true
 
FVector InitialScale = {1, 1, 1}
 
IRotator InitialRotation = {0, 0, 0}
 
GizmoHandle SelectedHandle
 
GameObject RedCollision
 
GameObject GreenCollision
 
GameObject BlueCollision
 
GameObject RedRotateCollision
 
GameObject GreenRotateCollision
 
GameObject BlueRotateCollision
 
GameObject RedScaleCollision
 
GameObject GreenScaleCollision
 
GameObject BlueScaleCollision
 
MtxF Mtx_RedX
 
MtxF Mtx_GreenY
 
MtxF Mtx_BlueZ
 
FVector Pos
 
IRotator Rot = {0, 0, 0}
 
float AllAxisRadius = 3.0f
 
float PickDistance
 
FVector _cursorOffset
 
float _gizmoOffset = 8.0f
 
float HandleSize = 2.0f
 
FVector _ray
 
std::variant< AActor *, OObject *, GameObject * > _selected
 

Private Attributes

bool _draw = false
 

Member Enumeration Documentation

◆ GizmoHandle

Enumerator
None 
All_Axis 
X_Axis 
Y_Axis 
Z_Axis 

◆ TranslationMode

Enumerator
Move 
Rotate 
Scale 

Member Function Documentation

◆ Draw()

void TrackEditor::Gizmo::Draw ( )
Here is the call graph for this function:

◆ DrawHandles()

void TrackEditor::Gizmo::DrawHandles ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Load()

void TrackEditor::Gizmo::Load ( )
Here is the call graph for this function:

◆ Rotate()

void TrackEditor::Gizmo::Rotate ( )
Here is the caller graph for this function:

◆ Scale()

void TrackEditor::Gizmo::Scale ( )
Here is the caller graph for this function:

◆ SetGizmo()

void TrackEditor::Gizmo::SetGizmo ( const std::variant< AActor *, OObject *, GameObject * > & object,
Ray ray )

◆ SetGizmoNoCursor()

void TrackEditor::Gizmo::SetGizmoNoCursor ( const std::variant< AActor *, OObject *, GameObject * > & object)

◆ SnapToSurface()

f32 TrackEditor::Gizmo::SnapToSurface ( FVector pos)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Tick()

void TrackEditor::Gizmo::Tick ( )
Here is the call graph for this function:

◆ Translate()

void TrackEditor::Gizmo::Translate ( )
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ _cursorOffset

FVector TrackEditor::Gizmo::_cursorOffset

◆ _draw

bool TrackEditor::Gizmo::_draw = false
private

◆ _gizmoOffset

float TrackEditor::Gizmo::_gizmoOffset = 8.0f

◆ _ray

FVector TrackEditor::Gizmo::_ray

◆ _selected

std::variant<AActor*, OObject*, GameObject*> TrackEditor::Gizmo::_selected

◆ AllAxisRadius

float TrackEditor::Gizmo::AllAxisRadius = 3.0f

◆ BlueCollision

GameObject TrackEditor::Gizmo::BlueCollision

◆ BlueRotateCollision

GameObject TrackEditor::Gizmo::BlueRotateCollision

◆ BlueScaleCollision

GameObject TrackEditor::Gizmo::BlueScaleCollision

◆ dimensions

TrackDimensions TrackEditor::Gizmo::dimensions

◆ Enabled

bool TrackEditor::Gizmo::Enabled

◆ GreenCollision

GameObject TrackEditor::Gizmo::GreenCollision

◆ GreenRotateCollision

GameObject TrackEditor::Gizmo::GreenRotateCollision

◆ GreenScaleCollision

GameObject TrackEditor::Gizmo::GreenScaleCollision

◆ HandleSize

float TrackEditor::Gizmo::HandleSize = 2.0f

◆ InitialRotation

IRotator TrackEditor::Gizmo::InitialRotation = {0, 0, 0}

◆ InitialScale

FVector TrackEditor::Gizmo::InitialScale = {1, 1, 1}

◆ ManipulationStart

bool TrackEditor::Gizmo::ManipulationStart = true

◆ Mtx_BlueZ

MtxF TrackEditor::Gizmo::Mtx_BlueZ

◆ Mtx_GreenY

MtxF TrackEditor::Gizmo::Mtx_GreenY

◆ Mtx_RedX

MtxF TrackEditor::Gizmo::Mtx_RedX

◆ PickDistance

float TrackEditor::Gizmo::PickDistance

◆ Pos

FVector TrackEditor::Gizmo::Pos

◆ RedCollision

GameObject TrackEditor::Gizmo::RedCollision

◆ RedRotateCollision

GameObject TrackEditor::Gizmo::RedRotateCollision

◆ RedScaleCollision

GameObject TrackEditor::Gizmo::RedScaleCollision

◆ Rot

IRotator TrackEditor::Gizmo::Rot = {0, 0, 0}

◆ SelectedHandle

GizmoHandle TrackEditor::Gizmo::SelectedHandle

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