TuttleOFX
1
|
#include <MergePlugin.hpp>
Public Types | |
typedef float | Scalar |
Public Member Functions | |
MergePlugin (OfxImageEffectHandle handle) | |
MergeProcessParams< Scalar > | getProcessParams (const OfxPointD &renderScale=OFX::kNoRenderScale) const |
bool | getRegionOfDefinition (const OFX::RegionOfDefinitionArguments &args, OfxRectD &rod) |
The get RoD action. | |
void | render (const OFX::RenderArguments &args) |
The overridden render function. | |
Data Fields | |
OFX::Clip * | _clipSrcA |
Source image clip A. | |
OFX::Clip * | _clipSrcB |
Source image clip B. | |
OFX::Clip * | _clipDst |
Destination image clip. | |
OFX::ChoiceParam * | _paramMerge |
Functor structure. | |
OFX::ChoiceParam * | _paramRod |
OFX::Int2DParam * | _paramOffsetA |
OFX::Int2DParam * | _paramOffsetB |
Private Member Functions | |
template<template< typename > class Functor> | |
void | renderGray (const OFX::RenderArguments &args) |
template<template< typename > class Functor> | |
void | renderRGBA (const OFX::RenderArguments &args) |
template<class View > | |
void | render (const OFX::RenderArguments &args) |
client render function, this is one of the few that must be overridden | |
template<class View , template< typename > class Functor> | |
void | render (const OFX::RenderArguments &args) |
client render function, this is one of the few that must be overridden | |
template<class View , template< typename > class Functor> | |
void | render_if (const OFX::RenderArguments &args, boost::mpl::false_) |
template<class View , template< typename > class Functor> | |
void | render_if (const OFX::RenderArguments &args, boost::mpl::true_) |
Definition at line 26 of file MergePlugin.hpp.
typedef float tuttle::plugin::merge::MergePlugin::Scalar |
Definition at line 29 of file MergePlugin.hpp.
tuttle::plugin::merge::MergePlugin::MergePlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 19 of file MergePlugin.cpp.
References _clipDst, _clipSrcA, _clipSrcB, _paramMerge, _paramOffsetA, _paramOffsetB, _paramRod, OFX::ParamSet::fetchChoiceParam(), OFX::ImageEffect::fetchClip(), OFX::ParamSet::fetchInt2DParam(), kOfxImageEffectOutputClipName, tuttle::plugin::merge::kParamFunction, tuttle::plugin::merge::kParamOffsetA, tuttle::plugin::merge::kParamOffsetB, tuttle::plugin::merge::kParamRod, tuttle::plugin::merge::kParamSourceA, and tuttle::plugin::merge::kParamSourceB.
MergeProcessParams< MergePlugin::Scalar > tuttle::plugin::merge::MergePlugin::getProcessParams | ( | const OfxPointD & | renderScale = OFX::kNoRenderScale | ) | const |
Definition at line 32 of file MergePlugin.cpp.
References tuttle::plugin::merge::MergeProcessParams< Scalar >::_offsetA, tuttle::plugin::merge::MergeProcessParams< Scalar >::_offsetB, _paramOffsetA, _paramOffsetB, _paramRod, tuttle::plugin::merge::MergeProcessParams< Scalar >::_rod, OFX::Int2DParam::getValue(), OFX::ChoiceParam::getValue(), OfxPointI::x, OfxPointD::x, OfxPointI::y, and OfxPointD::y.
Referenced by getRegionOfDefinition().
bool tuttle::plugin::merge::MergePlugin::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 53 of file MergePlugin.cpp.
References _clipSrcA, _clipSrcB, tuttle::plugin::merge::MergeProcessParams< Scalar >::_offsetA, tuttle::plugin::merge::MergeProcessParams< Scalar >::_offsetB, tuttle::plugin::merge::MergeProcessParams< Scalar >::_rod, tuttle::plugin::merge::eParamRodA, tuttle::plugin::merge::eParamRodB, tuttle::plugin::merge::eParamRodIntersect, tuttle::plugin::merge::eParamRodUnion, OFX::Clip::getCanonicalRod(), getProcessParams(), tuttle::rectanglesBoundingBox(), tuttle::rectanglesIntersection(), OFX::RegionOfDefinitionArguments::time, and tuttle::translateRegion().
void tuttle::plugin::merge::MergePlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
The overridden render function.
[in] | args | Rendering parameters |
Implements OFX::ImageEffect.
Definition at line 90 of file MergePlugin.cpp.
References _clipDst, OFX::eBitDepthCustom, OFX::eBitDepthFloat, OFX::eBitDepthNone, OFX::eBitDepthUByte, OFX::eBitDepthUShort, OFX::ePixelComponentAlpha, OFX::ePixelComponentCustom, OFX::ePixelComponentNone, OFX::ePixelComponentRGB, OFX::ePixelComponentRGBA, OFX::Clip::getPixelComponents(), OFX::Clip::getPixelDepth(), OFX::mapBitDepthEnumToString(), and OFX::mapPixelComponentEnumToString().
void tuttle::plugin::merge::MergePlugin::render | ( | const OFX::RenderArguments & | args | ) | [private, virtual] |
client render function, this is one of the few that must be overridden
Implements OFX::ImageEffect.
void tuttle::plugin::merge::MergePlugin::render | ( | const OFX::RenderArguments & | args | ) | [private, virtual] |
client render function, this is one of the few that must be overridden
Implements OFX::ImageEffect.
void tuttle::plugin::merge::MergePlugin::render_if | ( | const OFX::RenderArguments & | args, |
boost::mpl::false_ | |||
) | [private] |
Definition at line 412 of file MergePlugin.cpp.
void tuttle::plugin::merge::MergePlugin::render_if | ( | const OFX::RenderArguments & | args, |
boost::mpl::true_ | |||
) | [private] |
Definition at line 404 of file MergePlugin.cpp.
References tuttle::plugin::ImageProcessor::setupAndProcess().
void tuttle::plugin::merge::MergePlugin::renderGray | ( | const OFX::RenderArguments & | args | ) | [private] |
void tuttle::plugin::merge::MergePlugin::renderRGBA | ( | const OFX::RenderArguments & | args | ) | [private] |
Destination image clip.
Definition at line 63 of file MergePlugin.hpp.
Referenced by MergePlugin(), and render().
Source image clip A.
Definition at line 61 of file MergePlugin.hpp.
Referenced by getRegionOfDefinition(), and MergePlugin().
Source image clip B.
Definition at line 62 of file MergePlugin.hpp.
Referenced by getRegionOfDefinition(), and MergePlugin().
Definition at line 67 of file MergePlugin.hpp.
Referenced by getProcessParams(), and MergePlugin().
Definition at line 68 of file MergePlugin.hpp.
Referenced by getProcessParams(), and MergePlugin().
Definition at line 66 of file MergePlugin.hpp.
Referenced by getProcessParams(), and MergePlugin().