TuttleOFX  1
tuttle::plugin::mathOperator::MathOperatorPlugin Class Reference

MathOperator plugin. More...

#include <MathOperatorPlugin.hpp>

Inheritance diagram for tuttle::plugin::mathOperator::MathOperatorPlugin:
Collaboration diagram for tuttle::plugin::mathOperator::MathOperatorPlugin:

Public Types

typedef float Scalar

Public Member Functions

 MathOperatorPlugin (OfxImageEffectHandle handle)
MathOperatorProcessParams< 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
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.

Private Member Functions

EMathOperatorType getMathOperatorType () const
void updateInterface ()

Private Attributes

OFX::ChoiceParam_operator
OFX::ChoiceParam_mathOperatorType
OFX::DoubleParam_master
OFX::DoubleParam_red
OFX::DoubleParam_green
OFX::DoubleParam_blue
OFX::DoubleParam_alpha
OFX::BooleanParam_redSelect
OFX::BooleanParam_greenSelect
OFX::BooleanParam_blueSelect
OFX::BooleanParam_alphaSelect

Detailed Description

MathOperator plugin.

Definition at line 29 of file MathOperatorPlugin.hpp.


Member Typedef Documentation


Constructor & Destructor Documentation


Member Function Documentation

void tuttle::plugin::mathOperator::MathOperatorPlugin::changedParam ( const OFX::InstanceChangedArgs args,
const std::string &  paramName 
) [virtual]

called when a param has just had its value changed

Reimplemented from OFX::ImageEffect.

Definition at line 120 of file MathOperatorPlugin.cpp.

References tuttle::plugin::mathOperator::kMathOperatorType, and updateInterface().

Here is the call graph for this function:

EMathOperatorType tuttle::plugin::mathOperator::MathOperatorPlugin::getMathOperatorType ( ) const [inline, private]

Definition at line 66 of file MathOperatorPlugin.hpp.

References _mathOperatorType, and OFX::ChoiceParam::getValue().

Referenced by updateInterface().

Here is the call graph for this function:

MathOperatorProcessParams< MathOperatorPlugin::Scalar > tuttle::plugin::mathOperator::MathOperatorPlugin::getProcessParams ( const OfxPointD renderScale = OFX::kNoRenderScale) const

Definition at line 32 of file MathOperatorPlugin.cpp.

References _alpha, _alphaSelect, _blue, _blueSelect, _green, _greenSelect, _master, _mathOperatorType, _operator, _red, _redSelect, tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::bAProcess, tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::bBProcess, tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::bGProcess, tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::bRProcess, tuttle::plugin::mathOperator::eMathOperatorOperatorLn, tuttle::plugin::mathOperator::eMathOperatorOperatorLog, tuttle::plugin::mathOperator::eMathOperatorOperatorMultiply, tuttle::plugin::mathOperator::eMathOperatorOperatorPlus, tuttle::plugin::mathOperator::eMathOperatorOperatorPow, tuttle::plugin::mathOperator::eMathOperatorOperatorSqrt, tuttle::plugin::mathOperator::eMathOperatorTypeChannels, tuttle::plugin::mathOperator::eMathOperatorTypeRgb, tuttle::plugin::mathOperator::eMathOperatorTypeRgba, OFX::DoubleParam::getValue(), OFX::ChoiceParam::getValue(), tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::iAMathOperator, tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::iBMathOperator, tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::iGMathOperator, tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::iRMathOperator, and tuttle::plugin::mathOperator::MathOperatorProcessParams< Scalar >::op.

Here is the call graph for this function:

bool tuttle::plugin::mathOperator::MathOperatorPlugin::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 160 of file MathOperatorPlugin.cpp.

void tuttle::plugin::mathOperator::MathOperatorPlugin::render ( const OFX::RenderArguments args) [virtual]

The overridden render function.

Parameters:
[in]argsRendering parameters

Implements OFX::ImageEffect.

Definition at line 176 of file MathOperatorPlugin.cpp.

void tuttle::plugin::mathOperator::MathOperatorPlugin::updateInterface ( ) [private]

Field Documentation


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