refs #916, added utility functions in CInterpolatorMulti

This commit is contained in:
Klaus Basan
2017-03-16 21:38:37 +01:00
committed by Mathew Sutcliffe
parent d078aa9580
commit 28ffdd8ed9
2 changed files with 59 additions and 1 deletions

View File

@@ -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;