TuttleOFX
1
|
#include <ClipImage.hpp>
Public Member Functions | |
ClipImage (INode &effect, const ofx::attribute::OfxhClipImageDescriptor &desc) | |
ClipImage (const ClipImage &other) | |
~ClipImage () | |
ClipImage * | clone () const |
clone this clip | |
const std::string & | getName () const |
void | setConnectedClip (const ClipImage &other) |
void | setUnconnected () |
std::string | getFullName () const |
OfxTime | getRemappedTime (const OfxTime time) const |
std::string | getConnectedClipFullName () const |
std::string | getClipIdentifier () const |
ClipImage & | getConnectedClip () |
const ClipImage & | getConnectedClip () const |
const std::string & | getUnmappedBitDepth () const |
Get the Raw Unmapped Pixel Depth from the host. | |
const std::string & | getUnmappedComponents () const |
Get the Raw Unmapped Components from the host. | |
double | getFrameRate () const |
Frame Rate The frame rate of a clip or instance's project. | |
void | setFrameRate (const double fps) |
void | setFrameRange (const double startFrame, const double endFrame) |
Frame Range (startFrame, endFrame) The frame range over which a clip has images. | |
const double | getUnmappedFrameRate () const |
Unmapped Frame Rate. | |
void | setUnmappedFrameRange (const double unmappedStartFrame, const double unmappedEndFrame) |
Unmapped Frame Range - The unmaped frame range over which an output clip has images. | |
tuttle::host::ofx::imageEffect::OfxhImage * | getImage (const OfxTime time, const OfxRectD *optionalBounds=NULL) |
override this to fill in the image at the given time. The bounds of the image on the image plane should be appropriate', typically the value returned in getRegionsOfInterest on the effect instance. Outside a render call, the optionalBounds should be 'appropriate' for the. If bounds is not null, fetch the indicated section of the canonical image plane. | |
OfxRectD | fetchRegionOfDefinition (const OfxTime time) const |
override this to return the rod on the clip | |
Protected Attributes | |
std::string | _name |
bool | _isConnected |
bool | _continuousSamples |
memory::IMemoryCache & | _memoryCache |
const ClipImage * | _connectedClip |
Private Member Functions | |
ClipImage & | operator= (const ClipImage &other) |
Friends | |
class | INode |
Definition at line 23 of file ClipImage.hpp.
tuttle::host::attribute::ClipImage::ClipImage | ( | INode & | effect, |
const ofx::attribute::OfxhClipImageDescriptor & | desc | ||
) |
Definition at line 34 of file ClipImage.cpp.
References tuttle::host::ofx::attribute::OfxhAttribute::getEditableProperties(), and getFullName().
Referenced by clone().
tuttle::host::attribute::ClipImage::ClipImage | ( | const ClipImage & | other | ) |
Definition at line 45 of file ClipImage.cpp.
References _connectedClip, _continuousSamples, _isConnected, and _name.
tuttle::host::attribute::ClipImage::~ClipImage | ( | ) |
Definition at line 56 of file ClipImage.cpp.
ClipImage* tuttle::host::attribute::ClipImage::clone | ( | ) | const [inline, virtual] |
clone this clip
Implements tuttle::host::ofx::attribute::OfxhClipImage.
Definition at line 47 of file ClipImage.hpp.
References ClipImage().
OfxRectD tuttle::host::attribute::ClipImage::fetchRegionOfDefinition | ( | const OfxTime | time | ) | const [virtual] |
override this to return the rod on the clip
Return the rod on the clip cannoical coords!
Implements tuttle::host::ofx::attribute::OfxhClipImage.
Definition at line 80 of file ClipImage.cpp.
References _connectedClip, tuttle::host::INode::asImageEffectNode(), tuttle::host::INode::eNodeTypeImageEffect, fetchRegionOfDefinition(), getFullName(), tuttle::host::attribute::Attribute::getNode(), tuttle::host::ImageEffectNode::getRegionOfDefinition(), getRemappedTime(), tuttle::host::ofx::attribute::OfxhClipAccessor::isConnected(), tuttle::host::ofx::attribute::OfxhAttributeAccessor::isOutput(), and tuttle::host::mapNodeTypeEnumToString().
Referenced by tuttle::host::graph::ProcessVertexAtTime::exportDotDebug(), fetchRegionOfDefinition(), and getImage().
std::string tuttle::host::attribute::ClipImage::getClipIdentifier | ( | ) | const [inline, virtual] |
Implements tuttle::host::ofx::attribute::OfxhClipImage.
Definition at line 92 of file ClipImage.hpp.
References getConnectedClipFullName(), getFullName(), tuttle::host::ofx::attribute::OfxhClipAccessor::isConnected(), and tuttle::host::ofx::attribute::OfxhAttributeAccessor::isOutput().
Referenced by getImage(), tuttle::host::ImageEffectNode::process(), and setConnectedClip().
ClipImage& tuttle::host::attribute::ClipImage::getConnectedClip | ( | ) | [inline] |
Definition at line 101 of file ClipImage.hpp.
Referenced by tuttle::host::ImageEffectNode::computeTimeDomain(), tuttle::host::ImageEffectNode::coutBitDepthConnections(), tuttle::host::ImageEffectNode::getDefaultTimeDomain(), tuttle::host::ImageEffectNode::initComponents(), tuttle::host::ImageEffectNode::initInputClipsFps(), tuttle::host::ImageEffectNode::initInputClipsPixelAspectRatio(), tuttle::host::ImageEffectNode::maximizeBitDepthFromReadsToWrites(), tuttle::host::ImageEffectNode::maximizeBitDepthFromWritesToReads(), and tuttle::host::ImageEffectNode::validBitDepthConnections().
const ClipImage& tuttle::host::attribute::ClipImage::getConnectedClip | ( | ) | const [inline] |
Definition at line 106 of file ClipImage.hpp.
References _connectedClip.
std::string tuttle::host::attribute::ClipImage::getConnectedClipFullName | ( | ) | const [inline, virtual] |
Implements tuttle::host::ofx::attribute::OfxhClipImage.
Definition at line 82 of file ClipImage.hpp.
References _connectedClip, getFullName(), tuttle::host::ofx::attribute::OfxhClipAccessor::isConnected(), and tuttle::host::ofx::attribute::OfxhAttributeAccessor::isOutput().
Referenced by getClipIdentifier().
double tuttle::host::attribute::ClipImage::getFrameRate | ( | void | ) | const [virtual] |
Frame Rate The frame rate of a clip or instance's project.
Reimplemented from tuttle::host::ofx::attribute::OfxhClipImage.
Definition at line 121 of file ClipImage.cpp.
References tuttle::host::ofx::attribute::OfxhAttribute::getProperties(), and kOfxImageEffectPropFrameRate.
Referenced by tuttle::host::graph::ProcessVertex::exportDotDebug(), tuttle::host::graph::ProcessVertexAtTime::exportDotDebug(), and tuttle::host::ImageEffectNode::initInputClipsFps().
std::string tuttle::host::attribute::ClipImage::getFullName | ( | ) | const [virtual] |
Implements tuttle::host::ofx::attribute::OfxhClipImage.
Definition at line 59 of file ClipImage.cpp.
References getName(), tuttle::host::INode::getName(), and tuttle::host::attribute::Attribute::getNode().
Referenced by tuttle::host::ImageEffectNode::checkClipsConnections(), ClipImage(), tuttle::host::ImageEffectNode::coutBitDepthConnections(), fetchRegionOfDefinition(), getClipIdentifier(), getConnectedClipFullName(), tuttle::host::ImageEffectNode::process(), setConnectedClip(), and tuttle::host::ImageEffectNode::validBitDepthConnections().
tuttle::host::ofx::imageEffect::OfxhImage * tuttle::host::attribute::ClipImage::getImage | ( | const OfxTime | time, |
const OfxRectD * | optionalBounds = NULL |
||
) | [virtual] |
override this to fill in the image at the given time. The bounds of the image on the image plane should be appropriate', typically the value returned in getRegionsOfInterest on the effect instance. Outside a render call, the optionalBounds should be 'appropriate' for the. If bounds is not null, fetch the indicated section of the canonical image plane.
override this to fill in the image at the given time. The bounds of the image on the image plane should be 'appropriate', typically the value returned in getRegionsOfInterest on the effect instance. Outside a render call, the optionalBounds should be 'appropriate' for the. If bounds is not null, fetch the indicated section of the canonical image plane.
Implements tuttle::host::ofx::attribute::OfxhClipImage.
Definition at line 165 of file ClipImage.cpp.
References _memoryCache, fetchRegionOfDefinition(), tuttle::host::memory::IMemoryCache::get(), getClipIdentifier(), getRemappedTime(), OfxRectD::x1, OfxRectD::x2, OfxRectD::y1, and OfxRectD::y2.
const std::string& tuttle::host::attribute::ClipImage::getName | ( | void | ) | const [inline, virtual] |
Implements tuttle::host::attribute::Attribute.
Definition at line 49 of file ClipImage.hpp.
Referenced by getFullName(), getRemappedTime(), and tuttle::host::ImageEffectNode::initInputClipsPixelAspectRatio().
Maybe we are not inside a compute (eg. overlay)... so datas are not initialized, etc.
Definition at line 64 of file ClipImage.cpp.
References tuttle::host::INode::getData(), getName(), tuttle::host::attribute::Attribute::getNode(), and tuttle::host::ofx::attribute::OfxhAttributeAccessor::isOutput().
Referenced by fetchRegionOfDefinition(), and getImage().
const std::string & tuttle::host::attribute::ClipImage::getUnmappedBitDepth | ( | ) | const [virtual] |
Get the Raw Unmapped Pixel Depth from the host.
Get the Raw Unmapped Pixel Depth.
Reimplemented from tuttle::host::ofx::attribute::OfxhClipImage.
Definition at line 105 of file ClipImage.cpp.
References tuttle::host::ofx::attribute::OfxhAttribute::getProperties(), and kOfxImageClipPropUnmappedPixelDepth.
const std::string & tuttle::host::attribute::ClipImage::getUnmappedComponents | ( | ) | const [virtual] |
Get the Raw Unmapped Components from the host.
Reimplemented from tuttle::host::ofx::attribute::OfxhClipImage.
Definition at line 112 of file ClipImage.cpp.
References tuttle::host::ofx::attribute::OfxhAttribute::getProperties(), and kOfxImageClipPropUnmappedComponents.
const double tuttle::host::attribute::ClipImage::getUnmappedFrameRate | ( | void | ) | const [virtual] |
Unmapped Frame Rate.
Unmapped Frame Rate The unmaped frame range over which an output clip has images.
Reimplemented from tuttle::host::ofx::attribute::OfxhClipImage.
Definition at line 144 of file ClipImage.cpp.
References tuttle::host::INode::asImageEffectNode(), tuttle::host::attribute::Attribute::getNode(), and tuttle::host::ofx::imageEffect::OfxhImageEffectNode::getOutputFrameRate().
void tuttle::host::attribute::ClipImage::setConnectedClip | ( | const ClipImage & | other | ) | [inline] |
Definition at line 53 of file ClipImage.hpp.
References _connectedClip, getClipIdentifier(), tuttle::host::ofx::attribute::OfxhAttribute::getEditableProperties(), getFullName(), tuttle::host::ofx::attribute::OfxhAttributeAccessor::isOutput(), and tuttle::host::ofx::attribute::OfxhClipAccessor::setConnected().
Referenced by tuttle::host::ImageEffectNode::connect().
void tuttle::host::attribute::ClipImage::setFrameRange | ( | const double | startFrame, |
const double | endFrame | ||
) |
Frame Range (startFrame, endFrame) The frame range over which a clip has images.
Definition at line 134 of file ClipImage.cpp.
References tuttle::host::ofx::attribute::OfxhAttribute::getEditableProperties(), and kOfxImageEffectPropFrameRange.
Referenced by tuttle::host::ImageEffectNode::computeTimeDomain().
void tuttle::host::attribute::ClipImage::setFrameRate | ( | const double | fps | ) |
Definition at line 126 of file ClipImage.cpp.
References tuttle::host::ofx::attribute::OfxhAttribute::getEditableProperties(), and kOfxImageEffectPropFrameRate.
Referenced by tuttle::host::ImageEffectNode::initFps(), and tuttle::host::ImageEffectNode::initInputClipsFps().
void tuttle::host::attribute::ClipImage::setUnconnected | ( | ) | [inline] |
Definition at line 76 of file ClipImage.hpp.
References _connectedClip, and tuttle::host::ofx::attribute::OfxhClipAccessor::setConnected().
void tuttle::host::attribute::ClipImage::setUnmappedFrameRange | ( | const double | unmappedStartFrame, |
const double | unmappedEndFrame | ||
) |
Unmapped Frame Range - The unmaped frame range over which an output clip has images.
Definition at line 153 of file ClipImage.cpp.
References tuttle::host::ofx::attribute::OfxhAttribute::getEditableProperties(), and kOfxImageEffectPropUnmappedFrameRange.
friend class INode [friend] |
Definition at line 26 of file ClipImage.hpp.
const ClipImage* tuttle::host::attribute::ClipImage::_connectedClip [protected] |
Definition at line 34 of file ClipImage.hpp.
Referenced by ClipImage(), fetchRegionOfDefinition(), getConnectedClip(), getConnectedClipFullName(), setConnectedClip(), and setUnconnected().
bool tuttle::host::attribute::ClipImage::_continuousSamples [protected] |
Definition at line 31 of file ClipImage.hpp.
Referenced by ClipImage().
bool tuttle::host::attribute::ClipImage::_isConnected [protected] |
Definition at line 30 of file ClipImage.hpp.
Referenced by ClipImage().
Definition at line 32 of file ClipImage.hpp.
Referenced by getImage().
std::string tuttle::host::attribute::ClipImage::_name [protected] |
Definition at line 29 of file ClipImage.hpp.
Referenced by ClipImage().