Blame toonz/sources/stdfx/iwa_spingradientfx.h
|
shun-iwasawa |
00ed45 |
#pragma once
|
|
shun-iwasawa |
00ed45 |
#ifndef IWA_SPINGRADIENTFX_H
|
|
shun-iwasawa |
00ed45 |
#define IWA_SPINGRADIENTFX_H
|
|
shun-iwasawa |
00ed45 |
|
|
shun-iwasawa |
00ed45 |
#include "tfxparam.h"
|
|
shun-iwasawa |
00ed45 |
#include "stdfx.h"
|
|
shun-iwasawa |
00ed45 |
#include "tparamset.h"
|
|
shun-iwasawa |
00ed45 |
|
|
shun-iwasawa |
00ed45 |
class Iwa_SpinGradientFx final : public TStandardZeraryFx {
|
|
shun-iwasawa |
00ed45 |
FX_PLUGIN_DECLARATION(Iwa_SpinGradientFx)
|
|
shun-iwasawa |
00ed45 |
|
|
shun-iwasawa |
00ed45 |
TIntEnumParamP m_curveType;
|
|
shun-iwasawa |
00ed45 |
TPointParamP m_center;
|
|
shun-iwasawa |
00ed45 |
TDoubleParamP m_startAngle, m_endAngle;
|
|
shun-iwasawa |
00ed45 |
TPixelParamP m_startColor, m_endColor;
|
|
shun-iwasawa |
00ed45 |
|
|
shun-iwasawa |
00ed45 |
public:
|
|
shun-iwasawa |
00ed45 |
Iwa_SpinGradientFx();
|
|
shun-iwasawa |
00ed45 |
|
|
shun-iwasawa |
00ed45 |
bool canHandle(const TRenderSettings &info, double frame) override {
|
|
shun-iwasawa |
00ed45 |
return true;
|
|
shun-iwasawa |
00ed45 |
}
|
|
shun-iwasawa |
00ed45 |
bool doGetBBox(double frame, TRectD &bBox,
|
|
shun-iwasawa |
00ed45 |
const TRenderSettings &ri) override;
|
|
shun-iwasawa |
00ed45 |
void doCompute(TTile &tile, double frame, const TRenderSettings &ri) override;
|
|
shun-iwasawa |
00ed45 |
void getParamUIs(TParamUIConcept *&concepts, int &length) override;
|
|
shun-iwasawa |
00ed45 |
};
|
|
shun-iwasawa |
00ed45 |
|
|
shun-iwasawa |
00ed45 |
#endif
|