#include <render_settings_impl.h>
Public Member Functions | |
PluginRenderSettingsImpl (void) | |
PluginRenderSettingsImpl (const PluginRenderSettingsImpl &ref) | |
~PluginRenderSettingsImpl (void) | |
float | zoom () const |
PluginRotationDegree | rotation () const |
Static Public Member Functions | |
static PluginRenderSettingsImpl * | query_instance (IPluginUnknown *thiz) |
Data Fields | |
Signal < PluginRenderSettingsImpl * > | release_signal |
Definition at line 40 of file images/plugin_impl/render_settings_impl.h.
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 }
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 }
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 }
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 }
PluginRotationDegree images::PluginRenderSettingsImpl::rotation | ( | ) | const [inline] |
Definition at line 52 of file images/plugin_impl/render_settings_impl.h.
float images::PluginRenderSettingsImpl::zoom | ( | ) | const [inline] |
Definition at line 51 of file images/plugin_impl/render_settings_impl.h.
Definition at line 57 of file images/plugin_impl/render_settings_impl.h.