TuttleOFX
1
|
MathOperator plugin. More...
#include <MathOperatorPlugin.hpp>
MathOperator plugin.
Definition at line 29 of file MathOperatorPlugin.hpp.
typedef float tuttle::plugin::mathOperator::MathOperatorPlugin::Scalar |
Definition at line 32 of file MathOperatorPlugin.hpp.
tuttle::plugin::mathOperator::MathOperatorPlugin::MathOperatorPlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 12 of file MathOperatorPlugin.cpp.
References _alpha, _alphaSelect, _blue, _blueSelect, _green, _greenSelect, _master, _mathOperatorType, _operator, _red, _redSelect, OFX::ParamSet::fetchBooleanParam(), OFX::ParamSet::fetchChoiceParam(), OFX::ParamSet::fetchDoubleParam(), tuttle::plugin::mathOperator::kAlphaChannel, tuttle::plugin::mathOperator::kAlphaValue, tuttle::plugin::mathOperator::kBlueChannel, tuttle::plugin::mathOperator::kBlueValue, tuttle::plugin::mathOperator::kGreenChannel, tuttle::plugin::mathOperator::kGreenValue, tuttle::plugin::mathOperator::kMasterValue, tuttle::plugin::mathOperator::kMathOperatorOperator, tuttle::plugin::mathOperator::kMathOperatorType, tuttle::plugin::mathOperator::kRedChannel, tuttle::plugin::mathOperator::kRedValue, and updateInterface().
void tuttle::plugin::mathOperator::MathOperatorPlugin::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 120 of file MathOperatorPlugin.cpp.
References tuttle::plugin::mathOperator::kMathOperatorType, and updateInterface().
EMathOperatorType tuttle::plugin::mathOperator::MathOperatorPlugin::getMathOperatorType | ( | ) | const [inline, private] |
Definition at line 66 of file MathOperatorPlugin.hpp.
References _mathOperatorType, and OFX::ChoiceParam::getValue().
Referenced by updateInterface().
MathOperatorProcessParams< MathOperatorPlugin::Scalar > tuttle::plugin::mathOperator::MathOperatorPlugin::getProcessParams | ( | const OfxPointD & | renderScale = OFX::kNoRenderScale | ) | const |
Definition at line 32 of file MathOperatorPlugin.cpp.
References _alpha, _alphaSelect, _blue, _blueSelect, _green, _greenSelect, _master, _mathOperatorType, _operator, _red, _redSelect, tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::bAProcess, tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::bBProcess, tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::bGProcess, tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::bRProcess, tuttle::plugin::mathOperator::eMathOperatorOperatorLn, tuttle::plugin::mathOperator::eMathOperatorOperatorLog, tuttle::plugin::mathOperator::eMathOperatorOperatorMultiply, tuttle::plugin::mathOperator::eMathOperatorOperatorPlus, tuttle::plugin::mathOperator::eMathOperatorOperatorPow, tuttle::plugin::mathOperator::eMathOperatorOperatorSqrt, tuttle::plugin::mathOperator::eMathOperatorTypeChannels, tuttle::plugin::mathOperator::eMathOperatorTypeRgb, tuttle::plugin::mathOperator::eMathOperatorTypeRgba, OFX::DoubleParam::getValue(), OFX::ChoiceParam::getValue(), tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::iAMathOperator, tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::iBMathOperator, tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::iGMathOperator, tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::iRMathOperator, and tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::op.
bool tuttle::plugin::mathOperator::MathOperatorPlugin::isIdentity | ( | const OFX::RenderArguments & | args, |
OFX::Clip *& | identityClip, | ||
double & | identityTime | ||
) | [virtual] |
client is identity function, returns the clip and time for the identity function
If the effect would do no processing for the given param set and render arguments, then this function should return true and set the identityClip pointer to point to the clip that is the identity and identityTime to be the time at which to access the clip for the identity operation.
Reimplemented from OFX::ImageEffect.
Definition at line 160 of file MathOperatorPlugin.cpp.
void tuttle::plugin::mathOperator::MathOperatorPlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
The overridden render function.
[in] | args | Rendering parameters |
Implements OFX::ImageEffect.
Definition at line 176 of file MathOperatorPlugin.cpp.
void tuttle::plugin::mathOperator::MathOperatorPlugin::updateInterface | ( | ) | [private] |
Definition at line 181 of file MathOperatorPlugin.cpp.
References _alpha, _alphaSelect, _blue, _green, _master, _red, tuttle::plugin::mathOperator::eMathOperatorTypeChannels, tuttle::plugin::mathOperator::eMathOperatorTypeRgb, tuttle::plugin::mathOperator::eMathOperatorTypeRgba, and getMathOperatorType().
Referenced by changedParam(), and MathOperatorPlugin().
Definition at line 59 of file MathOperatorPlugin.hpp.
Referenced by getProcessParams(), MathOperatorPlugin(), and updateInterface().
Definition at line 64 of file MathOperatorPlugin.hpp.
Referenced by getProcessParams(), MathOperatorPlugin(), and updateInterface().
Definition at line 58 of file MathOperatorPlugin.hpp.
Referenced by getProcessParams(), MathOperatorPlugin(), and updateInterface().
Definition at line 63 of file MathOperatorPlugin.hpp.
Referenced by getProcessParams(), and MathOperatorPlugin().
Definition at line 57 of file MathOperatorPlugin.hpp.
Referenced by getProcessParams(), MathOperatorPlugin(), and updateInterface().
Definition at line 62 of file MathOperatorPlugin.hpp.
Referenced by getProcessParams(), and MathOperatorPlugin().
Definition at line 55 of file MathOperatorPlugin.hpp.
Referenced by getProcessParams(), MathOperatorPlugin(), and updateInterface().
Definition at line 53 of file MathOperatorPlugin.hpp.
Referenced by getMathOperatorType(), getProcessParams(), and MathOperatorPlugin().
Definition at line 52 of file MathOperatorPlugin.hpp.
Referenced by getProcessParams(), and MathOperatorPlugin().
Definition at line 56 of file MathOperatorPlugin.hpp.
Referenced by getProcessParams(), MathOperatorPlugin(), and updateInterface().
Definition at line 61 of file MathOperatorPlugin.hpp.
Referenced by getProcessParams(), and MathOperatorPlugin().