TuttleOFX  1
tuttle::plugin::text::TextProcess< View, Functor > Class Template Reference

Text process. More...

#include <TextProcess.hpp>

Inheritance diagram for tuttle::plugin::text::TextProcess< View, Functor >:
Collaboration diagram for tuttle::plugin::text::TextProcess< View, Functor >:

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

Detailed Description

template<class View, class Functor>
class tuttle::plugin::text::TextProcess< View, Functor >

Text process.

Definition at line 21 of file TextProcess.hpp.


Member Typedef Documentation

template<class View, class Functor>
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.

template<class View, class Functor>
typedef terry::rgb8_pixel_t tuttle::plugin::text::TextProcess< View, Functor >::text_pixel_t

Definition at line 25 of file TextProcess.hpp.


Constructor & Destructor Documentation

template<class View , class Functor >
tuttle::plugin::text::TextProcess< View, Functor >::TextProcess ( TextPlugin instance)

Member Function Documentation

template<class View , class Functor >
void tuttle::plugin::text::TextProcess< View, Functor >::multiThreadProcessImages ( const OfxRectI procWindowRoW) [virtual]

Function called by rendering thread each time a process must be done.

Parameters:
[in]procWindowRoWProcessing 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().

Here is the call graph for this function:


Field Documentation

template<class View, class Functor>
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().

template<class View, class Functor>
View tuttle::plugin::text::TextProcess< View, Functor >::_dstViewForGlyphs [protected]

Definition at line 63 of file TextProcess.hpp.

template<class View, class Functor>
Pixel tuttle::plugin::text::TextProcess< View, Functor >::_foregroundColor [protected]

Definition at line 66 of file TextProcess.hpp.

template<class View, class Functor>
boost::ptr_vector<glyph_t> tuttle::plugin::text::TextProcess< View, Functor >::_glyphs [protected]

Definition at line 62 of file TextProcess.hpp.

template<class View, class Functor>
std::vector<int> tuttle::plugin::text::TextProcess< View, Functor >::_kerning [protected]

Definition at line 61 of file TextProcess.hpp.

template<class View, class Functor>
std::vector<FT_Glyph_Metrics> tuttle::plugin::text::TextProcess< View, Functor >::_metrics [protected]

Definition at line 60 of file TextProcess.hpp.

template<class View, class Functor>
TextProcessParams tuttle::plugin::text::TextProcess< View, Functor >::_params [protected]

Definition at line 67 of file TextProcess.hpp.

template<class View, class Functor>
TextPlugin& tuttle::plugin::text::TextProcess< View, Functor >::_plugin [protected]

Rendering plugin.

Definition at line 59 of file TextProcess.hpp.

template<class View, class Functor>
boost::scoped_ptr<OFX::Image> tuttle::plugin::text::TextProcess< View, Functor >::_src [protected]

Definition at line 55 of file TextProcess.hpp.

template<class View, class Functor>
OfxRectI tuttle::plugin::text::TextProcess< View, Functor >::_srcPixelRod [protected]

Definition at line 56 of file TextProcess.hpp.

template<class View, class Functor>
View tuttle::plugin::text::TextProcess< View, Functor >::_srcView [protected]

source clip (filters have only one input)

Definition at line 57 of file TextProcess.hpp.

template<class View, class Functor>
std::string tuttle::plugin::text::TextProcess< View, Functor >::_text [protected]

Definition at line 68 of file TextProcess.hpp.

template<class View, class Functor>
boost::gil::point2<int> tuttle::plugin::text::TextProcess< View, Functor >::_textCorner [protected]

Definition at line 64 of file TextProcess.hpp.

template<class View, class Functor>
boost::gil::point2<int> tuttle::plugin::text::TextProcess< View, Functor >::_textSize [protected]

Definition at line 65 of file TextProcess.hpp.


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