TuttleOFX
1
|
Thinning plugin. More...
#include <ThinningPlugin.hpp>
Public Types | |
typedef float | Scalar |
Public Member Functions | |
ThinningPlugin (OfxImageEffectHandle handle) | |
ThinningProcessParams< Scalar > | getProcessParams (const OfxPointD &renderScale=OFX::kNoRenderScale) const |
bool | getRegionOfDefinition (const OFX::RegionOfDefinitionArguments &args, OfxRectD &rod) |
The get RoD action. | |
void | getRegionsOfInterest (const OFX::RegionsOfInterestArguments &args, OFX::RegionOfInterestSetter &rois) |
the get region of interest action | |
void | render (const OFX::RenderArguments &args) |
The overridden render function. | |
Data Fields | |
OFX::ChoiceParam * | _paramBorder |
Thinning plugin.
Definition at line 21 of file ThinningPlugin.hpp.
typedef float tuttle::plugin::thinning::ThinningPlugin::Scalar |
Definition at line 24 of file ThinningPlugin.hpp.
tuttle::plugin::thinning::ThinningPlugin::ThinningPlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 11 of file ThinningPlugin.cpp.
References _paramBorder, OFX::ParamSet::fetchChoiceParam(), and tuttle::plugin::thinning::kParamBorder.
ThinningProcessParams< ThinningPlugin::Scalar > tuttle::plugin::thinning::ThinningPlugin::getProcessParams | ( | const OfxPointD & | renderScale = OFX::kNoRenderScale | ) | const |
Definition at line 17 of file ThinningPlugin.cpp.
References tuttle::plugin::thinning::ThinningProcessParams< Scalar >::_border, _paramBorder, and OFX::ChoiceParam::getValue().
Referenced by getRegionOfDefinition().
bool tuttle::plugin::thinning::ThinningPlugin::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 24 of file ThinningPlugin.cpp.
References tuttle::plugin::thinning::ThinningProcessParams< Scalar >::_border, tuttle::plugin::ImageEffectGilPlugin::_clipSrc, tuttle::plugin::thinning::eParamBorderPadded, OFX::Clip::getCanonicalRod(), getProcessParams(), tuttle::rectangleReduce(), and OFX::RegionOfDefinitionArguments::time.
void tuttle::plugin::thinning::ThinningPlugin::getRegionsOfInterest | ( | const OFX::RegionsOfInterestArguments & | args, |
OFX::RegionOfInterestSetter & | rois | ||
) | [virtual] |
the get region of interest action
the get RoI action
If the effect wants change its region of interest on any input clip from the default values (which is the same as the RoI in the arguments) it should do so by calling the OFX::RegionOfInterestSetter::setRegionOfInterest function on the rois argument.
Note, everything is in cannonical coordinates.
Reimplemented from OFX::ImageEffect.
Definition at line 40 of file ThinningPlugin.cpp.
References tuttle::plugin::ImageEffectGilPlugin::_clipSrc, OFX::Clip::getCanonicalRod(), tuttle::rectangleGrow(), OFX::RegionOfInterestSetter::setRegionOfInterest(), and OFX::RegionsOfInterestArguments::time.
void tuttle::plugin::thinning::ThinningPlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
The overridden render function.
[in] | args | Rendering parameters |
Implements OFX::ImageEffect.
Definition at line 54 of file ThinningPlugin.cpp.
Definition at line 37 of file ThinningPlugin.hpp.
Referenced by getProcessParams(), and ThinningPlugin().