TuttleOFX
1
|
00001 #include "RampPlugin.hpp" 00002 #include "RampProcess.hpp" 00003 #include "RampDefinitions.hpp" 00004 00005 #include <boost/gil/gil_all.hpp> 00006 00007 namespace tuttle { 00008 namespace plugin { 00009 namespace ramp { 00010 00011 00012 RampPlugin::RampPlugin( OfxImageEffectHandle handle ) 00013 : GeneratorPlugin( handle ) 00014 { 00015 _direction = fetchChoiceParam( kRampDirection ); 00016 00017 _colorStart = fetchRGBAParam( kRampColorStart ); 00018 _colorEnd = fetchRGBAParam( kRampColorEnd ); 00019 00020 _color = fetchBooleanParam( kRampColor ); 00021 00022 } 00023 00024 void RampPlugin::getClipPreferences( OFX::ClipPreferencesSetter& clipPreferences ) 00025 { 00026 GeneratorPlugin::getClipPreferences( clipPreferences ); 00027 } 00028 00029 /** 00030 * @brief The overridden render function 00031 * @param[in] args Rendering parameters 00032 */ 00033 void RampPlugin::render( const OFX::RenderArguments &args ) 00034 { 00035 doGilRender<RampProcess>( *this, args ); 00036 } 00037 00038 00039 } 00040 } 00041 }