Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Properties | List of all members
PatchRendering Class Reference

Public Types

enum  RelativityMode {
  RelativityMode.LOCAL_TO_BODIES, RelativityMode.LOCAL_AT_SOI_ENTRY_UT, RelativityMode.LOCAL_AT_SOI_EXIT_UT, RelativityMode.RELATIVE,
  RelativityMode.DYNAMIC
}
 

Public Member Functions

void DestroyUINodes ()
 
void DestroyVector ()
 
Vector3 GetScaledSpacePointFromTA (double TA, double UT)
 
void MakeVector ()
 
 PatchRendering (string name, int nSamples, int nInterpolations, Orbit patchRef, Material lineMat, float LineWidth, bool smoothTexture, PatchedConicRenderer pcr)
 
void SetColor (Color color)
 
void Terminate ()
 
virtual void UpdatePR ()
 
void UpdateUINodes ()
 

Public Attributes

Color[] colors
 
CelestialBody currentMainBody
 
double dynamicLinearity = 2.0
 
int interpolations
 
Material lineMaterial
 
float lineWidth
 
Color nodeColor
 
Orbit patch
 
Color patchColor
 
Vector3d pe
 
CelestialBody relativeTo
 
RelativityMode relativityMode = RelativityMode.RELATIVE
 
int samples
 
Vector3[] scaledTPoints
 
Vector3d[] tPoints
 
Trajectory trajectory
 
double UTpe
 
string vectorName
 
List< Vector3 > vectorPoints
 
bool visible
 

Protected Member Functions

virtual void DrawSplines ()
 

Properties

bool enabled [get]
 
List< Color32 > VectorColours [get]
 

Member Enumeration Documentation

Enumerator
LOCAL_TO_BODIES 
LOCAL_AT_SOI_ENTRY_UT 
LOCAL_AT_SOI_EXIT_UT 
RELATIVE 
DYNAMIC 

Constructor & Destructor Documentation

PatchRendering.PatchRendering ( string  name,
int  nSamples,
int  nInterpolations,
Orbit  patchRef,
Material  lineMat,
float  LineWidth,
bool  smoothTexture,
PatchedConicRenderer  pcr 
)
inline

Member Function Documentation

void PatchRendering.DestroyUINodes ( )
inline
void PatchRendering.DestroyVector ( )
inline
virtual void PatchRendering.DrawSplines ( )
inlineprotectedvirtual
Vector3 PatchRendering.GetScaledSpacePointFromTA ( double  TA,
double  UT 
)
inline
void PatchRendering.MakeVector ( )
inline
void PatchRendering.SetColor ( Color  color)
inline
void PatchRendering.Terminate ( )
inline
virtual void PatchRendering.UpdatePR ( )
inlinevirtual

< relative frame mode is relative to the parent of this patch's reference body

< draw closed orbits in local mode at patch start time (otherwise you get a squiggly mush that doesn't look like anything)

void PatchRendering.UpdateUINodes ( )
inline

Member Data Documentation

Color [] PatchRendering.colors
CelestialBody PatchRendering.currentMainBody
double PatchRendering.dynamicLinearity = 2.0
int PatchRendering.interpolations
Material PatchRendering.lineMaterial
float PatchRendering.lineWidth
Color PatchRendering.nodeColor
Orbit PatchRendering.patch
Color PatchRendering.patchColor
Vector3d PatchRendering.pe
CelestialBody PatchRendering.relativeTo
RelativityMode PatchRendering.relativityMode = RelativityMode.RELATIVE
int PatchRendering.samples
Vector3 [] PatchRendering.scaledTPoints
Vector3d [] PatchRendering.tPoints
Trajectory PatchRendering.trajectory
double PatchRendering.UTpe
string PatchRendering.vectorName
List<Vector3> PatchRendering.vectorPoints
bool PatchRendering.visible

Property Documentation

bool PatchRendering.enabled
get
List<Color32> PatchRendering.VectorColours
get

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