papyrus logo

Papyrus::AffineAnimator Class Reference

#include <affineanimator.h>

Inheritance diagram for Papyrus::AffineAnimator:
Inheritance graph
[legend]

List of all members.

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 Drawablesdrawables ()
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

Detailed Description

Author:
Rick L Vinyard Jr <rvinyard@cs.nmsu.edu>

Member Typedef Documentation

Class level typedef to container for items to transform.

Class level smart pointer typedef.

Reimplemented from Papyrus::Animator.


Constructor & Destructor Documentation

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]

Member Function Documentation

void Papyrus::AffineAnimator::add ( Drawable::pointer  d  ) 

References m_drawables.

int Papyrus::AffineAnimator::animate ( int  n = 1  )  [protected, virtual]
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 
)

References m_scalex, and m_scaley.

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 
)

References m_skewx, and m_skewy.

double Papyrus::AffineAnimator::get_skew_x (  ) 

References m_skewx.

double Papyrus::AffineAnimator::get_skew_y (  ) 

References m_skewy.

void Papyrus::AffineAnimator::get_translate ( double &  tx,
double &  ty 
)

References m_tx, and m_ty.

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  ) 
void Papyrus::AffineAnimator::set_scale ( double  scale_x,
double  scale_y 
)
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 
)

References m_skewx, and m_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 ( double  tx,
double  ty 
)

References m_tx, and m_ty.

void Papyrus::AffineAnimator::set_translate_x ( double  tx  ) 

References m_tx.

void Papyrus::AffineAnimator::set_translate_y ( double  ty  ) 

References m_ty.


Member Data Documentation

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_tx [protected]
double Papyrus::AffineAnimator::m_ty [protected]

The documentation for this class was generated from the following files:

Generated on Fri Apr 16 12:41:05 2010 for papyrus by doxygen 1.6.1