TuttleOFX
1
|
CTL plugin. More...
#include <CTLPlugin.hpp>
Public Types | |
typedef float | Scalar |
Public Member Functions | |
CTLPlugin (OfxImageEffectHandle handle) | |
CTLProcessParams< Scalar > | getProcessParams (const OfxPointD &renderScale=OFX::kNoRenderScale) const |
void | changedParam (const OFX::InstanceChangedArgs &args, const std::string ¶mName) |
called when a param has just had its value changed | |
bool | getRegionOfDefinition (const OFX::RegionOfDefinitionArguments &args, OfxRectD &rod) |
The get RoD action. | |
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::ChoiceParam * | _paramInput |
OFX::StringParam * | _paramCode |
OFX::StringParam * | _paramFile |
OFX::PushButtonParam * | _paramUpdateRender |
Private Attributes | |
OFX::InstanceChangedArgs | _instanceChangedArgs |
CTL plugin.
Definition at line 24 of file CTLPlugin.hpp.
typedef float tuttle::plugin::ctl::CTLPlugin::Scalar |
Definition at line 27 of file CTLPlugin.hpp.
tuttle::plugin::ctl::CTLPlugin::CTLPlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 16 of file CTLPlugin.cpp.
References _instanceChangedArgs, _paramCode, _paramFile, _paramInput, _paramUpdateRender, changedParam(), OFX::ParamSet::fetchChoiceParam(), OFX::ParamSet::fetchPushButtonParam(), OFX::ParamSet::fetchStringParam(), tuttle::plugin::ctl::kParamChooseInput(), tuttle::plugin::ctl::kParamChooseInputCodeUpdate(), tuttle::plugin::ctl::kParamCTLCode(), and tuttle::plugin::kTuttlePluginFilename.
void tuttle::plugin::ctl::CTLPlugin::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 54 of file CTLPlugin.cpp.
References _paramCode, _paramFile, _paramInput, _paramUpdateRender, tuttle::plugin::ctl::eParamChooseInputCode, tuttle::plugin::ctl::eParamChooseInputFile, OFX::ChoiceParam::getValue(), tuttle::plugin::ctl::kParamChooseInput(), tuttle::plugin::ctl::kParamCTLCode(), tuttle::plugin::kTuttlePluginFilename, and OFX::ChoiceParam::setValue().
Referenced by CTLPlugin().
CTLProcessParams< CTLPlugin::Scalar > tuttle::plugin::ctl::CTLPlugin::getProcessParams | ( | const OfxPointD & | renderScale = OFX::kNoRenderScale | ) | const |
Definition at line 27 of file CTLPlugin.cpp.
References tuttle::plugin::ctl::CTLProcessParams< Scalar >::_inputType, _paramCode, _paramFile, _paramInput, tuttle::plugin::ctl::eParamChooseInputCode, tuttle::plugin::ctl::eParamChooseInputFile, OFX::StringParam::getValue(), and OFX::ChoiceParam::getValue().
bool tuttle::plugin::ctl::CTLPlugin::getRegionOfDefinition | ( | const OFX::RegionOfDefinitionArguments & | args, |
OfxRectD & | rod | ||
) | [virtual] |
The get RoD action.
If the effect wants change the rod from the default value (which is the union of RoD's of all input clips) it should set the rod argument and return true.
This is all in cannonical coordinates.
Reimplemented from OFX::ImageEffect.
Definition at line 87 of file CTLPlugin.cpp.
References tuttle::plugin::ImageEffectGilPlugin::_clipSrc, OFX::Clip::getCanonicalRod(), OFX::RegionOfDefinitionArguments::time, OfxRectD::x1, OfxRectD::x2, OfxRectD::y1, and OfxRectD::y2.
bool tuttle::plugin::ctl::CTLPlugin::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 99 of file CTLPlugin.cpp.
void tuttle::plugin::ctl::CTLPlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
The overridden render function.
[in] | args | Rendering parameters |
Implements OFX::ImageEffect.
Definition at line 115 of file CTLPlugin.cpp.
References tuttle::plugin::ImageEffectGilPlugin::_clipDst, OFX::ePixelComponentAlpha, OFX::ePixelComponentCustom, OFX::ePixelComponentNone, OFX::ePixelComponentRGB, OFX::ePixelComponentRGBA, OFX::Clip::getPixelComponents(), OFX::Clip::getPixelDepth(), and OFX::mapPixelComponentEnumToString().
Definition at line 47 of file CTLPlugin.hpp.
Referenced by CTLPlugin().
Definition at line 43 of file CTLPlugin.hpp.
Referenced by changedParam(), CTLPlugin(), and getProcessParams().
Definition at line 44 of file CTLPlugin.hpp.
Referenced by changedParam(), CTLPlugin(), and getProcessParams().
Definition at line 42 of file CTLPlugin.hpp.
Referenced by changedParam(), CTLPlugin(), and getProcessParams().
Definition at line 45 of file CTLPlugin.hpp.
Referenced by changedParam(), and CTLPlugin().