TuttleOFX  1
tuttle::plugin::normalize::NormalizePlugin Class Reference

Normalize plugin. More...

#include <NormalizePlugin.hpp>

Inheritance diagram for tuttle::plugin::normalize::NormalizePlugin:
Collaboration diagram for tuttle::plugin::normalize::NormalizePlugin:

Public Types

typedef float Scalar

Public Member Functions

 NormalizePlugin (OfxImageEffectHandle handle)
NormalizeProcessParams< 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 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::ChoiceParam_mode
OFX::ChoiceParam_analyseMode
OFX::PushButtonParam_analyseNow
OFX::GroupParam_srcGroup
OFX::RGBAParam_srcMinColor
OFX::RGBAParam_srcMaxColor
OFX::GroupParam_dstGroup
OFX::RGBAParam_dstMinColor
OFX::RGBAParam_dstMaxColor
OFX::GroupParam_processGroup
OFX::BooleanParam_processR
OFX::BooleanParam_processG
OFX::BooleanParam_processB
OFX::BooleanParam_processA

Detailed Description

Normalize plugin.

Definition at line 32 of file NormalizePlugin.hpp.


Member Typedef Documentation


Constructor & Destructor Documentation


Member Function Documentation

void tuttle::plugin::normalize::NormalizePlugin::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 229 of file NormalizePlugin.cpp.

References tuttle::plugin::ImageEffectGilPlugin::_clipSrc, tuttle::plugin::normalize::NormalizeProcessParams< Scalar >::_mode, tuttle::plugin::normalize::eParamModeAnalyse, tuttle::plugin::normalize::eParamModeCustom, OFX::Clip::getCanonicalRod(), getProcessParams(), OFX::RegionsOfInterestArguments::regionOfInterest, OFX::RegionOfInterestSetter::setRegionOfInterest(), and OFX::RegionsOfInterestArguments::time.

Here is the call graph for this function:

bool tuttle::plugin::normalize::NormalizePlugin::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 250 of file NormalizePlugin.cpp.

References tuttle::plugin::ImageEffectGilPlugin::_clipSrc, tuttle::plugin::normalize::NormalizeProcessParams< Scalar >::_dstMaxColor, tuttle::plugin::normalize::NormalizeProcessParams< Scalar >::_dstMinColor, tuttle::plugin::normalize::NormalizeProcessParams< Scalar >::_mode, tuttle::plugin::normalize::NormalizeProcessParams< Scalar >::_srcMaxColor, tuttle::plugin::normalize::NormalizeProcessParams< Scalar >::_srcMinColor, tuttle::plugin::normalize::eParamModeCustom, getProcessParams(), and OFX::RenderArguments::time.

Here is the call graph for this function:


Field Documentation


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