Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Protected Member Functions | Properties | List of all members
Expansions.Missions.Editor.GAPOrbitRenderer Class Reference

Manages the display representation of an orbit in the MissionEditor Action Pane Display This class is a modified version of the stock OrbitRenderer and was modified to work within the bounds of the mission editor only More...

Inheritance diagram for Expansions.Missions.Editor.GAPOrbitRenderer:
OrbitRendererBase

Public Member Functions

void Destroy ()
 Destroy this renderer instance More...
 
void Display (bool value)
 
void DrawOrbit (bool isDirty)
 Redraws the orbit when the orbit values change More...
 
- Public Member Functions inherited from OrbitRendererBase
bool GetMouseOverNode (Vector3 worldPos, float iconSize)
 
bool IsRenderableOrbit (Orbit o, CelestialBody tgt)
 
virtual bool OrbitCast (Vector3 screenPos, out OrbitCastHit hitInfo, float orbitPixelWidth=10f)
 
virtual bool OrbitCast (Vector3 screenPos, Camera cam, out OrbitCastHit hitInfo, float orbitPixelWidth=10f)
 
virtual void RefreshMapObject ()
 If vessel is not Null and the vesselType is a VesselType.DeployedSciencePart - will terminate any objectNode that is setup. Will find again the MapObject depending on the type of object. Will then Create any missing scaledspace nodes and then attachnode UIs if any missing. More...
 
void SetColor (Color color)
 

Static Public Member Functions

static GAPOrbitRenderer Create (GameObject objRef, Camera orbitCam, Orbit orbit, bool isInteractive)
 Creates an instance of the GAPOrbitRenderer More...
 
static GAPOrbitRenderer Create (GAPCelestialBody gapRef)
 Creates an instance of the GAPOrbitRenderer More...
 

Protected Member Functions

override void AttachNodeUIs (Transform parent)
 
MapNode AttachObjectNode (int size)
 
override void DrawSpline ()
 Copied method from OrbitRedererBase, but skipping the option to draw the splines in 2D (They will look incorrect in the mission editor) More...
 
override void LateUpdate ()
 
Vector3 OnUpdatePositionToUI (MapNode n, Vector3d scaledSpacePos)
 
override void Start ()
 
- Protected Member Functions inherited from OrbitRendererBase
virtual void ANDNNodes_OnUpdateIcon (MapNode n, MapNode.IconData data)
 
virtual void apNode_OnUpdateCaption (MapNode n, MapNode.CaptionData data)
 
virtual void ApNode_OnUpdateIcon (MapNode n, MapNode.IconData data)
 
virtual Vector3d apNode_OnUpdatePosition (MapNode n)
 
virtual void ascNode_OnUpdateCaption (MapNode n, MapNode.CaptionData data)
 
virtual Vector3d ascNode_OnUpdatePosition (MapNode n)
 
virtual bool CanDrawAnyIcons ()
 
virtual void descNode_OnUpdateCaption (MapNode n, MapNode.CaptionData data)
 
virtual Vector3d descNode_OnUpdatePosition (MapNode n)
 
virtual void DrawOrbit (DrawMode mode)
 
virtual DrawIcons GetCurrentDrawMode ()
 
virtual Color GetNodeColour ()
 
virtual Color GetOrbitColour ()
 
virtual bool HaveStateVectorKnowledge ()
 
virtual void objectNode_OnClick (MapNode mn, Mouse.Buttons btns)
 
virtual void objectNode_OnUpdateCaption (MapNode n, MapNode.CaptionData data)
 
virtual void objectNode_OnUpdateIcon (MapNode n, MapNode.IconData data)
 
virtual Vector3d objectNode_OnUpdatePosition (MapNode n)
 
virtual void objectNode_OnUpdateType (MapNode n, MapNode.TypeData data)
 
virtual void OnDestroy ()
 
virtual void peNode_OnUpdateCaption (MapNode n, MapNode.CaptionData data)
 
virtual void PeNode_OnUpdateIcon (MapNode n, MapNode.IconData data)
 
virtual Vector3d peNode_OnUpdatePosition (MapNode n)
 
void SplineOpacityUpdate ()
 
virtual void UpdateSpline ()
 

Properties

GAPCelestialBody GAPRef [get, set]
 
string ObjectName [get, set]
 
MapNode.TypeData TypeData [get, set]
 
- Properties inherited from OrbitRendererBase
bool isActive [get]
 
bool mouseOver [get]
 
string objName [get, set]
 
Orbit orbit [get]
 
VectorLine OrbitLine [get]
 
Vector3d[] OrbitPoints [get, set]
 

Additional Inherited Members

- Public Types inherited from OrbitRendererBase
enum  DrawIcons { DrawIcons.NONE, DrawIcons.OBJ, DrawIcons.OBJ_PE_AP, DrawIcons.ALL }
 
enum  DrawMode { DrawMode.OFF, DrawMode.REDRAW_ONLY, DrawMode.REDRAW_AND_FOLLOW, DrawMode.REDRAW_AND_RECALCULATE }
 
- Public Attributes inherited from OrbitRendererBase
bool autoTextureOffset = true
 
CelestialBody celestialBody
 
DiscoveryInfo discoveryInfo
 
DrawIcons drawIcons = DrawIcons.OBJ
 
DrawMode drawMode = DrawMode.REDRAW_AND_RECALCULATE
 
bool drawNodes = true
 
OrbitDriver driver
 
bool EccOffsetInvert
 
bool isFocused
 
float lowerCamVsSmaRatio = 0.03f
 
Expansions.Missions.MENode meNode
 
Color nodeColor = Color.grey
 
EventData< CelestialBodyonCelestialBodyIconClicked = new EventData<CelestialBody>("OnCBIconClicked")
 
EventData< VesselonVesselIconClicked = new EventData<Vessel>("OnVesselIconClicked")
 
Color orbitColor = Color.grey
 
float textureOffset = 0f
 
float upperCamVsSmaRatio = 25f
 
Vessel vessel
 
- Protected Attributes inherited from OrbitRendererBase
bool draw3dLines
 
double eccOffset
 
int layerMask = 31
 
float lineOpacity
 
Transform nodesParent
 
VectorLine orbitLine
 
float twkOffset
 
- Static Protected Attributes inherited from OrbitRendererBase
static double sampleResolution = 2
 

Detailed Description

Manages the display representation of an orbit in the MissionEditor Action Pane Display This class is a modified version of the stock OrbitRenderer and was modified to work within the bounds of the mission editor only

Member Function Documentation

override void Expansions.Missions.Editor.GAPOrbitRenderer.AttachNodeUIs ( Transform  parent)
inlineprotectedvirtual

Reimplemented from OrbitRendererBase.

MapNode Expansions.Missions.Editor.GAPOrbitRenderer.AttachObjectNode ( int  size)
inlineprotected
static GAPOrbitRenderer Expansions.Missions.Editor.GAPOrbitRenderer.Create ( GameObject  objRef,
Camera  orbitCam,
Orbit  orbit,
bool  isInteractive 
)
inlinestatic

Creates an instance of the GAPOrbitRenderer

Parameters
objRef
orbitCam
orbit
Returns
static GAPOrbitRenderer Expansions.Missions.Editor.GAPOrbitRenderer.Create ( GAPCelestialBody  gapRef)
inlinestatic

Creates an instance of the GAPOrbitRenderer

Parameters
gapRef
Returns
void Expansions.Missions.Editor.GAPOrbitRenderer.Destroy ( )
inline

Destroy this renderer instance

void Expansions.Missions.Editor.GAPOrbitRenderer.Display ( bool  value)
inline
void Expansions.Missions.Editor.GAPOrbitRenderer.DrawOrbit ( bool  isDirty)
inline

Redraws the orbit when the orbit values change

Parameters
isDirty
override void Expansions.Missions.Editor.GAPOrbitRenderer.DrawSpline ( )
inlineprotectedvirtual

Copied method from OrbitRedererBase, but skipping the option to draw the splines in 2D (They will look incorrect in the mission editor)

Reimplemented from OrbitRendererBase.

override void Expansions.Missions.Editor.GAPOrbitRenderer.LateUpdate ( )
inlineprotectedvirtual

Reimplemented from OrbitRendererBase.

Vector3 Expansions.Missions.Editor.GAPOrbitRenderer.OnUpdatePositionToUI ( MapNode  n,
Vector3d  scaledSpacePos 
)
inlineprotected
override void Expansions.Missions.Editor.GAPOrbitRenderer.Start ( )
inlineprotectedvirtual

Reimplemented from OrbitRendererBase.

Property Documentation

GAPCelestialBody Expansions.Missions.Editor.GAPOrbitRenderer.GAPRef
getset
string Expansions.Missions.Editor.GAPOrbitRenderer.ObjectName
getset
MapNode.TypeData Expansions.Missions.Editor.GAPOrbitRenderer.TypeData
getset

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