images::PluginRenderResultImpl Class Reference

#include <render_result_impl.h>

Inheritance diagram for images::PluginRenderResultImpl:
Inheritance graph
[legend]
Collaboration diagram for images::PluginRenderResultImpl:
Collaboration graph
[legend]

Public Member Functions

 PluginRenderResultImpl (void)
 ~PluginRenderResultImpl (void)
void set_page (ImagePage *p)

Data Fields

Signal< PluginRenderResultImpl * > release_signal

Detailed Description

Definition at line 42 of file images/plugin_impl/render_result_impl.h.


Constructor & Destructor Documentation

images::PluginRenderResultImpl::PluginRenderResultImpl ( void   ) 

Definition at line 37 of file images/plugin_impl/render_result_impl.cpp.

References utils::ObjectTable< T >::add_interface(), IPluginRenderResult::get_anchor_from_coordinates, IPluginRenderResult::get_bitmap_attributes, IPluginRenderResult::get_bounding_rectangles_from_range, IPluginRenderResult::get_rendered_range, IPluginRotation::get_rotation, IPluginZoom::get_zoom_factor, LOGPRINTF, _IPluginUnknown::query_interface, _IPluginUnknown::release, IPluginRotation::set_rotation, and IPluginZoom::set_zoom_factor.

00038 : page(0)        
00039 {   
00040     LOGPRINTF("entry");
00041     
00042     // IPluginUnknown
00043     query_interface = query_interface_impl;
00044     release = release_impl;
00045 
00046     // IPluginRenderResult
00047     get_bitmap_attributes = get_bitmap_attributes_impl;
00048     get_anchor_from_coordinates = get_anchor_from_coordinates_impl;
00049     get_bounding_rectangles_from_range = get_bounding_rectangles_from_range_impl;
00050     get_rendered_range = get_rendered_range_impl;
00051 
00052     // IPluginRenderSettings, no method yet.
00053 
00054 
00055     // IPluginZoom
00056     set_zoom_factor = set_zoom_factor_impl;
00057     get_zoom_factor = get_zoom_factor_impl;
00058 
00059     // IPluginRotation
00060     set_rotation = set_rotation_impl;
00061     get_rotation = get_rotation_impl;
00062 
00063     // Initialize all supported interfaces. In render result, 
00064     // the render settings, zoom and rotation are read only.
00065     g_instances_table.add_interface<IPluginUnknown>(this);
00066     g_instances_table.add_interface<IPluginRenderResult>(this);
00067     g_instances_table.add_interface<IPluginRenderSettings>(this);
00068     g_instances_table.add_interface<IPluginZoom>(this);
00069     g_instances_table.add_interface<IPluginRotation>(this);
00070 }

Here is the call graph for this function:

images::PluginRenderResultImpl::~PluginRenderResultImpl ( void   ) 

Definition at line 72 of file images/plugin_impl/render_result_impl.cpp.

References LOGPRINTF, utils::ObjectTable< T >::remove(), and images::ImagePage::set_in_use_flag().

00073 {
00074     LOGPRINTF("entry");
00075     
00076     if (page)
00077     {
00078         page->set_in_use_flag(false);
00079     }
00080     g_instances_table.remove(this);
00081 }

Here is the call graph for this function:


Member Function Documentation

void images::PluginRenderResultImpl::set_page ( ImagePage p  ) 

Definition at line 83 of file images/plugin_impl/render_result_impl.cpp.

References LOGPRINTF, and images::ImagePage::set_in_use_flag().

00084 {    
00085     LOGPRINTF("entry %p", p);
00086 
00087     page = p;
00088     if (page)
00089     {
00090         page->set_in_use_flag(true);
00091     }
00092 }

Here is the call graph for this function:


Field Documentation

Definition at line 56 of file images/plugin_impl/render_result_impl.h.


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208