00001 /* === S Y N F I G ========================================================= */ 00021 /* ========================================================================= */ 00022 00023 /* === S T A R T =========================================================== */ 00024 00025 #ifndef __SYNFIG_ZOOM_H 00026 #define __SYNFIG_ZOOM_H 00027 00028 /* === H E A D E R S ======================================================= */ 00029 00030 #include <synfig/layer.h> 00031 #include <synfig/vector.h> 00032 00033 /* === M A C R O S ========================================================= */ 00034 00035 /* === T Y P E D E F S ===================================================== */ 00036 00037 /* === C L A S S E S & S T R U C T S ======================================= */ 00038 00039 using namespace synfig; 00040 using namespace std; 00041 using namespace etl; 00042 00043 class Zoom_Trans; 00044 00045 class Zoom : public Layer 00046 { 00047 SYNFIG_LAYER_MODULE_EXT 00048 friend class Zoom_Trans; 00049 private: 00050 Vector center; 00051 Real amount; 00052 public: 00053 Zoom(); 00054 00055 virtual bool set_param(const String & param, const synfig::ValueBase &value); 00056 virtual ValueBase get_param(const String & param)const; 00057 virtual Color get_color(Context context, const Point &pos)const; 00058 virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const; 00059 synfig::Layer::Handle hit_check(synfig::Context context, const synfig::Point &point)const; 00060 virtual Vocab get_param_vocab()const; 00061 virtual synfig::Rect get_full_bounding_rect(synfig::Context context)const; 00062 virtual etl::handle<synfig::Transform> get_transform()const; 00063 00064 }; 00065 00066 /* === E N D =============================================================== */ 00067 00068 #endif