TuttleOFX  1
tuttle::host::ofx::attribute::OfxhClipImageSet Class Reference

#include <OfxhClipImageSet.hpp>

Inheritance diagram for tuttle::host::ofx::attribute::OfxhClipImageSet:
Collaboration diagram for tuttle::host::ofx::attribute::OfxhClipImageSet:

Public Types

typedef OfxhClipImageSet This
typedef std::map< std::string,
OfxhClipImage * > 
ClipImageMap
typedef boost::ptr_vector
< OfxhClipImage
ClipImageVector

Public Member Functions

 OfxhClipImageSet ()
 OfxhClipImageSet (const OfxhClipImageSet &other)
virtual ~OfxhClipImageSet ()=0
bool operator== (const This &other) const
bool operator!= (const This &other) const
void copyClipsValues (const OfxhClipImageSet &other)
void populateClips (const imageEffect::OfxhImageEffectNodeDescriptor &descriptor) OFX_EXCEPTION_SPEC
const ClipImageMapgetClipsByName () const
ClipImageMapgetClipsByName ()
const ClipImageVectorgetClipsByOrder () const
ClipImageVectorgetClipsByOrder ()
OfxhClipImagegetClip (const std::string &name, const bool acceptPartialName=false)
const OfxhClipImagegetClip (const std::string &name, const bool acceptPartialName=false) const
const OfxhClipImagegetClipPtr (const std::string &name, const bool acceptPartialName=false) const
OfxhClipImagegetClipPtr (const std::string &name, const bool acceptPartialName=false)
void addClip (const std::string &name, OfxhClipImage *instance) OFX_EXCEPTION_SPEC
virtual OfxhClipImagenewClipImage (const OfxhClipImageDescriptor &descriptor)=0
OfxhClipImagegetNthClip (int index)
int getNbClips () const
bool areClipPrefsDirty () const

Protected Attributes

ClipImageVector _clipsByOrder
 clips list (data owner)
ClipImageMap _clipImages
 clips by name (link to datas)
bool _clipPrefsDirty
 do we need to re-run the clip prefs action

Private Member Functions

void initMapFromList ()

Detailed Description

Definition at line 20 of file OfxhClipImageSet.hpp.


Member Typedef Documentation

Definition at line 26 of file OfxhClipImageSet.hpp.


Constructor & Destructor Documentation

tuttle::host::ofx::attribute::OfxhClipImageSet::OfxhClipImageSet ( ) [explicit]

The propery set being passed in belongs to the owning plugin instance.

Definition at line 13 of file OfxhClipImageSet.cpp.

tuttle::host::ofx::attribute::OfxhClipImageSet::OfxhClipImageSet ( const OfxhClipImageSet other) [explicit]

Definition at line 17 of file OfxhClipImageSet.cpp.

References initMapFromList().

Here is the call graph for this function:

tuttle::host::ofx::attribute::OfxhClipImageSet::~OfxhClipImageSet ( ) [pure virtual]

Definition at line 34 of file OfxhClipImageSet.cpp.


Member Function Documentation

void tuttle::host::ofx::attribute::OfxhClipImageSet::addClip ( const std::string &  name,
OfxhClipImage instance 
) [inline]

add a clip

Definition at line 89 of file OfxhClipImageSet.hpp.

References _clipImages, and _clipsByOrder.

bool tuttle::host::ofx::attribute::OfxhClipImageSet::areClipPrefsDirty ( ) const [inline]

are the clip preferences currently dirty

Definition at line 124 of file OfxhClipImageSet.hpp.

References _clipPrefsDirty.

Referenced by tuttle::host::ofx::imageEffect::OfxhImageEffectNode::runGetClipPrefsConditionally().

void tuttle::host::ofx::attribute::OfxhClipImageSet::copyClipsValues ( const OfxhClipImageSet other)
OfxhClipImage & tuttle::host::ofx::attribute::OfxhClipImageSet::getClip ( const std::string &  name,
const bool  acceptPartialName = false 
)
const OfxhClipImage& tuttle::host::ofx::attribute::OfxhClipImageSet::getClip ( const std::string &  name,
const bool  acceptPartialName = false 
) const [inline]

Reimplemented in tuttle::host::ImageEffectNode.

Definition at line 75 of file OfxhClipImageSet.hpp.

References getClip().

Here is the call graph for this function:

const OfxhClipImage * tuttle::host::ofx::attribute::OfxhClipImageSet::getClipPtr ( const std::string &  name,
const bool  acceptPartialName = false 
) const

Definition at line 142 of file OfxhClipImageSet.cpp.

References getClip().

Here is the call graph for this function:

OfxhClipImage * tuttle::host::ofx::attribute::OfxhClipImageSet::getClipPtr ( const std::string &  name,
const bool  acceptPartialName = false 
)

Definition at line 130 of file OfxhClipImageSet.cpp.

References getClip().

Here is the call graph for this function:

const ClipImageMap& tuttle::host::ofx::attribute::OfxhClipImageSet::getClipsByName ( ) const [inline]

Definition at line 50 of file OfxhClipImageSet.hpp.

References _clipImages.

Referenced by tuttle::host::ImageEffectNode::getSingleInputAttribute().

ClipImageMap& tuttle::host::ofx::attribute::OfxhClipImageSet::getClipsByName ( ) [inline]

Definition at line 55 of file OfxhClipImageSet.hpp.

References _clipImages.

const ClipImageVector& tuttle::host::ofx::attribute::OfxhClipImageSet::getClipsByOrder ( ) const [inline]
ClipImageVector& tuttle::host::ofx::attribute::OfxhClipImageSet::getClipsByOrder ( ) [inline]

Definition at line 65 of file OfxhClipImageSet.hpp.

References _clipsByOrder.

int tuttle::host::ofx::attribute::OfxhClipImageSet::getNbClips ( ) const [inline]

get the number of clips

Definition at line 116 of file OfxhClipImageSet.hpp.

References _clipImages.

Referenced by tuttle::host::ImageEffectNode::initInputClipsPixelAspectRatio().

OfxhClipImage& tuttle::host::ofx::attribute::OfxhClipImageSet::getNthClip ( int  index) [inline]

get the nth clip, in order of declaration

Definition at line 108 of file OfxhClipImageSet.hpp.

References _clipsByOrder.

void tuttle::host::ofx::attribute::OfxhClipImageSet::initMapFromList ( ) [private]

Definition at line 24 of file OfxhClipImageSet.cpp.

References _clipImages, and _clipsByOrder.

Referenced by OfxhClipImageSet().

virtual OfxhClipImage* tuttle::host::ofx::attribute::OfxhClipImageSet::newClipImage ( const OfxhClipImageDescriptor descriptor) [pure virtual]

make a clip instance

Client host code needs to implement this

Implemented in tuttle::host::ImageEffectNode.

bool tuttle::host::ofx::attribute::OfxhClipImageSet::operator!= ( const This other) const [inline]

Reimplemented in tuttle::host::ofx::imageEffect::OfxhImageEffectNode.

Definition at line 44 of file OfxhClipImageSet.hpp.

References operator==().

Here is the call graph for this function:

bool tuttle::host::ofx::attribute::OfxhClipImageSet::operator== ( const This other) const

Reimplemented in tuttle::host::ofx::imageEffect::OfxhImageEffectNode.

Definition at line 37 of file OfxhClipImageSet.cpp.

References _clipsByOrder.

Referenced by operator!=().

void tuttle::host::ofx::attribute::OfxhClipImageSet::populateClips ( const imageEffect::OfxhImageEffectNodeDescriptor descriptor)
Todo:
tuttle don't manipulate clip here, delegate to ClipInstanceSet

Definition at line 66 of file OfxhClipImageSet.cpp.

Referenced by tuttle::host::ofx::imageEffect::OfxhImageEffectNode::populate().


Field Documentation


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