TuttleOFX  1
tuttle::plugin::blur::BlurPlugin Class Reference

Blur plugin. More...

#include <BlurPlugin.hpp>

Inheritance diagram for tuttle::plugin::blur::BlurPlugin:
Collaboration diagram for tuttle::plugin::blur::BlurPlugin:

Public Member Functions

 BlurPlugin (OfxImageEffectHandle handle)
BlurProcessParams< ScalargetProcessParams (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
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::Double2DParam_paramSize
OFX::ChoiceParam_paramBorder
OFX::BooleanParam_paramNormalizedKernel
OFX::DoubleParam_paramKernelEpsilon

Private Types

typedef float Scalar

Detailed Description

Blur plugin.

Definition at line 30 of file BlurPlugin.hpp.


Member Typedef Documentation

Definition at line 32 of file BlurPlugin.hpp.


Constructor & Destructor Documentation


Member Function Documentation

bool tuttle::plugin::blur::BlurPlugin::getRegionOfDefinition ( const OFX::RegionOfDefinitionArguments args,
OfxRectD rod 
) [virtual]
void tuttle::plugin::blur::BlurPlugin::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 99 of file BlurPlugin.cpp.

References tuttle::plugin::ImageEffectGilPlugin::_clipSrc, tuttle::plugin::blur::BlurProcessParams< Scalar >::_gilKernelX, tuttle::plugin::blur::BlurProcessParams< Scalar >::_gilKernelY, OFX::Clip::getCanonicalRod(), getProcessParams(), OFX::RegionOfInterestSetter::setRegionOfInterest(), OFX::RegionsOfInterestArguments::time, OfxRectD::x1, OfxRectD::x2, OfxRectD::y1, and OfxRectD::y2.

Here is the call graph for this function:

bool tuttle::plugin::blur::BlurPlugin::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 112 of file BlurPlugin.cpp.

References tuttle::plugin::ImageEffectGilPlugin::_clipSrc, tuttle::plugin::blur::BlurProcessParams< Scalar >::_size, getProcessParams(), OFX::RenderArguments::renderScale, and OFX::RenderArguments::time.

Here is the call graph for this function:

void tuttle::plugin::blur::BlurPlugin::render ( const OFX::RenderArguments args) [virtual]

The overridden render function.

Parameters:
[in]argsRendering parameters

Implements OFX::ImageEffect.

Definition at line 127 of file BlurPlugin.cpp.


Field Documentation


The documentation for this class was generated from the following files: