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

Custom Orbit renderer class used to display test orbit target during Mission execution More...

Inheritance diagram for Expansions.Missions.MissionOrbitRenderer:
OrbitTargetRenderer OrbitRenderer OrbitRendererBase

Static Public Member Functions

static MissionOrbitRenderer Setup (MENode node, Vessel targetVessel, Orbit orbit, bool activedraw=true)
 Setup, creates and configure a new MissionOrbitRenderer instance More...
 

Protected Member Functions

override void apNode_OnUpdateCaption (MapNode n, MapNode.CaptionData data)
 Update the caption of the ApA node with the title of the node More...
 
override void ascNode_OnUpdateCaption (MapNode n, MapNode.CaptionData data)
 Update the caption of the Asc node with the title of the node More...
 
override void descNode_OnUpdateCaption (MapNode n, MapNode.CaptionData data)
 Update the caption of the Desc node with the title of the node More...
 
override void peNode_OnUpdateCaption (MapNode n, MapNode.CaptionData data)
 Update the caption of the PeA node with the title of the node More...
 
- Protected Member Functions inherited from OrbitTargetRenderer
override void ANDNNodes_OnUpdateIcon (MapNode n, MapNode.IconData data)
 
override Vector3d ascNode_OnUpdatePosition (MapNode n)
 
override bool CanDrawAnyIcons ()
 
override Vector3d descNode_OnUpdatePosition (MapNode n)
 
virtual void UpdateLocals ()
 
- Protected Member Functions inherited from OrbitRenderer
override void DrawOrbit (DrawMode mode)
 
override Color GetNodeColour ()
 
override Color GetOrbitColour ()
 
override void OnDestroy ()
 
override void Start ()
 
- Protected Member Functions inherited from OrbitRendererBase
virtual void ApNode_OnUpdateIcon (MapNode n, MapNode.IconData data)
 
virtual Vector3d apNode_OnUpdatePosition (MapNode n)
 
virtual void AttachNodeUIs (Transform parent)
 
virtual void DrawSpline ()
 
virtual DrawIcons GetCurrentDrawMode ()
 
virtual bool HaveStateVectorKnowledge ()
 
virtual void LateUpdate ()
 
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 PeNode_OnUpdateIcon (MapNode n, MapNode.IconData data)
 
virtual Vector3d peNode_OnUpdatePosition (MapNode n)
 
void SplineOpacityUpdate ()
 
virtual void UpdateSpline ()
 

Protected Attributes

MENode node
 Reference to the mission node used to display the orbit More...
 
- Protected Attributes inherited from OrbitTargetRenderer
bool ANDNVisible
 
const string endColor = "</color>"
 
double relativeInclination
 
string startColor = "<color=#ffffff>"
 
Vessel targetVessel
 
- Protected Attributes inherited from OrbitRenderer
bool orbitDisplayUnlocked
 
- Protected Attributes inherited from OrbitRendererBase
bool draw3dLines
 
double eccOffset
 
int layerMask = 31
 
float lineOpacity
 
Transform nodesParent
 
VectorLine orbitLine
 
float twkOffset
 

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 Member Functions inherited from OrbitTargetRenderer
void Cleanup ()
 
- Public Member Functions inherited from OrbitRenderer
override bool OrbitCast (Vector3 screenPos, out OrbitCastHit hitInfo, float orbitPixelWidth=10)
 
- Public Member Functions inherited from OrbitRendererBase
bool GetMouseOverNode (Vector3 worldPos, float iconSize)
 
bool IsRenderableOrbit (Orbit o, CelestialBody tgt)
 
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)
 
- Public Attributes inherited from OrbitTargetRenderer
bool activeDraw
 
float animationTimerCurrent
 
float animationTimerMax = 8f
 
OrbitSnapshot snapshot
 
- 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
 
- Static Protected Member Functions inherited from OrbitTargetRenderer
static T Setup< T > (string name, int seed, Orbit orbit, bool activedraw=true)
 Setup the inital values for this orbit renderer More...
 
- Static Protected Attributes inherited from OrbitRendererBase
static double sampleResolution = 2
 
- Properties inherited from OrbitRendererBase
bool isActive [get]
 
bool mouseOver [get]
 
string objName [get, set]
 
Orbit orbit [get]
 
VectorLine OrbitLine [get]
 
Vector3d[] OrbitPoints [get, set]
 

Detailed Description

Custom Orbit renderer class used to display test orbit target during Mission execution

Member Function Documentation

override void Expansions.Missions.MissionOrbitRenderer.apNode_OnUpdateCaption ( MapNode  n,
MapNode.CaptionData  data 
)
inlineprotectedvirtual

Update the caption of the ApA node with the title of the node

Parameters
nMapNode of Ap
datadata object that we are updating

Reimplemented from OrbitRendererBase.

override void Expansions.Missions.MissionOrbitRenderer.ascNode_OnUpdateCaption ( MapNode  n,
MapNode.CaptionData  data 
)
inlineprotectedvirtual

Update the caption of the Asc node with the title of the node

Parameters
nMapNode of AN
datadata object that we are updating

Reimplemented from OrbitRendererBase.

override void Expansions.Missions.MissionOrbitRenderer.descNode_OnUpdateCaption ( MapNode  n,
MapNode.CaptionData  data 
)
inlineprotectedvirtual

Update the caption of the Desc node with the title of the node

Parameters
nMapNode of DN
datadata object that we are updating

Reimplemented from OrbitRendererBase.

override void Expansions.Missions.MissionOrbitRenderer.peNode_OnUpdateCaption ( MapNode  n,
MapNode.CaptionData  data 
)
inlineprotectedvirtual

Update the caption of the PeA node with the title of the node

Parameters
nMapNode of Pe
datadata object that we are updating

Reimplemented from OrbitRendererBase.

static MissionOrbitRenderer Expansions.Missions.MissionOrbitRenderer.Setup ( MENode  node,
Vessel  targetVessel,
Orbit  orbit,
bool  activedraw = true 
)
inlinestatic

Setup, creates and configure a new MissionOrbitRenderer instance

Parameters
nodeNode linked to the renderter
orbitOrbit we are drawing
activedrawIs it Active
Returns

Member Data Documentation

MENode Expansions.Missions.MissionOrbitRenderer.node
protected

Reference to the mission node used to display the orbit


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