Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
ManeuverGizmo Class Reference
Inheritance diagram for ManeuverGizmo:
ManeuverGizmoBase IMouseEvents

Public Member Functions

delegate void HandlesUpdatedCallback (Vector3d dV, double UT)
 
void NextOrbit ()
 
bool NextOrbitPossible ()
 
override void OnMouseDown ()
 
override void OnMouseDrag ()
 
override void OnMouseUp ()
 
void PreviousOrbit ()
 
bool PreviousOrbitPossible ()
 
override void SetMouseOverGizmo (bool h)
 
void SetPatches (Orbit patch, Orbit nextPatch, bool reset)
 Set the patch and next patch. Resets internal checks if required. More...
 
void Setup (ManeuverNode node, PatchedConicRenderer rnd)
 
- Public Member Functions inherited from ManeuverGizmoBase
void ChangeToButtonMode ()
 
MonoBehaviour GetInstance ()
 
virtual void OnMouseEnter ()
 
virtual void OnMouseExit ()
 
virtual void Terminate ()
 

Public Attributes

Canvas canvas
 
Button deleteBtn
 
Button minusOrbitbtn
 
HandlesUpdatedCallback OnGizmoUpdated = (Vector3d dV, double UT) => { }
 
int orbitsAdded
 
Orbit patchBefore
 
Button plusOrbitBtn
 
new PatchedConicRenderer renderer
 
- Public Attributes inherited from ManeuverGizmoBase
Transform buttonRoot
 
new Camera camera
 
Transform[] cameraFacingBillboards
 
Vector3d DeltaV
 
Transform grabArea
 
ManeuverGizmoHandle handleAntiNormal
 
ManeuverGizmoHandle handleNormal
 
ManeuverGizmoHandle handlePrograde
 
ManeuverGizmoHandle handleRadialIn
 
ManeuverGizmoHandle handleRadialOut
 
ManeuverGizmoHandle handleRetrograde
 
Transform handlesRoot
 
double multiplier = 5f
 
Callback OnDelete = () => { }
 
Callback OnGizmoDraggedOff = () => { }
 
Callback OnMinimize = () => { }
 
float screenSize = 128f
 
double sensitivity = 2.0f
 
double UT
 

Protected Member Functions

override void LateUpdate ()
 
override void OnAntinormalUpdate (float value)
 
override void OnNormalUpdate (float value)
 
override void OnProgradeUpdate (float value)
 
override void OnRadialInUpdate (float value)
 
override void OnRadialOutUpdate (float value)
 
override void OnRetrogradeUpdate (float value)
 
override void Start ()
 

Additional Inherited Members

- Static Public Attributes inherited from ManeuverGizmoBase
static bool HasMouseFocus
 
- Protected Attributes inherited from ManeuverGizmoBase
bool buttonMode
 
Material grabMat
 
bool hover
 flags whether the mouse is over the gizmo center More...
 
bool mouseOverGizmo = false
 flags whether the mouse is over any part of the gizmo (including handles) More...
 
Color normal
 
float rootsLerpedScale
 
float rootsScale
 
- Properties inherited from ManeuverGizmoBase
bool MouseOverGizmo [get]
 

Member Function Documentation

delegate void ManeuverGizmo.HandlesUpdatedCallback ( Vector3d  dV,
double  UT 
)
override void ManeuverGizmo.LateUpdate ( )
inlineprotectedvirtual

Reimplemented from ManeuverGizmoBase.

void ManeuverGizmo.NextOrbit ( )
inline
bool ManeuverGizmo.NextOrbitPossible ( )
inline
override void ManeuverGizmo.OnAntinormalUpdate ( float  value)
inlineprotectedvirtual

Reimplemented from ManeuverGizmoBase.

override void ManeuverGizmo.OnMouseDown ( )
inlinevirtual

Reimplemented from ManeuverGizmoBase.

override void ManeuverGizmo.OnMouseDrag ( )
inlinevirtual

Reimplemented from ManeuverGizmoBase.

override void ManeuverGizmo.OnMouseUp ( )
inlinevirtual

Reimplemented from ManeuverGizmoBase.

override void ManeuverGizmo.OnNormalUpdate ( float  value)
inlineprotectedvirtual

Reimplemented from ManeuverGizmoBase.

override void ManeuverGizmo.OnProgradeUpdate ( float  value)
inlineprotectedvirtual

Reimplemented from ManeuverGizmoBase.

override void ManeuverGizmo.OnRadialInUpdate ( float  value)
inlineprotectedvirtual

Reimplemented from ManeuverGizmoBase.

override void ManeuverGizmo.OnRadialOutUpdate ( float  value)
inlineprotectedvirtual

Reimplemented from ManeuverGizmoBase.

override void ManeuverGizmo.OnRetrogradeUpdate ( float  value)
inlineprotectedvirtual

Reimplemented from ManeuverGizmoBase.

void ManeuverGizmo.PreviousOrbit ( )
inline
bool ManeuverGizmo.PreviousOrbitPossible ( )
inline
override void ManeuverGizmo.SetMouseOverGizmo ( bool  h)
inlinevirtual

Reimplemented from ManeuverGizmoBase.

void ManeuverGizmo.SetPatches ( Orbit  patch,
Orbit  nextPatch,
bool  reset 
)
inline

Set the patch and next patch. Resets internal checks if required.

Parameters
patch
nextPatch
resetIf true will reset checks for finding Start of the Patch. This should be set true when patch changes for the node (we go across an encounter/SOI boundary).
void ManeuverGizmo.Setup ( ManeuverNode  node,
PatchedConicRenderer  rnd 
)
inline
override void ManeuverGizmo.Start ( )
inlineprotectedvirtual

Reimplemented from ManeuverGizmoBase.

Member Data Documentation

Canvas ManeuverGizmo.canvas
Button ManeuverGizmo.deleteBtn
Button ManeuverGizmo.minusOrbitbtn
HandlesUpdatedCallback ManeuverGizmo.OnGizmoUpdated = (Vector3d dV, double UT) => { }
int ManeuverGizmo.orbitsAdded
Orbit ManeuverGizmo.patchBefore
Button ManeuverGizmo.plusOrbitBtn
new PatchedConicRenderer ManeuverGizmo.renderer

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