TuttleOFX
1
|
Component plugin. More...
#include <ComponentPlugin.hpp>
Public Types | |
typedef float | Scalar |
Public Member Functions | |
ComponentPlugin (OfxImageEffectHandle handle) | |
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 | getClipPreferences (OFX::ClipPreferencesSetter &clipPreferences) |
get the clip preferences | |
void | render (const OFX::RenderArguments &args) |
The overridden render function. | |
Data Fields | |
OFX::ChoiceParam * | _paramToComponent |
OFX::ChoiceParam * | _paramToGrayMethod |
OFX::BooleanParam * | _paramPremultiplied |
Component plugin.
Definition at line 15 of file ComponentPlugin.hpp.
typedef float tuttle::plugin::component::ComponentPlugin::Scalar |
Definition at line 18 of file ComponentPlugin.hpp.
tuttle::plugin::component::ComponentPlugin::ComponentPlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 12 of file ComponentPlugin.cpp.
References _paramPremultiplied, _paramToComponent, _paramToGrayMethod, OFX::ParamSet::fetchBooleanParam(), OFX::ParamSet::fetchChoiceParam(), tuttle::plugin::component::kParamPremutliplied, tuttle::plugin::component::kParamTo, and tuttle::plugin::component::kParamToGray.
void tuttle::plugin::component::ComponentPlugin::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 21 of file ComponentPlugin.cpp.
void tuttle::plugin::component::ComponentPlugin::getClipPreferences | ( | OFX::ClipPreferencesSetter & | clipPreferences | ) | [virtual] |
get the clip preferences
Reimplemented from OFX::ImageEffect.
Definition at line 69 of file ComponentPlugin.cpp.
References tuttle::plugin::ImageEffectGilPlugin::_clipDst, _paramToComponent, tuttle::plugin::component::eConvertToGray, tuttle::plugin::component::eConvertToRGB, tuttle::plugin::component::eConvertToRGBA, OFX::ePixelComponentAlpha, OFX::ePixelComponentRGB, OFX::ePixelComponentRGBA, OFX::ChoiceParam::getValue(), and OFX::ClipPreferencesSetter::setClipComponents().
bool tuttle::plugin::component::ComponentPlugin::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 57 of file ComponentPlugin.cpp.
void tuttle::plugin::component::ComponentPlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
The overridden render function.
[in] | args | Rendering parameters |
Implements OFX::ImageEffect.
Definition at line 119 of file ComponentPlugin.cpp.
References tuttle::plugin::ImageEffectGilPlugin::_clipDst, and tuttle::plugin::ImageEffectGilPlugin::_clipSrc.
Definition at line 39 of file ComponentPlugin.hpp.
Referenced by ComponentPlugin().
Definition at line 37 of file ComponentPlugin.hpp.
Referenced by ComponentPlugin(), and getClipPreferences().
Definition at line 38 of file ComponentPlugin.hpp.
Referenced by ComponentPlugin().