TuttleOFX  1
ViewerProcess.hpp
Go to the documentation of this file.
00001 #ifndef _TUTTLE_PLUGIN_VIEWER_PROCESS_HPP_
00002 #define _TUTTLE_PLUGIN_VIEWER_PROCESS_HPP_
00003 
00004 #include <tuttle/plugin/ImageGilFilterProcessor.hpp>
00005 
00006 namespace tuttle {
00007 namespace plugin {
00008 namespace viewer {
00009 
00010 /**
00011  * @brief Viewer process
00012  *
00013  */
00014 template<class View>
00015 class ViewerProcess : public ImageGilFilterProcessor<View>
00016 {
00017 public:
00018         typedef typename View::value_type Pixel;
00019         typedef typename boost::gil::channel_type<View>::type Channel;
00020         typedef float Scalar;
00021 protected:
00022         ViewerPlugin&    _plugin;            ///< Rendering plugin
00023         ViewerProcessParams<Scalar> _params; ///< parameters
00024 
00025 public:
00026         ViewerProcess( ViewerPlugin& effect );
00027 
00028         void setup( const OFX::RenderArguments& args );
00029 
00030         void multiThreadProcessImages( const OfxRectI& procWindowRoW );
00031 };
00032 
00033 }
00034 }
00035 }
00036 
00037 #include "ViewerProcess.tcc"
00038 
00039 #endif