images::PluginRenderSettingsImpl Class Reference

#include <render_settings_impl.h>

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

Public Member Functions

 PluginRenderSettingsImpl (void)
 PluginRenderSettingsImpl (const PluginRenderSettingsImpl &ref)
 ~PluginRenderSettingsImpl (void)
float zoom () const
PluginRotationDegree rotation () const

Static Public Member Functions

static PluginRenderSettingsImplquery_instance (IPluginUnknown *thiz)

Data Fields

Signal
< PluginRenderSettingsImpl * > 
release_signal

Detailed Description

Definition at line 40 of file images/plugin_impl/render_settings_impl.h.


Constructor & Destructor Documentation

images::PluginRenderSettingsImpl::PluginRenderSettingsImpl ( void   ) 

Definition at line 35 of file images/plugin_impl/render_settings_impl.cpp.

References utils::ObjectTable< T >::add_interface(), IPluginClone::create_clone_object, IPluginRotation::get_rotation, IPluginZoom::get_zoom_factor, _IPluginUnknown::query_interface, _IPluginUnknown::release, IPluginRotation::set_rotation, and IPluginZoom::set_zoom_factor.

00036 : zoom_(DEFAULT_ZOOM_FACTOR)
00037 , rotation_(DEFAULT_ROTATION)
00038 {
00039     // IPluginUnknown
00040     query_interface = query_interface_impl;
00041     release         = release_impl;
00042 
00043     // IPluginClone
00044     create_clone_object = create_clone_object_impl;
00045     
00046     // IPluginRenderSettings, no method yet.
00047 
00048     // IPluginZoom
00049     set_zoom_factor     = set_zoom_factor_impl;
00050     get_zoom_factor     = get_zoom_factor_impl;
00051 
00052     // IPluginRotation
00053     set_rotation = set_rotation_impl;
00054     get_rotation = get_rotation_impl;
00055 
00056     g_instances_table.add_interface<IPluginUnknown>(this);
00057     g_instances_table.add_interface<IPluginClone>(this);
00058     g_instances_table.add_interface<IPluginRenderSettings>(this);
00059     g_instances_table.add_interface<IPluginZoom>(this);
00060     g_instances_table.add_interface<IPluginRotation>(this);
00061 }

Here is the call graph for this function:

images::PluginRenderSettingsImpl::PluginRenderSettingsImpl ( const PluginRenderSettingsImpl ref  ) 

Definition at line 63 of file images/plugin_impl/render_settings_impl.cpp.

References utils::ObjectTable< T >::add_interface(), IPluginClone::create_clone_object, IPluginRotation::get_rotation, IPluginZoom::get_zoom_factor, _IPluginUnknown::query_interface, _IPluginUnknown::release, IPluginRotation::set_rotation, and IPluginZoom::set_zoom_factor.

00064 : zoom_(ref.zoom_)
00065 , rotation_(ref.rotation_)
00066 {
00067     // IPluginUnknown
00068     query_interface = query_interface_impl;
00069     release         = release_impl;
00070 
00071     // IPluginClone
00072     create_clone_object = create_clone_object_impl;
00073     
00074     // IPluginRenderSettings, no method yet.
00075 
00076     // IPluginZoom
00077     set_zoom_factor     = set_zoom_factor_impl;
00078     get_zoom_factor     = get_zoom_factor_impl;
00079 
00080     // IPluginRotation
00081     set_rotation = set_rotation_impl;
00082     get_rotation = get_rotation_impl;
00083 
00084     g_instances_table.add_interface<IPluginUnknown>(this);
00085     g_instances_table.add_interface<IPluginClone>(this);
00086     g_instances_table.add_interface<IPluginRenderSettings>(this);
00087     g_instances_table.add_interface<IPluginZoom>(this);
00088     g_instances_table.add_interface<IPluginRotation>(this);
00089 }

Here is the call graph for this function:

images::PluginRenderSettingsImpl::~PluginRenderSettingsImpl ( void   ) 

Definition at line 91 of file images/plugin_impl/render_settings_impl.cpp.

References utils::ObjectTable< T >::remove().

00092 {
00093     g_instances_table.remove(this);
00094 }

Here is the call graph for this function:


Member Function Documentation

PluginRenderSettingsImpl * images::PluginRenderSettingsImpl::query_instance ( IPluginUnknown thiz  )  [static]

Definition at line 97 of file images/plugin_impl/render_settings_impl.cpp.

References utils::ObjectTable< T >::get_object().

00098 {
00099     return g_instances_table.get_object(thiz);
00100 }

Here is the call graph for this function:

PluginRotationDegree images::PluginRenderSettingsImpl::rotation (  )  const [inline]

Definition at line 52 of file images/plugin_impl/render_settings_impl.h.

00052 { return rotation_; }

float images::PluginRenderSettingsImpl::zoom (  )  const [inline]

Definition at line 51 of file images/plugin_impl/render_settings_impl.h.

00051 { return zoom_; } //TODO Alexis: check with Yehong whether this must be float or int


Field Documentation

Definition at line 57 of file images/plugin_impl/render_settings_impl.h.


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