TuttleOFX  1
tuttle::plugin::warp::WarpPlugin Class Reference

Warp plugin. More...

#include <WarpPlugin.hpp>

Inheritance diagram for tuttle::plugin::warp::WarpPlugin:
Collaboration diagram for tuttle::plugin::warp::WarpPlugin:

Public Types

typedef double Scalar
typedef boost::gil::point2
< Scalar
Point2

Public Member Functions

 WarpPlugin (OfxImageEffectHandle handle)
WarpProcessParams< 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.

Data Fields

OFX::Clip_clipSrc
 Source image clip.
OFX::Clip_clipSrcB
 Source image clip.
OFX::Clip_clipDst
 Destination image clip.
OFX::BooleanParam_paramOverlay
OFX::BooleanParam_paramInverse
OFX::PushButtonParam_paramReset
OFX::PushButtonParam_paramNextCurve
OFX::PushButtonParam_paramSetKey
OFX::ChoiceParam_paramMethod
OFX::IntParam_paramNbPoints
OFX::DoubleParam_transition
OFX::GroupParam_paramGroupSettings
OFX::DoubleParam_paramRigiditeTPS
OFX::IntParam_paramNbPointsBezier
OFX::GroupParam_paramGroupIn
boost::array
< OFX::Double2DParam
*, kMaxNbPoints
_paramPointIn
OFX::BooleanParam_paramOverlayIn
OFX::RGBParam_paramOverlayInColor
OFX::GroupParam_paramGroupOut
boost::array
< OFX::Double2DParam
*, kMaxNbPoints
_paramPointOut
OFX::BooleanParam_paramOverlayOut
OFX::RGBParam_paramOverlayOutColor
OFX::GroupParam_paramGroupTgtIn
boost::array
< OFX::Double2DParam
*, 2 *kMaxNbPoints
_paramPointTgtIn
OFX::BooleanParam_paramOverlayTgtIn
OFX::RGBParam_paramOverlayTgtInColor
OFX::GroupParam_paramGroupTgtOut
boost::array
< OFX::Double2DParam
*, 2 *kMaxNbPoints
_paramPointTgtOut
OFX::BooleanParam_paramOverlayTgtOut
OFX::RGBParam_paramOverlayTgtOutColor
OFX::GroupParam_paramGroupCurveBegin
boost::array
< OFX::BooleanParam
*, kMaxNbPoints
_paramCurveBegin

Private Attributes

OFX::InstanceChangedArgs _instanceChangedArgs

Detailed Description

Warp plugin.

Definition at line 46 of file WarpPlugin.hpp.


Member Typedef Documentation

typedef boost::gil::point2<Scalar> tuttle::plugin::warp::WarpPlugin::Point2

Definition at line 51 of file WarpPlugin.hpp.

Definition at line 50 of file WarpPlugin.hpp.


Constructor & Destructor Documentation

tuttle::plugin::warp::WarpPlugin::WarpPlugin ( OfxImageEffectHandle  handle)

Definition at line 29 of file WarpPlugin.cpp.

References _clipDst, _clipSrc, _clipSrcB, _instanceChangedArgs, _paramCurveBegin, _paramGroupIn, _paramGroupOut, _paramGroupTgtIn, _paramGroupTgtOut, _paramInverse, _paramMethod, _paramNbPoints, _paramNbPointsBezier, _paramNextCurve, _paramOverlay, _paramOverlayIn, _paramOverlayInColor, _paramOverlayOut, _paramOverlayOutColor, _paramOverlayTgtIn, _paramOverlayTgtInColor, _paramOverlayTgtOut, _paramOverlayTgtOutColor, _paramPointIn, _paramPointOut, _paramPointTgtIn, _paramPointTgtOut, _paramReset, _paramRigiditeTPS, _paramSetKey, _transition, changedParam(), OFX::eChangePluginEdit, OFX::ParamSet::fetchBooleanParam(), OFX::ParamSet::fetchChoiceParam(), OFX::ImageEffect::fetchClip(), OFX::ParamSet::fetchDouble2DParam(), OFX::ParamSet::fetchDoubleParam(), OFX::ParamSet::fetchGroupParam(), OFX::ParamSet::fetchIntParam(), OFX::ParamSet::fetchPushButtonParam(), OFX::ParamSet::fetchRGBParam(), tuttle::plugin::warp::kClipSourceB, tuttle::plugin::warp::kMaxNbPoints, kOfxImageEffectOutputClipName, kOfxImageEffectSimpleSourceClipName, tuttle::plugin::warp::kParamCurveBegin, tuttle::plugin::warp::kParamGroupIn, tuttle::plugin::warp::kParamGroupTgtIn, tuttle::plugin::warp::kParamGroupTgtOut, tuttle::plugin::warp::kParamInverse, tuttle::plugin::warp::kParamMethod, tuttle::plugin::warp::kParamNbPoints, tuttle::plugin::warp::kParamNbPointsBezier, tuttle::plugin::warp::kParamNextCurve, tuttle::plugin::warp::kParamOverlay, tuttle::plugin::warp::kParamOverlayIn, tuttle::plugin::warp::kParamOverlayInColor, tuttle::plugin::warp::kParamOverlayOut, tuttle::plugin::warp::kParamOverlayOutColor, tuttle::plugin::warp::kParamOverlayTgtIn, tuttle::plugin::warp::kParamOverlayTgtInColor, tuttle::plugin::warp::kParamOverlayTgtOut, tuttle::plugin::warp::kParamOverlayTgtOutColor, tuttle::plugin::warp::kParamPointIn, tuttle::plugin::warp::kParamPointOut, tuttle::plugin::warp::kParamPointTgtIn, tuttle::plugin::warp::kParamPointTgtOut, tuttle::plugin::warp::kParamReset, tuttle::plugin::warp::kParamRigiditeTPS, tuttle::plugin::warp::kParamSetKey, tuttle::plugin::warp::kParamTransition, OFX::InstanceChangedArgs::reason, OFX::InstanceChangedArgs::renderScale, OFX::InstanceChangedArgs::time, OfxPointD::x, and OfxPointD::y.

Here is the call graph for this function:


Member Function Documentation

bool tuttle::plugin::warp::WarpPlugin::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 282 of file WarpPlugin.cpp.

References _clipSrc, tuttle::plugin::warp::WarpProcessParams< Scalar >::_nbPoints, getProcessParams(), and OFX::RenderArguments::time.

Here is the call graph for this function:

void tuttle::plugin::warp::WarpPlugin::render ( const OFX::RenderArguments args) [virtual]

Field Documentation

Destination image clip.

Definition at line 69 of file WarpPlugin.hpp.

Referenced by render(), and WarpPlugin().

Source image clip.

Definition at line 68 of file WarpPlugin.hpp.

Referenced by WarpPlugin().


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