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