TuttleOFX  1
tuttle::plugin::resize::ResizePlugin Class Reference

Resize plugin. More...

#include <ResizePlugin.hpp>

Inheritance diagram for tuttle::plugin::resize::ResizePlugin:
Collaboration diagram for tuttle::plugin::resize::ResizePlugin:

Public Types

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

Public Member Functions

 ResizePlugin (OfxImageEffectHandle handle)
ResizeProcessParams< ScalargetProcessParams (const OfxPointD &renderScale=OFX::kNoRenderScale) const
void updateVisibleTools ()
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.
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_paramMode
OFX::ChoiceParam_paramFormat
OFX::Int2DParam_paramSize
OFX::IntParam_paramSizeWidth
OFX::IntParam_paramSizeHeight
OFX::BooleanParam_paramSizeKeepRatio
OFX::ChoiceParam_paramSizeOrientation
OFX::Double2DParam_paramScale
OFX::BooleanParam_paramCenter
OFX::Double2DParam_paramCenterPoint

Detailed Description

Resize plugin.

Definition at line 25 of file ResizePlugin.hpp.


Member Typedef Documentation

typedef boost::gil::point2<double> tuttle::plugin::resize::ResizePlugin::Point2

Definition at line 29 of file ResizePlugin.hpp.

Definition at line 28 of file ResizePlugin.hpp.


Constructor & Destructor Documentation


Member Function Documentation

void tuttle::plugin::resize::ResizePlugin::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 291 of file ResizePlugin.cpp.

bool tuttle::plugin::resize::ResizePlugin::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 347 of file ResizePlugin.cpp.

void tuttle::plugin::resize::ResizePlugin::render ( const OFX::RenderArguments args) [virtual]

The overridden render function.

Parameters:
[in]argsRendering parameters

Implements OFX::ImageEffect.

Definition at line 363 of file ResizePlugin.cpp.

void tuttle::plugin::resize::ResizePlugin::updateVisibleTools ( )

Field Documentation


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