TuttleOFX  1
tuttle::plugin::sobel::SobelPlugin Class Reference

Sobel plugin. More...

#include <SobelPlugin.hpp>

Inheritance diagram for tuttle::plugin::sobel::SobelPlugin:
Collaboration diagram for tuttle::plugin::sobel::SobelPlugin:

Public Types

typedef float Scalar

Public Member Functions

 SobelPlugin (OfxImageEffectHandle handle)
SobelProcessParams< ScalargetProcessParams (const OfxPointD &renderScale=OFX::kNoRenderScale) const
void changedParam (const OFX::InstanceChangedArgs &args, const std::string &paramName)
 called when a param has just had its value changed
void getClipPreferences (OFX::ClipPreferencesSetter &clipPreferences)
 get the clip preferences
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::BooleanParam_paramNormalizedKernel
OFX::BooleanParam_paramReverseKernel
OFX::ChoiceParam_paramPass
OFX::DoubleParam_paramKernelEpsilon
OFX::BooleanParam_paramUnidimensional
OFX::ChoiceParam_paramBorder
OFX::BooleanParam_paramComputeGradientNorm
OFX::BooleanParam_paramGradientNormManhattan
OFX::BooleanParam_paramComputeGradientDirection
OFX::BooleanParam_paramGradientDirectionAbs
OFX::ChoiceParam_paramOutputComponent

Detailed Description

Sobel plugin.

Definition at line 41 of file SobelPlugin.hpp.


Member Typedef Documentation

Definition at line 44 of file SobelPlugin.hpp.


Constructor & Destructor Documentation


Member Function Documentation

void tuttle::plugin::sobel::SobelPlugin::getClipPreferences ( OFX::ClipPreferencesSetter clipPreferences) [virtual]
void tuttle::plugin::sobel::SobelPlugin::getRegionsOfInterest ( const OFX::RegionsOfInterestArguments args,
OFX::RegionOfInterestSetter rois 
) [virtual]
bool tuttle::plugin::sobel::SobelPlugin::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 399 of file SobelPlugin.cpp.

References tuttle::plugin::ImageEffectGilPlugin::_clipSrc, tuttle::plugin::sobel::SobelProcessParams< Scalar >::_unidimensional, tuttle::plugin::sobel::SobelProcessParams< Scalar >::_xKernelGaussian, tuttle::plugin::sobel::SobelProcessParams< Scalar >::_xKernelGaussianDerivative, tuttle::plugin::sobel::SobelProcessParams< Scalar >::_yKernelGaussian, tuttle::plugin::sobel::SobelProcessParams< Scalar >::_yKernelGaussianDerivative, getProcessParams(), OFX::RenderArguments::renderScale, and OFX::RenderArguments::time.

Here is the call graph for this function:

void tuttle::plugin::sobel::SobelPlugin::render ( const OFX::RenderArguments args) [virtual]

The overridden render function.

Parameters:
[in]argsRendering parameters

Implements OFX::ImageEffect.

Definition at line 416 of file SobelPlugin.cpp.

References tuttle::plugin::ImageEffectGilPlugin::_clipDst, and tuttle::plugin::ImageEffectGilPlugin::_clipSrc.


Field Documentation


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