TuttleOFX
1
|
#include <GeneratorPlugin.hpp>
Public Member Functions | |
GeneratorPlugin (OfxImageEffectHandle handle) | |
virtual | ~GeneratorPlugin ()=0 |
virtual void | changedParam (const OFX::InstanceChangedArgs &args, const std::string ¶mName) |
virtual bool | getRegionOfDefinition (const OFX::RegionOfDefinitionArguments &args, OfxRectD &rod) |
virtual void | getClipPreferences (OFX::ClipPreferencesSetter &clipPreferences) |
virtual bool | getTimeDomain (OfxRangeD &range) |
EParamGeneratorExplicitConversion | getExplicitConversion () const |
OFX::EBitDepth | getOfxExplicitConversion () const |
Data Fields | |
OFX::Clip * | _clipSrc |
Input image clip. | |
OFX::Clip * | _clipDst |
user parameters | |
OFX::ChoiceParam * | _paramExplicitConv |
Explicit conversion. | |
OFX::ChoiceParam * | _paramComponents |
OFX::ChoiceParam * | _paramMode |
OFX::ChoiceParam * | _paramFormat |
OFX::Int2DParam * | _paramSize |
OFX::IntParam * | _paramSizeWidth |
OFX::IntParam * | _paramSizeHeight |
OFX::BooleanParam * | _paramSizeSpecificRatio |
OFX::DoubleParam * | _paramSizeRatioValue |
OFX::ChoiceParam * | _paramSizeOrientation |
Protected Member Functions | |
void | updateVisibleTools () |
Definition at line 12 of file GeneratorPlugin.hpp.
tuttle::plugin::GeneratorPlugin::GeneratorPlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 9 of file GeneratorPlugin.cpp.
References _clipDst, _clipSrc, _paramComponents, _paramExplicitConv, _paramFormat, _paramMode, _paramSize, _paramSizeHeight, _paramSizeOrientation, _paramSizeRatioValue, _paramSizeSpecificRatio, _paramSizeWidth, tuttle::plugin::kParamFormat, tuttle::plugin::kParamGeneratorExplicitConversion, tuttle::plugin::kParamMode, tuttle::plugin::kParamSize, tuttle::plugin::kParamSizeHeight, tuttle::plugin::kParamSizeOrientation, tuttle::plugin::kParamSizeRatioValue, tuttle::plugin::kParamSizeSpecificRatio, tuttle::plugin::kParamSizeWidth, tuttle::plugin::kTuttlePluginChannel, and updateVisibleTools().
tuttle::plugin::GeneratorPlugin::~GeneratorPlugin | ( | ) | [pure virtual] |
Definition at line 37 of file GeneratorPlugin.cpp.
void tuttle::plugin::GeneratorPlugin::changedParam | ( | const OFX::InstanceChangedArgs & | args, |
const std::string & | paramName | ||
) | [virtual] |
Definition at line 40 of file GeneratorPlugin.cpp.
References _paramFormat, _paramMode, _paramSize, _paramSizeHeight, _paramSizeOrientation, _paramSizeRatioValue, _paramSizeSpecificRatio, _paramSizeWidth, tuttle::plugin::eParamModeFormat, tuttle::plugin::eParamModeSize, tuttle::plugin::eParamSizeOrientationX, tuttle::plugin::eParamSizeOrientationY, tuttle::plugin::getFormatResolution(), tuttle::plugin::kParamFormat, tuttle::plugin::kParamMode, tuttle::plugin::kParamSize, tuttle::plugin::kParamSizeHeight, tuttle::plugin::kParamSizeOrientation, tuttle::plugin::kParamSizeSpecificRatio, and tuttle::plugin::kParamSizeWidth.
Referenced by updateVisibleTools().
void tuttle::plugin::GeneratorPlugin::getClipPreferences | ( | OFX::ClipPreferencesSetter & | clipPreferences | ) | [virtual] |
Definition at line 134 of file GeneratorPlugin.cpp.
References _clipDst, _clipSrc, _paramComponents, tuttle::ofx::imageEffect::eBitDepthCustom, tuttle::ofx::imageEffect::eBitDepthFloat, tuttle::ofx::imageEffect::eBitDepthNone, tuttle::ofx::imageEffect::eBitDepthUByte, tuttle::ofx::imageEffect::eBitDepthUShort, tuttle::plugin::eParamGeneratorComponentsAlpha, tuttle::plugin::eParamGeneratorComponentsRGB, tuttle::plugin::eParamGeneratorComponentsRGBA, tuttle::plugin::eParamGeneratorExplicitConversionAuto, tuttle::plugin::eParamGeneratorExplicitConversionByte, tuttle::plugin::eParamGeneratorExplicitConversionFloat, tuttle::plugin::eParamGeneratorExplicitConversionShort, tuttle::ofx::imageEffect::ePixelComponentAlpha, tuttle::ofx::imageEffect::ePixelComponentRGB, tuttle::ofx::imageEffect::ePixelComponentRGBA, and getExplicitConversion().
EParamGeneratorExplicitConversion tuttle::plugin::GeneratorPlugin::getExplicitConversion | ( | ) | const [inline] |
Definition at line 26 of file GeneratorPlugin.hpp.
References _paramExplicitConv.
Referenced by getClipPreferences(), and getOfxExplicitConversion().
OFX::EBitDepth tuttle::plugin::GeneratorPlugin::getOfxExplicitConversion | ( | ) | const [inline] |
Definition at line 31 of file GeneratorPlugin.hpp.
References tuttle::ofx::imageEffect::eBitDepthFloat, tuttle::ofx::imageEffect::eBitDepthNone, tuttle::ofx::imageEffect::eBitDepthUByte, tuttle::ofx::imageEffect::eBitDepthUShort, tuttle::plugin::eParamGeneratorExplicitConversionAuto, tuttle::plugin::eParamGeneratorExplicitConversionByte, tuttle::plugin::eParamGeneratorExplicitConversionFloat, tuttle::plugin::eParamGeneratorExplicitConversionShort, and getExplicitConversion().
bool tuttle::plugin::GeneratorPlugin::getRegionOfDefinition | ( | const OFX::RegionOfDefinitionArguments & | args, |
OfxRectD & | rod | ||
) | [virtual] |
Definition at line 232 of file GeneratorPlugin.cpp.
References _clipSrc, _paramFormat, _paramMode, _paramSize, _paramSizeHeight, _paramSizeOrientation, _paramSizeRatioValue, _paramSizeSpecificRatio, _paramSizeWidth, tuttle::plugin::eParamModeFormat, tuttle::plugin::eParamModeSize, tuttle::plugin::eParamSizeOrientationX, and tuttle::plugin::getFormatResolution().
bool tuttle::plugin::GeneratorPlugin::getTimeDomain | ( | OfxRangeD & | range | ) | [virtual] |
Definition at line 223 of file GeneratorPlugin.cpp.
References _clipSrc.
void tuttle::plugin::GeneratorPlugin::updateVisibleTools | ( | ) | [protected] |
Definition at line 29 of file GeneratorPlugin.cpp.
References changedParam(), tuttle::plugin::kParamMode, and tuttle::plugin::kParamSizeOrientation.
Referenced by GeneratorPlugin().
OFX::Clip* tuttle::plugin::GeneratorPlugin::_clipDst |
Destination image clip
Definition at line 52 of file GeneratorPlugin.hpp.
Referenced by GeneratorPlugin(), and getClipPreferences().
OFX::Clip* tuttle::plugin::GeneratorPlugin::_clipSrc |
Input image clip.
Definition at line 51 of file GeneratorPlugin.hpp.
Referenced by GeneratorPlugin(), getClipPreferences(), getRegionOfDefinition(), and getTimeDomain().
OFX::ChoiceParam* tuttle::plugin::GeneratorPlugin::_paramComponents |
Definition at line 56 of file GeneratorPlugin.hpp.
Referenced by GeneratorPlugin(), and getClipPreferences().
OFX::ChoiceParam* tuttle::plugin::GeneratorPlugin::_paramExplicitConv |
Explicit conversion.
Definition at line 55 of file GeneratorPlugin.hpp.
Referenced by GeneratorPlugin(), and getExplicitConversion().
OFX::ChoiceParam* tuttle::plugin::GeneratorPlugin::_paramFormat |
Definition at line 60 of file GeneratorPlugin.hpp.
Referenced by changedParam(), GeneratorPlugin(), and getRegionOfDefinition().
OFX::ChoiceParam* tuttle::plugin::GeneratorPlugin::_paramMode |
Definition at line 58 of file GeneratorPlugin.hpp.
Referenced by changedParam(), GeneratorPlugin(), and getRegionOfDefinition().
OFX::Int2DParam* tuttle::plugin::GeneratorPlugin::_paramSize |
Definition at line 62 of file GeneratorPlugin.hpp.
Referenced by changedParam(), GeneratorPlugin(), and getRegionOfDefinition().
OFX::IntParam* tuttle::plugin::GeneratorPlugin::_paramSizeHeight |
Definition at line 64 of file GeneratorPlugin.hpp.
Referenced by changedParam(), GeneratorPlugin(), and getRegionOfDefinition().
OFX::ChoiceParam* tuttle::plugin::GeneratorPlugin::_paramSizeOrientation |
Definition at line 67 of file GeneratorPlugin.hpp.
Referenced by changedParam(), GeneratorPlugin(), and getRegionOfDefinition().
OFX::DoubleParam* tuttle::plugin::GeneratorPlugin::_paramSizeRatioValue |
Definition at line 66 of file GeneratorPlugin.hpp.
Referenced by changedParam(), GeneratorPlugin(), and getRegionOfDefinition().
OFX::BooleanParam* tuttle::plugin::GeneratorPlugin::_paramSizeSpecificRatio |
Definition at line 65 of file GeneratorPlugin.hpp.
Referenced by changedParam(), GeneratorPlugin(), and getRegionOfDefinition().
OFX::IntParam* tuttle::plugin::GeneratorPlugin::_paramSizeWidth |
Definition at line 63 of file GeneratorPlugin.hpp.
Referenced by changedParam(), GeneratorPlugin(), and getRegionOfDefinition().