Work-in-progress: Interpolation of snapshot in Action manager

This commit is contained in:
brunoherbelin
2021-04-21 23:35:34 +02:00
parent e2d2e6ddd8
commit da64172848
14 changed files with 405 additions and 122 deletions

View File

@@ -2,21 +2,41 @@
#define INTERPOLATOR_H
#include "Source.h"
#include "SourceList.h"
class Interpolator
class SourceInterpolator
{
public:
Interpolator(Source *subject, const SourceCore &target);
SourceInterpolator(Source *subject, const SourceCore &target);
void apply (float percent);
float current() const;
protected:
Source *subject_;
SourceCore from_;
SourceCore to_;
SourceCore current_;
SourceCore current_state_;
float current_cursor_;
float cursor_;
void interpolateGroup (View::Mode m);
void interpolateImageProcessing ();
};
void apply(float percent);
class Interpolator
{
public:
Interpolator();
~Interpolator();
void add (Source *s, const SourceCore &target );
void apply (float percent);
float current() const;
protected:
std::list<SourceInterpolator *> interpolators_;
};