Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OrbitRenderer Class Reference
Inheritance diagram for OrbitRenderer:
OrbitRendererBase OrbitTargetRenderer ContractOrbitRenderer Expansions.Missions.MissionOrbitRenderer

Public Member Functions

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)
 

Protected Member Functions

override bool CanDrawAnyIcons ()
 
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 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 void AttachNodeUIs (Transform parent)
 
virtual void descNode_OnUpdateCaption (MapNode n, MapNode.CaptionData data)
 
virtual Vector3d descNode_OnUpdatePosition (MapNode n)
 
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_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 ()
 

Protected Attributes

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 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 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]
 

Member Function Documentation

override bool OrbitRenderer.CanDrawAnyIcons ( )
inlineprotectedvirtual

Reimplemented from OrbitRendererBase.

Reimplemented in OrbitTargetRenderer.

override void OrbitRenderer.DrawOrbit ( DrawMode  mode)
inlineprotectedvirtual

Reimplemented from OrbitRendererBase.

override Color OrbitRenderer.GetNodeColour ( )
inlineprotectedvirtual

Reimplemented from OrbitRendererBase.

override Color OrbitRenderer.GetOrbitColour ( )
inlineprotectedvirtual

Reimplemented from OrbitRendererBase.

override void OrbitRenderer.OnDestroy ( )
inlineprotectedvirtual

Reimplemented from OrbitRendererBase.

override bool OrbitRenderer.OrbitCast ( Vector3  screenPos,
out OrbitCastHit  hitInfo,
float  orbitPixelWidth = 10 
)
inlinevirtual

Reimplemented from OrbitRendererBase.

override void OrbitRenderer.Start ( )
inlineprotectedvirtual

< resume our prefab setup. PSystem removed OR components off CelestialBodies on spawning them, so the data they define is cached for retrieval on respawning the component

Reimplemented from OrbitRendererBase.

Member Data Documentation

bool OrbitRenderer.orbitDisplayUnlocked
protected

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