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