TuttleOFX
1
|
Fade plugin. More...
#include <FadePlugin.hpp>
Public Types | |
typedef float | Scalar |
Public Member Functions | |
FadePlugin (OfxImageEffectHandle handle) | |
FadeProcessParams | getProcessParams () const |
void | changedParam (const OFX::InstanceChangedArgs &args, const std::string ¶mName) |
called when a param has just had its value changed | |
bool | isIdentity (const OFX::RenderArguments &args, OFX::Clip *&identityClip, double &identityTime) |
client is identity function, returns the clip and time for the identity function | |
void | render (const OFX::RenderArguments &args) |
The overridden render function. | |
Data Fields | |
OFX::Clip * | _clipDst |
Destination image clip. | |
OFX::Clip * | _clipSrcFrom |
Source image clip. | |
OFX::Clip * | _clipSrcTo |
Source image clip. | |
OFX::DoubleParam * | _paramTransition |
Source image clip. | |
OFX::ChoiceParam * | _paramRod |
OFX::RGBAParam * | _paramColor |
Fade plugin.
Definition at line 22 of file FadePlugin.hpp.
typedef float tuttle::plugin::fade::FadePlugin::Scalar |
Definition at line 25 of file FadePlugin.hpp.
tuttle::plugin::fade::FadePlugin::FadePlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 12 of file FadePlugin.cpp.
References _clipDst, _clipSrcFrom, _clipSrcTo, _paramColor, _paramRod, _paramTransition, OFX::ParamSet::fetchChoiceParam(), OFX::ImageEffect::fetchClip(), OFX::ParamSet::fetchDoubleParam(), OFX::ParamSet::fetchRGBAParam(), kOfxImageEffectOutputClipName, kOfxImageEffectTransitionParamName, kOfxImageEffectTransitionSourceFromClipName, kOfxImageEffectTransitionSourceToClipName, tuttle::plugin::fade::kParamColor, and tuttle::plugin::fade::kParamRod.
void tuttle::plugin::fade::FadePlugin::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 33 of file FadePlugin.cpp.
FadeProcessParams tuttle::plugin::fade::FadePlugin::getProcessParams | ( | ) | const |
Definition at line 24 of file FadePlugin.cpp.
References tuttle::plugin::fade::FadeProcessParams::_color, _paramColor, _paramRod, _paramTransition, tuttle::plugin::fade::FadeProcessParams::_rod, tuttle::plugin::fade::FadeProcessParams::_transition, OFX::DoubleParam::getValue(), OFX::RGBAParam::getValue(), OFX::ChoiceParam::getValue(), and tuttle::plugin::ofxToGil().
Referenced by isIdentity().
bool tuttle::plugin::fade::FadePlugin::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 62 of file FadePlugin.cpp.
References _clipSrcFrom, _clipSrcTo, tuttle::plugin::fade::FadeProcessParams::_transition, getProcessParams(), OFX::Clip::isConnected(), and OFX::RenderArguments::time.
void tuttle::plugin::fade::FadePlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
The overridden render function.
[in] | args | Rendering parameters |
Implements OFX::ImageEffect.
Definition at line 84 of file FadePlugin.cpp.
Source image clip.
Definition at line 41 of file FadePlugin.hpp.
Referenced by FadePlugin(), and isIdentity().
Source image clip.
Definition at line 42 of file FadePlugin.hpp.
Referenced by FadePlugin(), and isIdentity().
Definition at line 46 of file FadePlugin.hpp.
Referenced by FadePlugin(), and getProcessParams().
Definition at line 45 of file FadePlugin.hpp.
Referenced by FadePlugin(), and getProcessParams().
Source image clip.
Definition at line 44 of file FadePlugin.hpp.
Referenced by FadePlugin(), and getProcessParams().