TuttleOFX
1
|
00001 #include "ColorBarsPlugin.hpp" 00002 #include "ColorBarsProcess.hpp" 00003 #include "ColorBarsDefinitions.hpp" 00004 00005 #include <boost/gil/gil_all.hpp> 00006 00007 namespace tuttle { 00008 namespace plugin { 00009 namespace colorBars { 00010 00011 00012 ColorBarsPlugin::ColorBarsPlugin( OfxImageEffectHandle handle ) 00013 : GeneratorPlugin( handle ) 00014 { 00015 mode = fetchChoiceParam( kColorBarsLevels ); 00016 } 00017 00018 ColorBarsParams ColorBarsPlugin::getProcessParams() const 00019 { 00020 ColorBarsParams params; 00021 00022 params.mode = static_cast<EColorBarsLevels>( mode->getValue() ); 00023 return params; 00024 } 00025 00026 void ColorBarsPlugin::getClipPreferences( OFX::ClipPreferencesSetter& clipPreferences ) 00027 { 00028 GeneratorPlugin::getClipPreferences( clipPreferences ); 00029 } 00030 00031 /** 00032 * @brief The overridden render function 00033 * @param[in] args Rendering parameters 00034 */ 00035 void ColorBarsPlugin::render( const OFX::RenderArguments &args ) 00036 { 00037 doGilRender<ColorBarsProcess>( *this, args ); 00038 } 00039 00040 00041 } 00042 } 00043 }