TuttleOFX  1
tuttle::plugin::ctl::CTLPlugin Class Reference

CTL plugin. More...

#include <CTLPlugin.hpp>

Inheritance diagram for tuttle::plugin::ctl::CTLPlugin:
Collaboration diagram for tuttle::plugin::ctl::CTLPlugin:

Public Types

typedef float Scalar

Public Member Functions

 CTLPlugin (OfxImageEffectHandle handle)
CTLProcessParams< 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 getRegionOfDefinition (const OFX::RegionOfDefinitionArguments &args, OfxRectD &rod)
 The get RoD 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_paramInput
OFX::StringParam_paramCode
OFX::StringParam_paramFile
OFX::PushButtonParam_paramUpdateRender

Private Attributes

OFX::InstanceChangedArgs _instanceChangedArgs

Detailed Description

CTL plugin.

Definition at line 24 of file CTLPlugin.hpp.


Member Typedef Documentation

Definition at line 27 of file CTLPlugin.hpp.


Constructor & Destructor Documentation


Member Function Documentation

void tuttle::plugin::ctl::CTLPlugin::changedParam ( const OFX::InstanceChangedArgs args,
const std::string &  paramName 
) [virtual]
bool tuttle::plugin::ctl::CTLPlugin::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 87 of file CTLPlugin.cpp.

References tuttle::plugin::ImageEffectGilPlugin::_clipSrc, OFX::Clip::getCanonicalRod(), OFX::RegionOfDefinitionArguments::time, OfxRectD::x1, OfxRectD::x2, OfxRectD::y1, and OfxRectD::y2.

Here is the call graph for this function:

bool tuttle::plugin::ctl::CTLPlugin::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 99 of file CTLPlugin.cpp.

void tuttle::plugin::ctl::CTLPlugin::render ( const OFX::RenderArguments args) [virtual]

Field Documentation


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