#include <affineanimator.h>
Public Types | |
typedef std::set < Drawable::pointer > | Drawables |
Class level typedef to container for items to transform. | |
typedef PapyrusPointer < AffineAnimator > | pointer |
Class level smart pointer typedef. | |
Public Member Functions | |
virtual | ~AffineAnimator () |
void | add (Drawable::pointer d) |
void | remove (Drawable::pointer d) |
const Drawables & | drawables () |
double | get_translate_x () |
double | get_translate_y () |
void | get_translate (double &tx, double &ty) |
void | set_translate_x (double tx) |
void | set_translate_y (double ty) |
void | set_translate (double tx, double ty) |
double | get_scale_x () |
double | get_scale_y () |
void | get_scale (double &sx, double &sy) |
void | set_scale_x (double sx) |
void | set_scale_y (double sy) |
void | set_scale (double scale_x, double scale_y) |
void | set_scale (double s) |
double | get_rotate () |
void | set_rotate (double r) |
double | get_skew_x () |
void | set_skew_x (double skewx) |
double | get_skew_y () |
void | set_skew_y (double skewy) |
void | get_skew (double &skewx, double &skewy) |
void | set_skew (double skewx, double skewy) |
Static Public Member Functions | |
static AffineAnimator::pointer | create (const Glib::ustring &id=Glib::ustring(), double tx=0.0, double ty=0.0, double scalex=1.0, double scaley=1.0, double rotation=0.0, double skewx=0.0, double skewy=0.0) |
static AffineAnimator::pointer | create (double tx, double ty, double scalex=1.0, double scaley=1.0, double rotation=0.0, double skewx=0.0, double skewy=0.0) |
Protected Member Functions | |
AffineAnimator (const Glib::ustring &id, double tx=0.0, double ty=0.0, double scalex=1.0, double scaley=1.0, double rotation=0.0, double skewx=0.0, double skewy=0.0) | |
virtual int | animate (int n=1) |
Protected Attributes | |
double | m_tx |
double | m_ty |
double | m_scalex |
double | m_scaley |
double | m_r |
double | m_skewx |
double | m_skewy |
double | m_revscalex |
double | m_revscaley |
Drawables | m_drawables |
typedef std::set<Drawable::pointer> Papyrus::AffineAnimator::Drawables |
Class level typedef to container for items to transform.
typedef PapyrusPointer<AffineAnimator> Papyrus::AffineAnimator::pointer |
Class level smart pointer typedef.
Reimplemented from Papyrus::Animator.
Papyrus::AffineAnimator::AffineAnimator | ( | const Glib::ustring & | id, | |
double | tx = 0.0 , |
|||
double | ty = 0.0 , |
|||
double | scalex = 1.0 , |
|||
double | scaley = 1.0 , |
|||
double | rotation = 0.0 , |
|||
double | skewx = 0.0 , |
|||
double | skewy = 0.0 | |||
) | [protected] |
References m_revscalex, and m_revscaley.
Papyrus::AffineAnimator::~AffineAnimator | ( | ) | [virtual] |
void Papyrus::AffineAnimator::add | ( | Drawable::pointer | d | ) |
References m_drawables.
int Papyrus::AffineAnimator::animate | ( | int | n = 1 |
) | [protected, virtual] |
Implements Papyrus::Animator.
References m_drawables, m_r, m_revscalex, m_revscaley, m_scalex, m_scaley, m_skewx, m_skewy, m_tx, and m_ty.
AffineAnimator::pointer Papyrus::AffineAnimator::create | ( | double | tx, | |
double | ty, | |||
double | scalex = 1.0 , |
|||
double | scaley = 1.0 , |
|||
double | rotation = 0.0 , |
|||
double | skewx = 0.0 , |
|||
double | skewy = 0.0 | |||
) | [static] |
AffineAnimator::pointer Papyrus::AffineAnimator::create | ( | const Glib::ustring & | id = Glib::ustring() , |
|
double | tx = 0.0 , |
|||
double | ty = 0.0 , |
|||
double | scalex = 1.0 , |
|||
double | scaley = 1.0 , |
|||
double | rotation = 0.0 , |
|||
double | skewx = 0.0 , |
|||
double | skewy = 0.0 | |||
) | [static] |
const AffineAnimator::Drawables & Papyrus::AffineAnimator::drawables | ( | ) |
References m_drawables.
double Papyrus::AffineAnimator::get_rotate | ( | ) |
References m_r.
void Papyrus::AffineAnimator::get_scale | ( | double & | sx, | |
double & | sy | |||
) |
double Papyrus::AffineAnimator::get_scale_x | ( | ) |
References m_scalex.
double Papyrus::AffineAnimator::get_scale_y | ( | ) |
References m_scaley.
void Papyrus::AffineAnimator::get_skew | ( | double & | skewx, | |
double & | skewy | |||
) |
double Papyrus::AffineAnimator::get_skew_x | ( | ) |
References m_skewx.
double Papyrus::AffineAnimator::get_skew_y | ( | ) |
References m_skewy.
double Papyrus::AffineAnimator::get_translate_x | ( | ) |
References m_tx.
double Papyrus::AffineAnimator::get_translate_y | ( | ) |
References m_ty.
void Papyrus::AffineAnimator::remove | ( | Drawable::pointer | d | ) |
References m_drawables.
void Papyrus::AffineAnimator::set_rotate | ( | double | r | ) |
References m_r.
void Papyrus::AffineAnimator::set_scale | ( | double | s | ) |
References m_revscalex, m_revscaley, m_scalex, and m_scaley.
void Papyrus::AffineAnimator::set_scale | ( | double | scale_x, | |
double | scale_y | |||
) |
References m_revscalex, m_revscaley, m_scalex, and m_scaley.
void Papyrus::AffineAnimator::set_scale_x | ( | double | sx | ) |
References m_revscalex, and m_scalex.
void Papyrus::AffineAnimator::set_scale_y | ( | double | sy | ) |
References m_revscaley, and m_scaley.
void Papyrus::AffineAnimator::set_skew | ( | double | skewx, | |
double | skewy | |||
) |
void Papyrus::AffineAnimator::set_skew_x | ( | double | skewx | ) |
References m_skewx.
void Papyrus::AffineAnimator::set_skew_y | ( | double | skewy | ) |
References m_skewy.
void Papyrus::AffineAnimator::set_translate_x | ( | double | tx | ) |
References m_tx.
void Papyrus::AffineAnimator::set_translate_y | ( | double | ty | ) |
References m_ty.
Drawables Papyrus::AffineAnimator::m_drawables [protected] |
Referenced by add(), animate(), drawables(), and remove().
double Papyrus::AffineAnimator::m_r [protected] |
Referenced by animate(), get_rotate(), and set_rotate().
double Papyrus::AffineAnimator::m_revscalex [protected] |
Referenced by AffineAnimator(), animate(), set_scale(), and set_scale_x().
double Papyrus::AffineAnimator::m_revscaley [protected] |
Referenced by AffineAnimator(), animate(), set_scale(), and set_scale_y().
double Papyrus::AffineAnimator::m_scalex [protected] |
Referenced by animate(), get_scale(), get_scale_x(), set_scale(), and set_scale_x().
double Papyrus::AffineAnimator::m_scaley [protected] |
Referenced by animate(), get_scale(), get_scale_y(), set_scale(), and set_scale_y().
double Papyrus::AffineAnimator::m_skewx [protected] |
Referenced by animate(), get_skew(), get_skew_x(), set_skew(), and set_skew_x().
double Papyrus::AffineAnimator::m_skewy [protected] |
Referenced by animate(), get_skew(), get_skew_y(), set_skew(), and set_skew_y().
double Papyrus::AffineAnimator::m_tx [protected] |
Referenced by animate(), get_translate(), get_translate_x(), set_translate(), and set_translate_x().
double Papyrus::AffineAnimator::m_ty [protected] |
Referenced by animate(), get_translate(), get_translate_y(), set_translate(), and set_translate_y().