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 | Protected Attributes | Properties | List of all members
Expansions.Missions.Editor.OrbitGizmo Class Reference

Gizmo used to maniuplate orbits in the MissionEditor This class is a modified version of the stock Maneuver gizmo and was modified to work within the bounds of the mission editor only More...

Inheritance diagram for Expansions.Missions.Editor.OrbitGizmo:
ManeuverGizmoBase IMouseEvents

Public Member Functions

void ChangeToGlobalMode ()
 Changes the gizmo to global mode More...
 
void ChangeToPointMode ()
 Changes the gizmo to point mode More...
 
OrbitGizmo Create (Vector3 position, Camera cam, Transform parent)
 Creates a new orbit gizmo More...
 
delegate void HandlesUpdatedCallback (Vector3d dV, double UT)
 
override void OnMouseDrag ()
 
override void OnMouseUp ()
 
- Public Member Functions inherited from ManeuverGizmoBase
void ChangeToButtonMode ()
 
MonoBehaviour GetInstance ()
 
virtual void OnMouseDown ()
 
virtual void OnMouseEnter ()
 
virtual void OnMouseExit ()
 
virtual void SetMouseOverGizmo (bool h)
 
virtual void Terminate ()
 

Public Attributes

float eccMultiplier = 0.005f
 Global gizmo eccentricity handle sensitivity multiplier More...
 
GAPCelestialBodyState_Orbit gapOrbit
 Reference to the celestial body orbit gap More...
 
GameObject globalHandles
 Reference to the global gizmo root gameobject More...
 
SpriteButton globalModeBtn
 
ManeuverGizmoHandle handleAntiSMA
 
ManeuverGizmoHandle handleEccIn
 
ManeuverGizmoHandle handleEccOut
 
ManeuverGizmoHandle handleIncClockwise
 
ManeuverGizmoHandle handleIncCounter
 
ManeuverGizmoHandle handleSMA
 
float incMultiplier = 0.3f
 Global inclicnation handle sensitivity multiplier More...
 
bool isDragging = false
 
HandlesUpdatedCallback OnGlobalGizmoUpdated = (Vector3d dV, double UT) => { }
 Event triggered when the global gizmo value is updated More...
 
Callback OnOrbitReset = () => { }
 Event triggered when the orbit reset button is clicked More...
 
HandlesUpdatedCallback OnPointGizmoUpdated = (Vector3d dV, double UT) => { }
 Event triggered when the point gizmo value is updated More...
 
GameObject pointHandles
 Reference to the point gizmo root gameobject More...
 
SpriteButton pointModeBtn
 
SpriteButton resetBtn
 
float smaMultiplier = 500.0f
 Global gizmo semi mayour axis handle sensitivity multiplier More...
 
- 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 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 ()
 
- Protected Member Functions inherited from ManeuverGizmoBase
virtual void LateUpdate ()
 

Protected Attributes

OrbitGizmoMode mode = OrbitGizmoMode.Point
 
- 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

OrbitGizmoMode GizmoMode [get]
 Returns the current mode of the orbit gizmo More...
 
- Properties inherited from ManeuverGizmoBase
bool MouseOverGizmo [get]
 

Additional Inherited Members

- Static Public Attributes inherited from ManeuverGizmoBase
static bool HasMouseFocus
 

Detailed Description

Gizmo used to maniuplate orbits in the MissionEditor This class is a modified version of the stock Maneuver gizmo and was modified to work within the bounds of the mission editor only

Member Function Documentation

void Expansions.Missions.Editor.OrbitGizmo.ChangeToGlobalMode ( )
inline

Changes the gizmo to global mode

void Expansions.Missions.Editor.OrbitGizmo.ChangeToPointMode ( )
inline

Changes the gizmo to point mode

OrbitGizmo Expansions.Missions.Editor.OrbitGizmo.Create ( Vector3  position,
Camera  cam,
Transform  parent 
)
inline

Creates a new orbit gizmo

Parameters
positionOrbit inital location
camReference camera used for calculations
parentGizmo parent
Returns
delegate void Expansions.Missions.Editor.OrbitGizmo.HandlesUpdatedCallback ( Vector3d  dV,
double  UT 
)
override void Expansions.Missions.Editor.OrbitGizmo.OnAntinormalUpdate ( float  value)
inlineprotectedvirtual

Reimplemented from ManeuverGizmoBase.

override void Expansions.Missions.Editor.OrbitGizmo.OnMouseDrag ( )
inlinevirtual

Reimplemented from ManeuverGizmoBase.

override void Expansions.Missions.Editor.OrbitGizmo.OnMouseUp ( )
inlinevirtual

Reimplemented from ManeuverGizmoBase.

override void Expansions.Missions.Editor.OrbitGizmo.OnNormalUpdate ( float  value)
inlineprotectedvirtual

Reimplemented from ManeuverGizmoBase.

override void Expansions.Missions.Editor.OrbitGizmo.OnProgradeUpdate ( float  value)
inlineprotectedvirtual

Reimplemented from ManeuverGizmoBase.

override void Expansions.Missions.Editor.OrbitGizmo.OnRadialInUpdate ( float  value)
inlineprotectedvirtual

Reimplemented from ManeuverGizmoBase.

override void Expansions.Missions.Editor.OrbitGizmo.OnRadialOutUpdate ( float  value)
inlineprotectedvirtual

Reimplemented from ManeuverGizmoBase.

override void Expansions.Missions.Editor.OrbitGizmo.OnRetrogradeUpdate ( float  value)
inlineprotectedvirtual

Reimplemented from ManeuverGizmoBase.

override void Expansions.Missions.Editor.OrbitGizmo.Start ( )
inlineprotectedvirtual

Reimplemented from ManeuverGizmoBase.

Member Data Documentation

float Expansions.Missions.Editor.OrbitGizmo.eccMultiplier = 0.005f

Global gizmo eccentricity handle sensitivity multiplier

GAPCelestialBodyState_Orbit Expansions.Missions.Editor.OrbitGizmo.gapOrbit

Reference to the celestial body orbit gap

GameObject Expansions.Missions.Editor.OrbitGizmo.globalHandles

Reference to the global gizmo root gameobject

SpriteButton Expansions.Missions.Editor.OrbitGizmo.globalModeBtn
ManeuverGizmoHandle Expansions.Missions.Editor.OrbitGizmo.handleAntiSMA
ManeuverGizmoHandle Expansions.Missions.Editor.OrbitGizmo.handleEccIn
ManeuverGizmoHandle Expansions.Missions.Editor.OrbitGizmo.handleEccOut
ManeuverGizmoHandle Expansions.Missions.Editor.OrbitGizmo.handleIncClockwise
ManeuverGizmoHandle Expansions.Missions.Editor.OrbitGizmo.handleIncCounter
ManeuverGizmoHandle Expansions.Missions.Editor.OrbitGizmo.handleSMA
float Expansions.Missions.Editor.OrbitGizmo.incMultiplier = 0.3f

Global inclicnation handle sensitivity multiplier

bool Expansions.Missions.Editor.OrbitGizmo.isDragging = false
OrbitGizmoMode Expansions.Missions.Editor.OrbitGizmo.mode = OrbitGizmoMode.Point
protected
HandlesUpdatedCallback Expansions.Missions.Editor.OrbitGizmo.OnGlobalGizmoUpdated = (Vector3d dV, double UT) => { }

Event triggered when the global gizmo value is updated

Callback Expansions.Missions.Editor.OrbitGizmo.OnOrbitReset = () => { }

Event triggered when the orbit reset button is clicked

HandlesUpdatedCallback Expansions.Missions.Editor.OrbitGizmo.OnPointGizmoUpdated = (Vector3d dV, double UT) => { }

Event triggered when the point gizmo value is updated

GameObject Expansions.Missions.Editor.OrbitGizmo.pointHandles

Reference to the point gizmo root gameobject

SpriteButton Expansions.Missions.Editor.OrbitGizmo.pointModeBtn
SpriteButton Expansions.Missions.Editor.OrbitGizmo.resetBtn
float Expansions.Missions.Editor.OrbitGizmo.smaMultiplier = 500.0f

Global gizmo semi mayour axis handle sensitivity multiplier

Property Documentation

OrbitGizmoMode Expansions.Missions.Editor.OrbitGizmo.GizmoMode
get

Returns the current mode of the orbit gizmo


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