|
TuttleOFX
1
|
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 > | |
| T | minimum (const T &a, const T &b) |
| get the min value | |
| template<class T > | |
| T | maximum (const T &a, const T &b) |
| get the max value | |
| template<class T > | |
| 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 std::vector<std::string> tuttle::ofx::StringVec |
class that is a std::vector of std::strings
Definition at line 16 of file utilities.hpp.
| 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().

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.

| std::string tuttle::ofx::mapStatusToString | ( | const OfxStatus | stat | ) |
maps status to a string
Definition at line 10 of file core.cpp.
References kOfxStatErrBadHandle, kOfxStatErrBadIndex, kOfxStatErrExists, kOfxStatErrFatal, kOfxStatErrFormat, kOfxStatErrImageFormat, kOfxStatErrMemory, kOfxStatErrMissingHostFeature, kOfxStatErrUnknown, kOfxStatErrUnsupported, kOfxStatErrValue, kOfxStatFailed, kOfxStatOK, kOfxStatReplyDefault, kOfxStatReplyNo, and kOfxStatReplyYes.
| 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().
| T tuttle::ofx::minimum | ( | const T & | a, |
| const T & | b | ||
| ) | [inline] |
get the union of the two rects
Definition at line 74 of file utilities.hpp.
References maximum(), minimum(), OfxRectD::x1, OfxRectD::x2, OfxRectD::y1, and OfxRectD::y2.
Referenced by tuttle::host::ofx::imageEffect::OfxhImageEffectNode::calcDefaultRegionOfDefinition(), and tuttle::host::ofx::imageEffect::OfxhImageEffectNode::computeClipRodUnionAtTimes().

| void tuttle::ofx::setStringVecValue | ( | StringVec & | sv, |
| const std::string & | value, | ||
| size_t | index = 0 |
||
| ) | [inline] |
Definition at line 18 of file utilities.hpp.