TuttleOFX  1
TuttleOFX/libraries/tuttle/src/tuttle/common/ofx/utilities.hpp File Reference
#include <tuttle/common/utils/global.hpp>
#include <ofxCore.h>
#include <ofxImageEffect.h>
#include <boost/numeric/conversion/cast.hpp>
#include <string>
#include <vector>
Include dependency graph for utilities.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  tuttle
 

global namespace of the project


namespace  tuttle::ofx

Typedefs

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

Functions

void tuttle::ofx::setStringVecValue (StringVec &sv, const std::string &value, size_t index=0)
template<class T >
tuttle::ofx::minimum (const T &a, const T &b)
 get the min value
template<class T >
tuttle::ofx::maximum (const T &a, const T &b)
 get the max value
template<class T >
tuttle::ofx::clamp (const T &v, const T &min, const T &max)
 clamp the value
OfxRectD tuttle::ofx::clamp (const OfxRectD &v, const OfxRectD &bounds)
 clamp the rect in v to the given bounds
OfxRectI tuttle::ofx::clamp (const OfxRectI &v, const OfxRectI &bounds)
 clamp the rect in v to the given bounds
OfxRectD tuttle::ofx::rectUnion (const OfxRectD &a, const OfxRectD &b)
 get the union of the two rects
bool tuttle::ofx::isEmpty (const OfxRectD &r)
bool tuttle::ofx::isEmpty (const OfxRectI &r)
OfxRectD tuttle::ofx::infiniteRectD ()
 create an infinite rectangle
OfxRectI tuttle::ofx::rectDToRectI (const OfxRectD &rectD)
 Convert OfxRectD to OfxRectI.