TuttleOFX
1
|
Resize plugin. More...
#include <ResizePlugin.hpp>
Resize plugin.
Definition at line 25 of file ResizePlugin.hpp.
typedef boost::gil::point2<double> tuttle::plugin::resize::ResizePlugin::Point2 |
Definition at line 29 of file ResizePlugin.hpp.
typedef float tuttle::plugin::resize::ResizePlugin::Scalar |
Definition at line 28 of file ResizePlugin.hpp.
tuttle::plugin::resize::ResizePlugin::ResizePlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 21 of file ResizePlugin.cpp.
References _paramCenter, _paramCenterPoint, _paramFormat, _paramMode, _paramScale, _paramSize, _paramSizeHeight, _paramSizeKeepRatio, _paramSizeOrientation, _paramSizeWidth, OFX::ParamSet::fetchBooleanParam(), OFX::ParamSet::fetchChoiceParam(), OFX::ParamSet::fetchDouble2DParam(), OFX::ParamSet::fetchInt2DParam(), OFX::ParamSet::fetchIntParam(), tuttle::plugin::resize::kParamCenter, tuttle::plugin::resize::kParamCenterPoint, tuttle::plugin::resize::kParamFormat, tuttle::plugin::resize::kParamMode, tuttle::plugin::resize::kParamModeScale, tuttle::plugin::resize::kParamSize, tuttle::plugin::resize::kParamSizeHeight, tuttle::plugin::resize::kParamSizeKeepRatio, tuttle::plugin::resize::kParamSizeOrientation, tuttle::plugin::resize::kParamSizeWidth, and updateVisibleTools().
void tuttle::plugin::resize::ResizePlugin::changedParam | ( | const OFX::InstanceChangedArgs & | args, |
const std::string & | paramName | ||
) | [virtual] |
called when a param has just had its value changed
Reimplemented from tuttle::plugin::SamplerPlugin.
Definition at line 72 of file ResizePlugin.cpp.
References _paramCenter, _paramCenterPoint, _paramFormat, _paramMode, _paramScale, _paramSize, _paramSizeHeight, _paramSizeKeepRatio, _paramSizeOrientation, _paramSizeWidth, OFX::eChangeUserEdit, tuttle::plugin::resize::eParamModeFormat, tuttle::plugin::resize::eParamModeScale, tuttle::plugin::resize::eParamModeSize, tuttle::plugin::resize::eParamSizeOrientationX, tuttle::plugin::resize::eParamSizeOrientationY, tuttle::plugin::getFormatResolution(), OFX::IntParam::getValue(), OFX::Int2DParam::getValue(), OFX::ChoiceParam::getValue(), OFX::BooleanParam::getValue(), height, tuttle::plugin::resize::kParamCenter, tuttle::plugin::resize::kParamFormat, tuttle::plugin::resize::kParamMode, tuttle::plugin::resize::kParamScale, tuttle::plugin::resize::kParamSize, tuttle::plugin::resize::kParamSizeHeight, tuttle::plugin::resize::kParamSizeKeepRatio, tuttle::plugin::resize::kParamSizeOrientation, tuttle::plugin::resize::kParamSizeWidth, OFX::InstanceChangedArgs::reason, OFX::Param::setIsSecretAndDisabled(), OFX::ChoiceParam::setValue(), width, OfxPointI::x, and OfxPointI::y.
Referenced by updateVisibleTools().
ResizeProcessParams< ResizePlugin::Scalar > tuttle::plugin::resize::ResizePlugin::getProcessParams | ( | const OfxPointD & | renderScale = OFX::kNoRenderScale | ) | const |
Definition at line 56 of file ResizePlugin.cpp.
References tuttle::plugin::resize::ResizeProcessParams< Scalar >::_centerPoint, tuttle::plugin::resize::ResizeProcessParams< Scalar >::_changeCenter, _paramCenter, _paramCenterPoint, tuttle::plugin::resize::ResizeProcessParams< Scalar >::_samplerProcessParams, tuttle::plugin::SamplerPlugin::fillProcessParams(), OFX::Double2DParam::getValue(), OFX::BooleanParam::getValue(), OfxPointD::x, and OfxPointD::y.
Referenced by getRegionOfDefinition().
bool tuttle::plugin::resize::ResizePlugin::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 194 of file ResizePlugin.cpp.
References tuttle::plugin::ImageEffectGilPlugin::_clipSrc, _paramFormat, _paramMode, _paramScale, _paramSize, _paramSizeHeight, _paramSizeKeepRatio, _paramSizeOrientation, _paramSizeWidth, tuttle::plugin::resize::eParamModeFormat, tuttle::plugin::resize::eParamModeScale, tuttle::plugin::resize::eParamModeSize, tuttle::plugin::resize::eParamSizeOrientationX, OFX::Clip::getCanonicalRod(), tuttle::plugin::getFormatResolution(), getProcessParams(), OFX::IntParam::getValue(), OFX::Int2DParam::getValue(), OFX::Double2DParam::getValue(), OFX::ChoiceParam::getValue(), OFX::BooleanParam::getValue(), height, tuttle::plugin::ofxToGil(), tuttle::plugin::viewer::scale, OFX::RegionOfDefinitionArguments::time, width, OfxPointI::x, OfxRectD::x1, OfxRectD::x2, OfxPointI::y, OfxRectD::y1, and OfxRectD::y2.
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.
[in] | args | Rendering parameters |
Implements OFX::ImageEffect.
Definition at line 363 of file ResizePlugin.cpp.
void tuttle::plugin::resize::ResizePlugin::updateVisibleTools | ( | ) |
Definition at line 44 of file ResizePlugin.cpp.
References changedParam(), tuttle::plugin::resize::kParamCenter, tuttle::plugin::kParamFilter, tuttle::plugin::resize::kParamMode, tuttle::plugin::resize::kParamSizeKeepRatio, tuttle::plugin::resize::kParamSizeOrientation, and OFX::ImageEffect::timeLineGetTime().
Referenced by ResizePlugin().
Definition at line 60 of file ResizePlugin.hpp.
Referenced by changedParam(), getProcessParams(), and ResizePlugin().
Definition at line 61 of file ResizePlugin.hpp.
Referenced by changedParam(), getProcessParams(), and ResizePlugin().
Definition at line 50 of file ResizePlugin.hpp.
Referenced by changedParam(), getRegionOfDefinition(), and ResizePlugin().
Definition at line 48 of file ResizePlugin.hpp.
Referenced by changedParam(), getRegionOfDefinition(), and ResizePlugin().
Definition at line 58 of file ResizePlugin.hpp.
Referenced by changedParam(), getRegionOfDefinition(), and ResizePlugin().
Definition at line 52 of file ResizePlugin.hpp.
Referenced by changedParam(), getRegionOfDefinition(), and ResizePlugin().
Definition at line 54 of file ResizePlugin.hpp.
Referenced by changedParam(), getRegionOfDefinition(), and ResizePlugin().
Definition at line 55 of file ResizePlugin.hpp.
Referenced by changedParam(), getRegionOfDefinition(), and ResizePlugin().
Definition at line 56 of file ResizePlugin.hpp.
Referenced by changedParam(), getRegionOfDefinition(), and ResizePlugin().
Definition at line 53 of file ResizePlugin.hpp.
Referenced by changedParam(), getRegionOfDefinition(), and ResizePlugin().