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

Static Public Member Functions

static ContractOrbitRenderer Setup (Contract contract, Orbit orbit, bool activedraw=true)
 

Public Attributes

Contract contract
 
- 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
 

Protected Member Functions

override void apNode_OnUpdateCaption (MapNode n, MapNode.CaptionData data)
 
override void ascNode_OnUpdateCaption (MapNode n, MapNode.CaptionData data)
 
override void descNode_OnUpdateCaption (MapNode n, MapNode.CaptionData data)
 
override void peNode_OnUpdateCaption (MapNode n, MapNode.CaptionData data)
 
override void UpdateLocals ()
 
- 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)
 
- 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 ()
 

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)
 
- 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...
 
- 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
 
- 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 void ContractOrbitRenderer.apNode_OnUpdateCaption ( MapNode  n,
MapNode.CaptionData  data 
)
inlineprotectedvirtual

Reimplemented from OrbitRendererBase.

override void ContractOrbitRenderer.ascNode_OnUpdateCaption ( MapNode  n,
MapNode.CaptionData  data 
)
inlineprotectedvirtual

Reimplemented from OrbitRendererBase.

override void ContractOrbitRenderer.descNode_OnUpdateCaption ( MapNode  n,
MapNode.CaptionData  data 
)
inlineprotectedvirtual

Reimplemented from OrbitRendererBase.

override void ContractOrbitRenderer.peNode_OnUpdateCaption ( MapNode  n,
MapNode.CaptionData  data 
)
inlineprotectedvirtual

Reimplemented from OrbitRendererBase.

static ContractOrbitRenderer ContractOrbitRenderer.Setup ( Contract  contract,
Orbit  orbit,
bool  activedraw = true 
)
inlinestatic
override void ContractOrbitRenderer.UpdateLocals ( )
inlineprotectedvirtual

< Each callback calls these multiple times, best to cache it all once per frame

Reimplemented from OrbitTargetRenderer.

Member Data Documentation

Contract ContractOrbitRenderer.contract

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