TuttleOFX  1
tuttle::ofx Namespace Reference

Namespaces

namespace  imageEffect

Typedefs

typedef std::vector< std::string > StringVec
 class that is a std::vector of std::strings

Functions

std::string mapStatusToString (const OfxStatus stat)
 maps status to a string
void setStringVecValue (StringVec &sv, const std::string &value, size_t index=0)
template<class T >
minimum (const T &a, const T &b)
 get the min value
template<class T >
maximum (const T &a, const T &b)
 get the max value
template<class T >
clamp (const T &v, const T &min, const T &max)
 clamp the value
OfxRectD clamp (const OfxRectD &v, const OfxRectD &bounds)
 clamp the rect in v to the given bounds
OfxRectD rectUnion (const OfxRectD &a, const OfxRectD &b)
 get the union of the two rects

Typedef Documentation

typedef std::vector<std::string> tuttle::ofx::StringVec

class that is a std::vector of std::strings

Definition at line 16 of file utilities.hpp.


Function Documentation

template<class T >
T tuttle::ofx::clamp ( const T &  v,
const T &  min,
const T &  max 
) [inline]

clamp the value

Definition at line 51 of file utilities.hpp.

References tuttle::max(), and tuttle::min().

Referenced by clamp().

Here is the call graph for this function:

OfxRectD tuttle::ofx::clamp ( const OfxRectD v,
const OfxRectD bounds 
) [inline]

clamp the rect in v to the given bounds

Definition at line 61 of file utilities.hpp.

References clamp(), OfxRectD::x1, OfxRectD::x2, OfxRectD::y1, and OfxRectD::y2.

Here is the call graph for this function:

template<class T >
T tuttle::ofx::maximum ( const T &  a,
const T &  b 
) [inline]

get the max value

Definition at line 44 of file utilities.hpp.

Referenced by rectUnion(), and tuttle::host::ofx::imageEffect::OfxhImageEffectNode::setDefaultClipPreferences().

template<class T >
T tuttle::ofx::minimum ( const T &  a,
const T &  b 
) [inline]

get the min value

Definition at line 37 of file utilities.hpp.

Referenced by rectUnion().

OfxRectD tuttle::ofx::rectUnion ( const OfxRectD a,
const OfxRectD b 
) [inline]
void tuttle::ofx::setStringVecValue ( StringVec &  sv,
const std::string &  value,
size_t  index = 0 
) [inline]

Definition at line 18 of file utilities.hpp.