TuttleOFX
1
|
#include <GeneratorPlugin.hpp>
Definition at line 12 of file GeneratorPlugin.hpp.
tuttle::plugin::GeneratorPlugin::GeneratorPlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 9 of file GeneratorPlugin.cpp.
References _clipDst, _clipSrc, _paramComponents, _paramExplicitConv, _paramFormat, _paramMode, _paramSize, _paramSizeHeight, _paramSizeOrientation, _paramSizeRatioValue, _paramSizeSpecificRatio, _paramSizeWidth, OFX::ParamSet::fetchBooleanParam(), OFX::ParamSet::fetchChoiceParam(), OFX::ImageEffect::fetchClip(), OFX::ParamSet::fetchDoubleParam(), OFX::ParamSet::fetchInt2DParam(), OFX::ParamSet::fetchIntParam(), kOfxImageEffectOutputClipName, kOfxImageEffectSimpleSourceClipName, tuttle::plugin::kParamFormat, tuttle::plugin::kParamGeneratorExplicitConversion, tuttle::plugin::kParamMode, tuttle::plugin::kParamSize, tuttle::plugin::kParamSizeHeight, tuttle::plugin::kParamSizeOrientation, tuttle::plugin::kParamSizeRatioValue, tuttle::plugin::kParamSizeSpecificRatio, tuttle::plugin::kParamSizeWidth, tuttle::plugin::kTuttlePluginChannel, and updateVisibleTools().
tuttle::plugin::GeneratorPlugin::~GeneratorPlugin | ( | ) | [pure virtual] |
Definition at line 37 of file GeneratorPlugin.cpp.
void tuttle::plugin::GeneratorPlugin::changedParam | ( | const OFX::InstanceChangedArgs & | args, |
const std::string & | paramName | ||
) | [virtual] |
called when a param has just had its value changed
Reimplemented from OFX::ImageEffect.
Reimplemented in tuttle::plugin::colorGradient::ColorGradientPlugin, and tuttle::plugin::seExpr::SeExprPlugin.
Definition at line 40 of file GeneratorPlugin.cpp.
References _paramFormat, _paramMode, _paramSize, _paramSizeHeight, _paramSizeOrientation, _paramSizeRatioValue, _paramSizeSpecificRatio, _paramSizeWidth, OFX::eChangeUserEdit, tuttle::plugin::eParamModeFormat, tuttle::plugin::eParamModeSize, tuttle::plugin::eParamSizeOrientationX, tuttle::plugin::eParamSizeOrientationY, tuttle::plugin::getFormatResolution(), OFX::IntParam::getValue(), OFX::Int2DParam::getValue(), OFX::ChoiceParam::getValue(), OFX::BooleanParam::getValue(), height, tuttle::plugin::kParamFormat, tuttle::plugin::kParamMode, tuttle::plugin::kParamSize, tuttle::plugin::kParamSizeHeight, tuttle::plugin::kParamSizeOrientation, tuttle::plugin::kParamSizeSpecificRatio, tuttle::plugin::kParamSizeWidth, OFX::InstanceChangedArgs::reason, OFX::ChoiceParam::setValue(), width, OfxPointI::x, and OfxPointI::y.
Referenced by updateVisibleTools().
void tuttle::plugin::GeneratorPlugin::getClipPreferences | ( | OFX::ClipPreferencesSetter & | clipPreferences | ) | [virtual] |
get the clip preferences
Reimplemented from OFX::ImageEffect.
Reimplemented in tuttle::plugin::text::TextPlugin, tuttle::plugin::colorGradient::ColorGradientPlugin, tuttle::plugin::seExpr::SeExprPlugin, tuttle::plugin::colorCube::ColorCubePlugin, tuttle::plugin::colorWheel::ColorWheelPlugin, tuttle::plugin::colorBars::ColorBarsPlugin, tuttle::plugin::ramp::RampPlugin, tuttle::plugin::checkerboard::CheckerboardPlugin, and tuttle::plugin::constant::ConstantPlugin.
Definition at line 134 of file GeneratorPlugin.cpp.
References _clipDst, _clipSrc, _paramComponents, OFX::eBitDepthCustom, OFX::eBitDepthFloat, OFX::eBitDepthNone, OFX::eBitDepthUByte, OFX::eBitDepthUShort, tuttle::plugin::eParamGeneratorComponentsAlpha, tuttle::plugin::eParamGeneratorComponentsRGB, tuttle::plugin::eParamGeneratorComponentsRGBA, tuttle::plugin::eParamGeneratorExplicitConversionAuto, tuttle::plugin::eParamGeneratorExplicitConversionByte, tuttle::plugin::eParamGeneratorExplicitConversionFloat, tuttle::plugin::eParamGeneratorExplicitConversionShort, OFX::ePixelComponentAlpha, OFX::ePixelComponentRGB, OFX::ePixelComponentRGBA, getExplicitConversion(), OFX::Clip::getPixelAspectRatio(), OFX::Clip::getPixelComponents(), OFX::Clip::getPixelDepth(), OFX::ChoiceParam::getValue(), OFX::Clip::isConnected(), OFX::ClipPreferencesSetter::setClipBitDepth(), OFX::ClipPreferencesSetter::setClipComponents(), OFX::ClipPreferencesSetter::setOutputFrameVarying(), and OFX::ClipPreferencesSetter::setPixelAspectRatio().
EParamGeneratorExplicitConversion tuttle::plugin::GeneratorPlugin::getExplicitConversion | ( | ) | const [inline] |
Definition at line 28 of file GeneratorPlugin.hpp.
References _paramExplicitConv, and OFX::ChoiceParam::getValue().
Referenced by getClipPreferences(), and getOfxExplicitConversion().
OFX::EBitDepth tuttle::plugin::GeneratorPlugin::getOfxExplicitConversion | ( | ) | const [inline] |
Definition at line 33 of file GeneratorPlugin.hpp.
References OFX::eBitDepthFloat, OFX::eBitDepthNone, OFX::eBitDepthUByte, OFX::eBitDepthUShort, tuttle::plugin::eParamGeneratorExplicitConversionAuto, tuttle::plugin::eParamGeneratorExplicitConversionByte, tuttle::plugin::eParamGeneratorExplicitConversionFloat, tuttle::plugin::eParamGeneratorExplicitConversionShort, and getExplicitConversion().
bool tuttle::plugin::GeneratorPlugin::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 230 of file GeneratorPlugin.cpp.
References _clipSrc, _paramFormat, _paramMode, _paramSize, _paramSizeHeight, _paramSizeOrientation, _paramSizeRatioValue, _paramSizeSpecificRatio, _paramSizeWidth, tuttle::plugin::eParamModeFormat, tuttle::plugin::eParamModeSize, tuttle::plugin::eParamSizeOrientationX, OFX::Clip::getCanonicalRod(), tuttle::plugin::getFormatResolution(), OFX::IntParam::getValue(), OFX::Int2DParam::getValue(), OFX::DoubleParam::getValue(), OFX::ChoiceParam::getValue(), OFX::BooleanParam::getValue(), height, OFX::Clip::isConnected(), OFX::RegionOfDefinitionArguments::time, width, OfxPointI::x, OfxRectD::x1, OfxRectD::x2, OfxPointI::y, OfxRectD::y1, and OfxRectD::y2.
bool tuttle::plugin::GeneratorPlugin::getTimeDomain | ( | OfxRangeD & | range | ) | [virtual] |
what is the time domain of this effect, valid only in the general context
get the time domain
return true if range was set, otherwise the default (the union of the time domain of all input clips) is used
Reimplemented from OFX::ImageEffect.
Definition at line 223 of file GeneratorPlugin.cpp.
References kOfxFlagInfiniteMax, kOfxFlagInfiniteMin, OfxRangeD::max, and OfxRangeD::min.
void tuttle::plugin::GeneratorPlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
client render function, this is one of the few that must be overridden
Implements OFX::ImageEffect.
Reimplemented in tuttle::plugin::text::TextPlugin, tuttle::plugin::text::TextPlugin, tuttle::plugin::text::TextPlugin, tuttle::plugin::colorGradient::ColorGradientPlugin, tuttle::plugin::seExpr::SeExprPlugin, tuttle::plugin::colorCube::ColorCubePlugin, tuttle::plugin::colorWheel::ColorWheelPlugin, tuttle::plugin::colorBars::ColorBarsPlugin, tuttle::plugin::ramp::RampPlugin, tuttle::plugin::checkerboard::CheckerboardPlugin, and tuttle::plugin::constant::ConstantPlugin.
Definition at line 294 of file GeneratorPlugin.cpp.
void tuttle::plugin::GeneratorPlugin::updateVisibleTools | ( | ) | [protected] |
Definition at line 29 of file GeneratorPlugin.cpp.
References changedParam(), tuttle::plugin::kParamMode, tuttle::plugin::kParamSizeOrientation, and OFX::ImageEffect::timeLineGetTime().
Referenced by GeneratorPlugin().
Destination image clip
Definition at line 54 of file GeneratorPlugin.hpp.
Referenced by GeneratorPlugin(), getClipPreferences(), tuttle::plugin::text::TextPlugin::render(), and tuttle::plugin::colorGradient::ColorGradientPlugin::renderFunctor().
Input image clip.
Definition at line 53 of file GeneratorPlugin.hpp.
Referenced by GeneratorPlugin(), getClipPreferences(), and getRegionOfDefinition().
Definition at line 58 of file GeneratorPlugin.hpp.
Referenced by GeneratorPlugin(), and getClipPreferences().
Explicit conversion.
Definition at line 57 of file GeneratorPlugin.hpp.
Referenced by GeneratorPlugin(), and getExplicitConversion().
Definition at line 62 of file GeneratorPlugin.hpp.
Referenced by changedParam(), GeneratorPlugin(), and getRegionOfDefinition().
Definition at line 60 of file GeneratorPlugin.hpp.
Referenced by changedParam(), GeneratorPlugin(), and getRegionOfDefinition().
Reimplemented in tuttle::plugin::text::TextPlugin.
Definition at line 64 of file GeneratorPlugin.hpp.
Referenced by changedParam(), GeneratorPlugin(), and getRegionOfDefinition().
Definition at line 66 of file GeneratorPlugin.hpp.
Referenced by changedParam(), GeneratorPlugin(), and getRegionOfDefinition().
Definition at line 69 of file GeneratorPlugin.hpp.
Referenced by changedParam(), GeneratorPlugin(), and getRegionOfDefinition().
Definition at line 68 of file GeneratorPlugin.hpp.
Referenced by changedParam(), GeneratorPlugin(), and getRegionOfDefinition().
Definition at line 67 of file GeneratorPlugin.hpp.
Referenced by changedParam(), GeneratorPlugin(), and getRegionOfDefinition().
Definition at line 65 of file GeneratorPlugin.hpp.
Referenced by changedParam(), GeneratorPlugin(), and getRegionOfDefinition().