tahoma2d/toonz/sources/include/tinbetween.h

44 lines
723 B
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef TINBETWEEN_H
#define TINBETWEEN_H
2016-04-14 22:15:09 +12:00
#include <memory>
2016-03-19 06:57:51 +13:00
#include "tcommon.h"
class TVectorImageP;
#undef DVAPI
#undef DVVAR
#ifdef TVRENDER_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI DV_IMPORT_API
#define DVVAR DV_IMPORT_VAR
#endif
2016-06-15 18:43:10 +12:00
class DVAPI TInbetween {
class Imp;
std::unique_ptr<Imp> m_imp;
2016-03-19 06:57:51 +13:00
public:
enum TweenAlgorithm {
LinearInterpolation,
EaseInInterpolation,
EaseOutInterpolation,
EaseInOutInterpolation
};
static double interpolation(double t, enum TweenAlgorithm);
2016-06-15 18:43:10 +12:00
TInbetween(const TVectorImageP firstImage, const TVectorImageP lastImage);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
virtual ~TInbetween();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
TVectorImageP tween(double t) const;
2016-03-19 06:57:51 +13:00
};
#endif