TuttleOFX  1
ConstantPlugin.cpp
Go to the documentation of this file.
00001 #include "ConstantPlugin.hpp"
00002 #include "ConstantProcess.hpp"
00003 #include "ConstantDefinitions.hpp"
00004 
00005 #include <boost/gil/gil_all.hpp>
00006 
00007 namespace tuttle {
00008 namespace plugin {
00009 namespace constant {
00010 
00011 ConstantPlugin::ConstantPlugin( OfxImageEffectHandle handle )
00012         : GeneratorPlugin( handle )
00013 {
00014         _color = fetchRGBAParam( kConstantColor );
00015 }
00016 
00017 /**
00018  * @brief The overridden render function
00019  * @param[in]   args     Rendering parameters
00020  */
00021 void ConstantPlugin::render( const OFX::RenderArguments& args )
00022 {
00023         doGilRender<ConstantProcess>( *this, args );
00024 }
00025 
00026 void ConstantPlugin::getClipPreferences( OFX::ClipPreferencesSetter& clipPreferences )
00027 {
00028         GeneratorPlugin::getClipPreferences( clipPreferences );
00029 }
00030 
00031 }
00032 }
00033 }