TuttleOFX  1
OpenImageIOReaderPlugin.hpp
Go to the documentation of this file.
00001 #ifndef _TUTTLE_PLUGIN_OPENIMAGEIO_READER_PLUGIN_HPP_
00002 #define _TUTTLE_PLUGIN_OPENIMAGEIO_READER_PLUGIN_HPP_
00003 
00004 #include <tuttle/plugin/context/ReaderPlugin.hpp>
00005 
00006 namespace tuttle {
00007 namespace plugin {
00008 namespace openImageIO {
00009 namespace reader {
00010 
00011 struct OpenImageIOReaderProcessParams
00012 {
00013         std::string _filepath;       ///< filepath
00014 };
00015 
00016 /**
00017  * @brief OpenImageIO reader
00018  *
00019  */
00020 class OpenImageIOReaderPlugin : public ReaderPlugin
00021 {
00022 public:
00023         OpenImageIOReaderPlugin( OfxImageEffectHandle handle );
00024 
00025 public:
00026         OpenImageIOReaderProcessParams getProcessParams( const OfxTime time );
00027         void                           changedParam( const OFX::InstanceChangedArgs& args, const std::string& paramName );
00028         bool                           getRegionOfDefinition( const OFX::RegionOfDefinitionArguments& args, OfxRectD& rod );
00029         void                           getClipPreferences( OFX::ClipPreferencesSetter& clipPreferences );
00030 
00031         void                           render( const OFX::RenderArguments& args );
00032 };
00033 
00034 }
00035 }
00036 }
00037 }
00038 
00039 #endif