TuttleOFX
1
|
Viewer plugin. More...
#include <ViewerPlugin.hpp>
Public Types | |
typedef float | Scalar |
Public Member Functions | |
ViewerPlugin (OfxImageEffectHandle handle) | |
ViewerProcessParams< Scalar > | getProcessParams (const OfxPointD &renderScale=OFX::kNoRenderScale) const |
void | changedParam (const OFX::InstanceChangedArgs &args, const std::string ¶mName) |
called when a param has just had its value changed | |
bool | isIdentity (const OFX::RenderArguments &args, OFX::Clip *&identityClip, double &identityTime) |
client is identity function, returns the clip and time for the identity function | |
void | render (const OFX::RenderArguments &args) |
The overridden render function. |
Viewer plugin.
Definition at line 21 of file ViewerPlugin.hpp.
typedef float tuttle::plugin::viewer::ViewerPlugin::Scalar |
Definition at line 24 of file ViewerPlugin.hpp.
tuttle::plugin::viewer::ViewerPlugin::ViewerPlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 12 of file ViewerPlugin.cpp.
void tuttle::plugin::viewer::ViewerPlugin::changedParam | ( | const OFX::InstanceChangedArgs & | args, |
const std::string & | paramName | ||
) | [virtual] |
called when a param has just had its value changed
Reimplemented from OFX::ImageEffect.
Definition at line 24 of file ViewerPlugin.cpp.
ViewerProcessParams< ViewerPlugin::Scalar > tuttle::plugin::viewer::ViewerPlugin::getProcessParams | ( | const OfxPointD & | renderScale = OFX::kNoRenderScale | ) | const |
Definition at line 18 of file ViewerPlugin.cpp.
bool tuttle::plugin::viewer::ViewerPlugin::isIdentity | ( | const OFX::RenderArguments & | args, |
OFX::Clip *& | identityClip, | ||
double & | identityTime | ||
) | [virtual] |
client is identity function, returns the clip and time for the identity function
If the effect would do no processing for the given param set and render arguments, then this function should return true and set the identityClip pointer to point to the clip that is the identity and identityTime to be the time at which to access the clip for the identity operation.
Reimplemented from OFX::ImageEffect.
Definition at line 28 of file ViewerPlugin.cpp.
void tuttle::plugin::viewer::ViewerPlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
The overridden render function.
[in] | args | Rendering parameters |
Implements OFX::ImageEffect.
Definition at line 37 of file ViewerPlugin.cpp.
References tuttle::plugin::ImageEffectGilPlugin::_clipDst, tuttle::plugin::ImageEffectGilPlugin::_clipSrc, OFX::eBitDepthCustom, OFX::eBitDepthFloat, OFX::eBitDepthNone, OFX::eBitDepthUByte, OFX::eBitDepthUShort, OFX::ePixelComponentAlpha, OFX::ePixelComponentRGB, OFX::ePixelComponentRGBA, OFX::Clip::fetchImage(), height, tuttle::plugin::viewer::idle(), tuttle::plugin::viewer::loadNewTexture(), tuttle::plugin::viewer::openGLWindow(), OFX::RenderArguments::time, TUTTLE_INFO, TUTTLE_TLOG, TUTTLE_TLOG_VAR, and width.