mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
refs #873, updated internals component
* can trigger request of parts * opening logs * update parts in UI from aircraft
This commit is contained in:
committed by
Mathew Sutcliffe
parent
d4b2238dc6
commit
273427d3d9
@@ -124,6 +124,7 @@ namespace BlackMisc
|
||||
void setInterpolatorSetup(const CInterpolationAndRenderingSetup &setup);
|
||||
|
||||
//! Write a log in background
|
||||
//! \threadsafe
|
||||
BlackMisc::CWorker *writeLogInBackground();
|
||||
|
||||
//! Clear log file
|
||||
@@ -134,18 +135,19 @@ namespace BlackMisc
|
||||
//! \remark public for FS9 to get setup in Fs9Client
|
||||
CInterpolationAndRenderingSetup getInterpolatorSetup() const;
|
||||
|
||||
/*!
|
||||
* Takes input between 0 and 1 and returns output between 0 and 1 smoothed with an S-shaped curve.
|
||||
*
|
||||
* Useful for making interpolation seem smoother, efficiently as it just uses simple arithmetic.
|
||||
* \see https://en.wikipedia.org/wiki/Smoothstep
|
||||
* \see http://sol.gfxile.net/interpolation/
|
||||
*/
|
||||
//! Takes input between 0 and 1 and returns output between 0 and 1 smoothed with an S-shaped curve.
|
||||
//!
|
||||
//! Useful for making interpolation seem smoother, efficiently as it just uses simple arithmetic.
|
||||
//! \see https://en.wikipedia.org/wiki/Smoothstep
|
||||
//! \see http://sol.gfxile.net/interpolation/
|
||||
static double smootherStep(double x)
|
||||
{
|
||||
return x * x * x * (x * (x * 6.0 - 15.0) + 10.0);
|
||||
}
|
||||
|
||||
//! Latest log files: 0 Interpolation 1 Parts
|
||||
static QStringList getLatestLogFiles();
|
||||
|
||||
protected:
|
||||
//! Log for interpolation
|
||||
struct InterpolationLog
|
||||
|
||||
Reference in New Issue
Block a user