|
TuttleOFX
1
|
Text process. More...
#include <TextProcess.hpp>


Data Structures | |
| struct | glyph_t |
| struct | make_glyph |
Public Types | |
| typedef View::value_type | Pixel |
| typedef terry::rgb8_pixel_t | text_pixel_t |
Public Member Functions | |
| TextProcess (TextPlugin &instance) | |
| void | setup (const OFX::RenderArguments &args) |
| void | multiThreadProcessImages (const OfxRectI &procWindowRoW) |
| Function called by rendering thread each time a process must be done. | |
Protected Attributes | |
| OFX::Clip * | _clipSrc |
| Source image clip. | |
| boost::scoped_ptr< OFX::Image > | _src |
| OfxRectI | _srcPixelRod |
| View | _srcView |
| source clip (filters have only one input) | |
| TextPlugin & | _plugin |
| Rendering plugin. | |
| std::vector< FT_Glyph_Metrics > | _metrics |
| std::vector< int > | _kerning |
| boost::ptr_vector< glyph_t > | _glyphs |
| View | _dstViewForGlyphs |
| boost::gil::point2< int > | _textCorner |
| boost::gil::point2< int > | _textSize |
| Pixel | _foregroundColor |
| TextProcessParams | _params |
| std::string | _text |
Text process.
Definition at line 21 of file TextProcess.hpp.
| typedef View::value_type tuttle::plugin::text::TextProcess< View, Functor >::Pixel |
Reimplemented from tuttle::plugin::ImageGilProcessor< View >.
Definition at line 24 of file TextProcess.hpp.
| typedef terry::rgb8_pixel_t tuttle::plugin::text::TextProcess< View, Functor >::text_pixel_t |
Definition at line 25 of file TextProcess.hpp.
| tuttle::plugin::text::TextProcess< View, Functor >::TextProcess | ( | TextPlugin & | instance | ) |
Definition at line 38 of file TextProcess.tcc.
References tuttle::plugin::text::TextProcess< View, Functor >::_clipSrc, OFX::ImageEffect::fetchClip(), kOfxImageEffectSimpleSourceClipName, and tuttle::plugin::ImageProcessor::setNoMultiThreading().

| void tuttle::plugin::text::TextProcess< View, Functor >::multiThreadProcessImages | ( | const OfxRectI & | procWindowRoW | ) | [virtual] |
Function called by rendering thread each time a process must be done.
| [in] | procWindowRoW | Processing window in RoW |
Implements tuttle::plugin::ImageProcessor.
Definition at line 294 of file TextProcess.tcc.
References tuttle::plugin::merge::fill_pixels(), terry::algorithm::for_each(), terry::merge_views(), tuttle::rectanglesIntersection(), terry::subimage_view(), and tuttle::translateRegion().

| void tuttle::plugin::text::TextProcess< View, Functor >::setup | ( | const OFX::RenderArguments & | args | ) | [virtual] |
Reimplemented from tuttle::plugin::ImageGilProcessor< View >.
Definition at line 48 of file TextProcess.tcc.
References boost::gil::color_convert(), tuttle::plugin::text::eParamHAlignCenter, tuttle::plugin::text::eParamHAlignLeft, tuttle::plugin::text::eParamHAlignRight, tuttle::plugin::text::eParamVAlignBottom, tuttle::plugin::text::eParamVAlignCenter, tuttle::plugin::text::eParamVAlignTop, terry::algorithm::for_each(), OFX::getImageEffectHostDescription(), tuttle::quotes(), OFX::RenderArguments::renderScale, OFX::RenderArguments::renderWindow, OFX::RenderArguments::time, terry::transform(), TUTTLE_LOG_ERROR, OfxPointD::x, OfxRectI::x1, OfxRectD::x1, OfxRectI::x2, OfxRectD::x2, OfxPointD::y, OfxRectI::y1, OfxRectD::y1, OfxRectI::y2, and OfxRectD::y2.

OFX::Clip* tuttle::plugin::text::TextProcess< View, Functor >::_clipSrc [protected] |
Source image clip.
Definition at line 54 of file TextProcess.hpp.
Referenced by tuttle::plugin::text::TextProcess< View, Functor >::TextProcess().
View tuttle::plugin::text::TextProcess< View, Functor >::_dstViewForGlyphs [protected] |
Definition at line 63 of file TextProcess.hpp.
Pixel tuttle::plugin::text::TextProcess< View, Functor >::_foregroundColor [protected] |
Definition at line 66 of file TextProcess.hpp.
boost::ptr_vector<glyph_t> tuttle::plugin::text::TextProcess< View, Functor >::_glyphs [protected] |
Definition at line 62 of file TextProcess.hpp.
std::vector<int> tuttle::plugin::text::TextProcess< View, Functor >::_kerning [protected] |
Definition at line 61 of file TextProcess.hpp.
std::vector<FT_Glyph_Metrics> tuttle::plugin::text::TextProcess< View, Functor >::_metrics [protected] |
Definition at line 60 of file TextProcess.hpp.
TextProcessParams tuttle::plugin::text::TextProcess< View, Functor >::_params [protected] |
Definition at line 67 of file TextProcess.hpp.
TextPlugin& tuttle::plugin::text::TextProcess< View, Functor >::_plugin [protected] |
Rendering plugin.
Definition at line 59 of file TextProcess.hpp.
boost::scoped_ptr<OFX::Image> tuttle::plugin::text::TextProcess< View, Functor >::_src [protected] |
Definition at line 55 of file TextProcess.hpp.
OfxRectI tuttle::plugin::text::TextProcess< View, Functor >::_srcPixelRod [protected] |
Definition at line 56 of file TextProcess.hpp.
View tuttle::plugin::text::TextProcess< View, Functor >::_srcView [protected] |
source clip (filters have only one input)
Definition at line 57 of file TextProcess.hpp.
std::string tuttle::plugin::text::TextProcess< View, Functor >::_text [protected] |
Definition at line 68 of file TextProcess.hpp.
boost::gil::point2<int> tuttle::plugin::text::TextProcess< View, Functor >::_textCorner [protected] |
Definition at line 64 of file TextProcess.hpp.
boost::gil::point2<int> tuttle::plugin::text::TextProcess< View, Functor >::_textSize [protected] |
Definition at line 65 of file TextProcess.hpp.