TuttleOFX
1
|
Gamma plugin. More...
#include <GammaPlugin.hpp>
Public Types | |
typedef float | Scalar |
Public Member Functions | |
GammaPlugin (OfxImageEffectHandle handle) | |
void | render (const OFX::RenderArguments &args) |
The overridden render function. | |
void | changedParam (const OFX::InstanceChangedArgs &args, const std::string ¶mName) |
called when a param has just had its value changed | |
GammaProcessParams< Scalar > | getProcessParams (const OfxPointD &renderScale=OFX::kNoRenderScale) const |
EGammaType | getGammaType () const |
Data Fields | |
OFX::ChoiceParam * | _gammaType |
OFX::DoubleParam * | _master |
OFX::DoubleParam * | _red |
OFX::DoubleParam * | _green |
OFX::DoubleParam * | _blue |
OFX::DoubleParam * | _alpha |
OFX::BooleanParam * | _invert |
Gamma plugin.
Definition at line 24 of file GammaPlugin.hpp.
typedef float tuttle::plugin::gamma::GammaPlugin::Scalar |
Definition at line 27 of file GammaPlugin.hpp.
tuttle::plugin::gamma::GammaPlugin::GammaPlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 10 of file GammaPlugin.cpp.
References _alpha, _blue, _gammaType, _green, _invert, _master, _red, changedParam(), OFX::eChangePluginEdit, OFX::ParamSet::fetchBooleanParam(), OFX::ParamSet::fetchChoiceParam(), OFX::ParamSet::fetchDoubleParam(), tuttle::plugin::gamma::kAlphaValue, tuttle::plugin::gamma::kBlueValue, tuttle::plugin::gamma::kGammaType, tuttle::plugin::gamma::kGreenValue, tuttle::plugin::gamma::kInvert, tuttle::plugin::gamma::kMasterValue, tuttle::plugin::gamma::kRedValue, OFX::InstanceChangedArgs::reason, OFX::InstanceChangedArgs::renderScale, OFX::InstanceChangedArgs::time, OfxPointD::x, and OfxPointD::y.
void tuttle::plugin::gamma::GammaPlugin::changedParam | ( | const OFX::InstanceChangedArgs & | args, |
const std::string & | paramName | ||
) | [virtual] |
called when a param has just had its value changed
Reimplemented from OFX::ImageEffect.
Definition at line 92 of file GammaPlugin.cpp.
References _alpha, _blue, _green, _master, _red, tuttle::plugin::gamma::eGammaTypeChannels, tuttle::plugin::gamma::eGammaTypeGlobal, getGammaType(), tuttle::plugin::gamma::kGammaType, and OFX::Param::setIsSecretAndDisabled().
Referenced by GammaPlugin().
EGammaType tuttle::plugin::gamma::GammaPlugin::getGammaType | ( | ) | const [inline] |
Definition at line 46 of file GammaPlugin.hpp.
References _gammaType, and OFX::ChoiceParam::getValue().
Referenced by changedParam().
GammaProcessParams< GammaPlugin::Scalar > tuttle::plugin::gamma::GammaPlugin::getProcessParams | ( | const OfxPointD & | renderScale = OFX::kNoRenderScale | ) | const |
Definition at line 29 of file GammaPlugin.cpp.
References _alpha, _blue, _gammaType, _green, _invert, _master, _red, tuttle::plugin::gamma::eGammaTypeChannels, tuttle::plugin::gamma::eGammaTypeGlobal, OFX::DoubleParam::getValue(), OFX::ChoiceParam::getValue(), OFX::BooleanParam::getValue(), tuttle::plugin::gamma::GammaProcessParams< Scalar >::iAGamma, tuttle::plugin::gamma::GammaProcessParams< Scalar >::iBGamma, tuttle::plugin::gamma::GammaProcessParams< Scalar >::iGGamma, invert(), and tuttle::plugin::gamma::GammaProcessParams< Scalar >::iRGamma.
void tuttle::plugin::gamma::GammaPlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
The overridden render function.
[in] | args | Rendering parameters |
Implements OFX::ImageEffect.
Definition at line 87 of file GammaPlugin.cpp.
Definition at line 44 of file GammaPlugin.hpp.
Referenced by changedParam(), GammaPlugin(), and getProcessParams().
Definition at line 43 of file GammaPlugin.hpp.
Referenced by changedParam(), GammaPlugin(), and getProcessParams().
Definition at line 39 of file GammaPlugin.hpp.
Referenced by GammaPlugin(), getGammaType(), and getProcessParams().
Definition at line 42 of file GammaPlugin.hpp.
Referenced by changedParam(), GammaPlugin(), and getProcessParams().
Definition at line 45 of file GammaPlugin.hpp.
Referenced by GammaPlugin(), and getProcessParams().
Definition at line 40 of file GammaPlugin.hpp.
Referenced by changedParam(), GammaPlugin(), and getProcessParams().
Definition at line 41 of file GammaPlugin.hpp.
Referenced by changedParam(), GammaPlugin(), and getProcessParams().