Mario Kart 64
Loading...
Searching...
No Matches
Editor::Gizmo Class Reference

#include <Gizmo.h>

Collaboration diagram for Editor::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 (GameObject *object, Ray ray)
 
void SetGizmoNoCursor (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
 
GameObject_selected = nullptr
 

Private Attributes

bool _draw = false
 

Member Enumeration Documentation

◆ GizmoHandle

enum class Editor::Gizmo::GizmoHandle
strong
Enumerator
None 
All_Axis 
X_Axis 
Y_Axis 
Z_Axis 

◆ TranslationMode

enum class Editor::Gizmo::TranslationMode
strong
Enumerator
Move 
Rotate 
Scale 

Member Function Documentation

◆ Draw()

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

◆ DrawHandles()

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

◆ Load()

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

◆ Rotate()

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

◆ Scale()

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

◆ SetGizmo()

void Editor::Gizmo::SetGizmo ( GameObject * object,
Ray ray )

◆ SetGizmoNoCursor()

void Editor::Gizmo::SetGizmoNoCursor ( GameObject * object)

◆ SnapToSurface()

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

◆ Tick()

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

◆ Translate()

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

Field Documentation

◆ _cursorOffset

FVector Editor::Gizmo::_cursorOffset

◆ _draw

bool Editor::Gizmo::_draw = false
private

◆ _gizmoOffset

float Editor::Gizmo::_gizmoOffset = 8.0f

◆ _ray

FVector Editor::Gizmo::_ray

◆ _selected

GameObject* Editor::Gizmo::_selected = nullptr

◆ AllAxisRadius

float Editor::Gizmo::AllAxisRadius = 3.0f

◆ BlueCollision

GameObject Editor::Gizmo::BlueCollision

◆ BlueRotateCollision

GameObject Editor::Gizmo::BlueRotateCollision

◆ BlueScaleCollision

GameObject Editor::Gizmo::BlueScaleCollision

◆ dimensions

TrackDimensions Editor::Gizmo::dimensions

◆ Enabled

bool Editor::Gizmo::Enabled

◆ GreenCollision

GameObject Editor::Gizmo::GreenCollision

◆ GreenRotateCollision

GameObject Editor::Gizmo::GreenRotateCollision

◆ GreenScaleCollision

GameObject Editor::Gizmo::GreenScaleCollision

◆ HandleSize

float Editor::Gizmo::HandleSize = 2.0f

◆ InitialRotation

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

◆ InitialScale

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

◆ ManipulationStart

bool Editor::Gizmo::ManipulationStart = true

◆ Mtx_BlueZ

MtxF Editor::Gizmo::Mtx_BlueZ

◆ Mtx_GreenY

MtxF Editor::Gizmo::Mtx_GreenY

◆ Mtx_RedX

MtxF Editor::Gizmo::Mtx_RedX

◆ PickDistance

float Editor::Gizmo::PickDistance

◆ Pos

FVector Editor::Gizmo::Pos

◆ RedCollision

GameObject Editor::Gizmo::RedCollision

◆ RedRotateCollision

GameObject Editor::Gizmo::RedRotateCollision

◆ RedScaleCollision

GameObject Editor::Gizmo::RedScaleCollision

◆ Rot

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

◆ SelectedHandle

GizmoHandle Editor::Gizmo::SelectedHandle

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