tahoma2d/toonz/sources/include/ext/SmoothDeformation.h

48 lines
1 KiB
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef SMOOTH_DEFORMATION_H
#define SMOOTH_DEFORMATION_H
/**
* @author Fabrizio Morciano <fabrizio.morciano@gmail.com>
*/
#include "tcommon.h"
//#include "tgeometry.h"
//#include "ext/TriParam.h"
#include <vector>
#undef DVAPI
#undef DVVAR
#ifdef TNZEXT_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI DV_IMPORT_API
#define DVVAR DV_IMPORT_VAR
#endif
#include "StrokeDeformationImpl.h"
2016-06-15 18:43:10 +12:00
namespace ToonzExt {
class DVAPI SmoothDeformation final : public StrokeDeformationImpl {
2016-06-15 18:43:10 +12:00
SmoothDeformation();
2016-03-19 06:57:51 +13:00
public:
2016-06-15 18:43:10 +12:00
virtual ~SmoothDeformation();
2016-03-19 06:57:51 +13:00
2016-06-19 20:06:29 +12:00
bool check_(const ContextStatus *status) override;
2016-03-19 06:57:51 +13:00
2016-06-19 20:06:29 +12:00
bool findExtremes_(const ContextStatus *, Interval &) override;
double findActionLength() override;
2016-03-19 06:57:51 +13:00
2016-06-19 20:06:29 +12:00
void draw(Designer *) override;
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
static SmoothDeformation *instance();
2016-03-19 06:57:51 +13:00
};
}
#endif /* SMOOTH_DEFORMATION_H */
//-----------------------------------------------------------------------------
// End Of File
//-----------------------------------------------------------------------------