TuttleOFX  1
CropMargin.hpp
Go to the documentation of this file.
00001 #ifndef _TUTTLE_PLUGIN_CROP_MARGIN_HPP_
00002 #define _TUTTLE_PLUGIN_CROP_MARGIN_HPP_
00003 
00004 #include <tuttle/plugin/global.hpp>
00005 
00006 #include <ofxsImageEffect.h>
00007 #include <ofxsInteract.h>
00008 #include <boost/gil/gil_all.hpp>
00009 
00010 namespace tuttle {
00011 namespace plugin {
00012 namespace crop {
00013 
00014 class CropOverlay : public OFX::OverlayInteract
00015 {
00016 public:
00017         CropOverlay( OfxInteractHandle handle, OFX::ImageEffect* effect ) : OFX::OverlayInteract( handle )
00018         {
00019                 _effect = effect;
00020         }
00021 
00022         virtual bool draw( const OFX::DrawArgs& args );
00023 };
00024 
00025 class CropEffectOverlay : public OFX::EffectOverlayDescriptor
00026 {
00027 public:
00028         OFX::Interact* createInstance( OfxInteractHandle handle, OFX::ImageEffect* effect )
00029         {
00030                 return new CropOverlay( handle, effect );
00031         }
00032 
00033 };
00034 
00035 }
00036 }
00037 }
00038 
00039 #endif