mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
refs #916, added utility functions in CInterpolatorMulti
This commit is contained in:
committed by
Mathew Sutcliffe
parent
d078aa9580
commit
28ffdd8ed9
@@ -56,15 +56,28 @@ namespace BlackMisc
|
||||
enum Mode
|
||||
{
|
||||
ModeSpline, //!< spline interpolation mode
|
||||
ModeLinear //!< linear interpolation mode
|
||||
ModeLinear, //!< linear interpolation mode
|
||||
ModeUnkown
|
||||
};
|
||||
|
||||
//! Set interpolation mode. Return true if mode was changed. Mode will not be changed in release build.
|
||||
bool setMode(Mode mode);
|
||||
|
||||
//! Set interpolation mode. Return true if mode was changed. Mode will not be changed in release build.
|
||||
bool setMode(const QString &mode);
|
||||
|
||||
//! Get active interpolation mode.
|
||||
Mode getMode() const { return m_mode; }
|
||||
|
||||
//! Toogle interpolator Mode
|
||||
void toggleMode();
|
||||
|
||||
//! Mode from string
|
||||
static Mode modeFromString(const QString &mode);
|
||||
|
||||
//! Mode to string
|
||||
static const QString &modeToString(Mode mode);
|
||||
|
||||
private:
|
||||
Mode m_mode = ModeSpline;
|
||||
CInterpolatorSpline m_spline;
|
||||
|
||||
Reference in New Issue
Block a user