Blame toonz/sources/stdfx/globalcontrollablefx.h
|
shun-iwasawa |
8cac36 |
#pragma once
|
|
shun-iwasawa |
8cac36 |
|
|
shun-iwasawa |
8cac36 |
#ifndef GLOBALCONTROLLABLEFX_H
|
|
shun-iwasawa |
8cac36 |
#define GLOBALCONTROLLABLEFX_H
|
|
shun-iwasawa |
8cac36 |
|
|
shun-iwasawa |
8cac36 |
#include "tfxparam.h"
|
|
shun-iwasawa |
8cac36 |
#include "stdfx.h"
|
|
shun-iwasawa |
8cac36 |
#include "tfxattributes.h"
|
|
shun-iwasawa |
8cac36 |
|
|
shun-iwasawa |
8cac36 |
class GlobalControllableFx : public TStandardRasterFx {
|
|
shun-iwasawa |
8cac36 |
protected:
|
|
shun-iwasawa |
8cac36 |
TDoubleParamP m_globalIntensity;
|
|
shun-iwasawa |
8cac36 |
|
|
shun-iwasawa |
8cac36 |
public:
|
|
shun-iwasawa |
8cac36 |
GlobalControllableFx() : m_globalIntensity(1.0) {
|
|
shun-iwasawa |
8cac36 |
m_globalIntensity->setValueRange(0.0, 1.0);
|
|
shun-iwasawa |
8cac36 |
|
|
shun-iwasawa |
8cac36 |
bindParam(this, "globalIntensity", m_globalIntensity);
|
|
shun-iwasawa |
8cac36 |
getAttributes()->setHasGlobalControl(true);
|
|
shun-iwasawa |
8cac36 |
m_globalIntensity->setUILabel("Fx Intensity");
|
|
shun-iwasawa |
8cac36 |
}
|
|
shun-iwasawa |
8cac36 |
|
|
shun-iwasawa |
8cac36 |
double getGrobalControlValue(double frame) {
|
|
shun-iwasawa |
8cac36 |
return m_globalIntensity->getValue(frame);
|
|
shun-iwasawa |
8cac36 |
}
|
|
shun-iwasawa |
8cac36 |
};
|
|
shun-iwasawa |
8cac36 |
|
|
shun-iwasawa |
8cac36 |
#endif
|