TuttleOFX  1
TuttleOFX/libraries/tuttle/src/tuttle/host/OverlayInteract.cpp
Go to the documentation of this file.
00001 #include "OverlayInteract.hpp"
00002 
00003 namespace tuttle {
00004 namespace host {
00005 
00006 OverlayInteract::OverlayInteract( Graph& userGraph, ImageEffectNode& effect, int bitDepthPerComponent, bool hasAlpha )
00007         : ofx::interact::OfxhInteract( effect.getOverlayDescriptor(), ( void* )( effect.getHandle() ) )
00008         , _instance( effect )
00009         , _bitDepthPerComponent( bitDepthPerComponent )
00010         , _hasAlpha( hasAlpha )
00011         , _time(0)
00012         , _procGraph( ComputeOptions().setReturnBuffers( false ), userGraph, std::list<std::string>(), core().getMemoryCache() )
00013 {
00014         effect.initOverlayDescriptor( bitDepthPerComponent, hasAlpha );
00015         createInstanceAction();
00016 }
00017 
00018 void OverlayInteract::draw( const OfxPointD& renderScale )
00019 {
00020         ofx::interact::OfxhInteract::drawAction( _time, renderScale );
00021 }
00022 
00023 }
00024 }
00025