TuttleOFX  1
tuttle::plugin::exr::reader::EXRReaderPlugin Class Reference

Exr reader. More...

#include <EXRReaderPlugin.hpp>

Inheritance diagram for tuttle::plugin::exr::reader::EXRReaderPlugin:
Collaboration diagram for tuttle::plugin::exr::reader::EXRReaderPlugin:

Public Member Functions

 EXRReaderPlugin (OfxImageEffectHandle handle)
EXRReaderProcessParams getProcessParams (const OfxTime time)
void changedParam (const OFX::InstanceChangedArgs &args, const std::string &paramName)
 called when a param has just had its value changed
void getClipPreferences (OFX::ClipPreferencesSetter &clipPreferences)
 get the clip preferences
bool getRegionOfDefinition (const OFX::RegionOfDefinitionArguments &args, OfxRectD &rod)
 The get RoD action.
void render (const OFX::RenderArguments &args)
 The overridden render function.
const std::vector< std::string > & channelNames () const
const std::vector
< OFX::ChoiceParam * > & 
channelChoice () const

Protected Attributes

std::vector< OFX::ChoiceParam * > _vChannelChoice
 Channel choice.
std::vector< std::string > _vChannelNames
 Channel names.
OFX::ChoiceParam_outComponents
 Components list.
OFX::ChoiceParam_redComponents
 index of Red components
OFX::ChoiceParam_greenComponents
 index of Green components
OFX::ChoiceParam_blueComponents
 index of Blue components
OFX::ChoiceParam_alphaComponents
 index of Alpha components
OFX::ChoiceParam_outputData
 Output data.
int _channels
 number of channels in file
float _par
 pixel aspect ratio

Private Member Functions

void updateCombos ()

Detailed Description

Exr reader.

Definition at line 27 of file EXRReaderPlugin.hpp.


Constructor & Destructor Documentation


Member Function Documentation

void tuttle::plugin::exr::reader::EXRReaderPlugin::changedParam ( const OFX::InstanceChangedArgs args,
const std::string &  paramName 
) [virtual]
const std::vector<OFX::ChoiceParam*>& tuttle::plugin::exr::reader::EXRReaderPlugin::channelChoice ( ) const [inline]

Definition at line 41 of file EXRReaderPlugin.hpp.

References _vChannelChoice.

const std::vector<std::string>& tuttle::plugin::exr::reader::EXRReaderPlugin::channelNames ( ) const [inline]

Definition at line 40 of file EXRReaderPlugin.hpp.

References _vChannelNames.

bool tuttle::plugin::exr::reader::EXRReaderPlugin::getRegionOfDefinition ( const OFX::RegionOfDefinitionArguments args,
OfxRectD rod 
) [virtual]

The get RoD action.

If the effect wants change the rod from the default value (which is the union of RoD's of all input clips) it should set the rod argument and return true.

This is all in cannonical coordinates.

Implements tuttle::plugin::ReaderPlugin.

Definition at line 205 of file EXRReaderPlugin.cpp.

References _outputData, _par, tuttle::plugin::ReaderPlugin::getAbsoluteFilenameAt(), OFX::ChoiceParam::getValue(), OFX::RegionOfDefinitionArguments::time, OfxRectD::x1, OfxRectD::x2, OfxRectD::y1, and OfxRectD::y2.

Here is the call graph for this function:

void tuttle::plugin::exr::reader::EXRReaderPlugin::render ( const OFX::RenderArguments args) [virtual]

The overridden render function.

Parameters:
[in]argsRendering parameters

Reimplemented from tuttle::plugin::ReaderPlugin.

Definition at line 234 of file EXRReaderPlugin.cpp.

void tuttle::plugin::exr::reader::EXRReaderPlugin::updateCombos ( ) [private]

Definition at line 109 of file EXRReaderPlugin.cpp.

References _channels, _par, _vChannelChoice, _vChannelNames, and tuttle::plugin::ReaderPlugin::getAbsoluteFirstFilename().

Referenced by changedParam(), and EXRReaderPlugin().

Here is the call graph for this function:


Field Documentation

index of Alpha components

Definition at line 53 of file EXRReaderPlugin.hpp.

Referenced by EXRReaderPlugin(), and getProcessParams().

index of Blue components

Definition at line 52 of file EXRReaderPlugin.hpp.

Referenced by EXRReaderPlugin(), and getProcessParams().

number of channels in file

Definition at line 55 of file EXRReaderPlugin.hpp.

Referenced by getClipPreferences(), getProcessParams(), and updateCombos().

index of Green components

Definition at line 51 of file EXRReaderPlugin.hpp.

Referenced by EXRReaderPlugin(), and getProcessParams().

pixel aspect ratio

Definition at line 56 of file EXRReaderPlugin.hpp.

Referenced by getClipPreferences(), getRegionOfDefinition(), and updateCombos().

index of Red components

Definition at line 50 of file EXRReaderPlugin.hpp.

Referenced by EXRReaderPlugin(), and getProcessParams().

Channel names.

Definition at line 48 of file EXRReaderPlugin.hpp.

Referenced by channelNames(), and updateCombos().


The documentation for this class was generated from the following files: