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 | Public Attributes | List of all members
PQSMod_FlattenArea Class Reference
Inheritance diagram for PQSMod_FlattenArea:
PQSMod

Public Member Functions

double CubicHermite (double start, double end, double startTangent, double endTangent, double t)
 
override void OnQuadBuilt (PQ quad)
 
override void OnQuadPreBuild (PQ quad)
 
override void OnSetup ()
 Cal this to setup the PQS flatten area. If the CB sphere is already started it will restart the sphere to include this Mod (only ONCE!). More...
 
override void OnVertexBuildHeight (PQS.VertexBuildData vbData)
 
- Public Member Functions inherited from PQSMod
virtual double GetVertexMaxHeight ()
 
virtual double GetVertexMinHeight ()
 
virtual void OnMeshBuild ()
 
virtual void OnPostSetup ()
 
virtual void OnPreUpdate ()
 
virtual void OnQuadCreate (PQ quad)
 
virtual void OnQuadDestroy (PQ quad)
 
virtual void OnQuadUpdate (PQ quad)
 
virtual void OnQuadUpdateNormals (PQ quad)
 
virtual void OnSphereActive ()
 
virtual void OnSphereInactive ()
 
virtual void OnSphereReset ()
 
virtual bool OnSphereStart ()
 
virtual void OnSphereStarted ()
 
virtual void OnSphereTransformUpdate ()
 
virtual void OnUpdateFinished ()
 
virtual void OnVertexBuild (PQS.VertexBuildData data)
 
void RebuildSphere ()
 

Static Public Member Functions

static double Lerp (double v2, double v1, double dt)
 

Public Attributes

double alt
 The altitude. More...
 
CelestialBody body
 
string bodyName
 The PQS body name. More...
 
bool DEBUG_showColors
 
double flattenTo
 The height to flatten the PQS to. More...
 
double innerRadius
 The inner radius area to flatten. More...
 
double lat
 The latitude More...
 
double lon
 The longitude More...
 
double outerRadius
 The outer radius area to flatten. More...
 
Vector3 position
 The position for the center of the area. If you don't specify you can specify useLatLon to true and provide a lat,lon,alt and bodyName for the PQS. More...
 
bool removeScatter = false
 Set to True to remove Scatter from the area of this mod. More...
 
double smoothEnd
 
double smoothStart
 
bool useLatLon = false
 Set to true to use bodyName and lat. lon, alt to calculate the center of the area. More...
 
- Public Attributes inherited from PQSMod
bool modEnabled = true
 
int order = 100
 
PQS.ModiferRequirements requirements
 
PQS sphere
 

Member Function Documentation

double PQSMod_FlattenArea.CubicHermite ( double  start,
double  end,
double  startTangent,
double  endTangent,
double  t 
)
inline
static double PQSMod_FlattenArea.Lerp ( double  v2,
double  v1,
double  dt 
)
inlinestatic
override void PQSMod_FlattenArea.OnQuadBuilt ( PQ  quad)
inlinevirtual

Reimplemented from PQSMod.

override void PQSMod_FlattenArea.OnQuadPreBuild ( PQ  quad)
inlinevirtual

Reimplemented from PQSMod.

override void PQSMod_FlattenArea.OnSetup ( )
inlinevirtual

Cal this to setup the PQS flatten area. If the CB sphere is already started it will restart the sphere to include this Mod (only ONCE!).

< mult by two because we want to cover full quads if we cover less than half

Reimplemented from PQSMod.

override void PQSMod_FlattenArea.OnVertexBuildHeight ( PQS.VertexBuildData  vbData)
inlinevirtual

Reimplemented from PQSMod.

Member Data Documentation

double PQSMod_FlattenArea.alt

The altitude.

CelestialBody PQSMod_FlattenArea.body
string PQSMod_FlattenArea.bodyName

The PQS body name.

bool PQSMod_FlattenArea.DEBUG_showColors
double PQSMod_FlattenArea.flattenTo

The height to flatten the PQS to.

double PQSMod_FlattenArea.innerRadius

The inner radius area to flatten.

double PQSMod_FlattenArea.lat

The latitude

double PQSMod_FlattenArea.lon

The longitude

double PQSMod_FlattenArea.outerRadius

The outer radius area to flatten.

Vector3 PQSMod_FlattenArea.position

The position for the center of the area. If you don't specify you can specify useLatLon to true and provide a lat,lon,alt and bodyName for the PQS.

bool PQSMod_FlattenArea.removeScatter = false

Set to True to remove Scatter from the area of this mod.

double PQSMod_FlattenArea.smoothEnd
double PQSMod_FlattenArea.smoothStart
bool PQSMod_FlattenArea.useLatLon = false

Set to true to use bodyName and lat. lon, alt to calculate the center of the area.


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