TuttleOFX  1
tuttle::plugin::thinning::ThinningPlugin Class Reference

Thinning plugin. More...

#include <ThinningPlugin.hpp>

Inheritance diagram for tuttle::plugin::thinning::ThinningPlugin:
Collaboration diagram for tuttle::plugin::thinning::ThinningPlugin:

Public Types

typedef float Scalar

Public Member Functions

 ThinningPlugin (OfxImageEffectHandle handle)
ThinningProcessParams< 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
void render (const OFX::RenderArguments &args)
 The overridden render function.

Data Fields

OFX::ChoiceParam_paramBorder

Detailed Description

Thinning plugin.

Definition at line 21 of file ThinningPlugin.hpp.


Member Typedef Documentation

Definition at line 24 of file ThinningPlugin.hpp.


Constructor & Destructor Documentation

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.

Here is the call graph for this function:


Member Function Documentation

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().

Here is the call graph for this function:

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

void tuttle::plugin::thinning::ThinningPlugin::render ( const OFX::RenderArguments args) [virtual]

The overridden render function.

Parameters:
[in]argsRendering parameters

Implements OFX::ImageEffect.

Definition at line 54 of file ThinningPlugin.cpp.


Field Documentation


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