papyrus logo

Papyrus::Rotator Class Reference

#include <rotator.h>

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

List of all members.

Public Types

typedef PapyrusPointer< Rotatorpointer

Public Member Functions

virtual ~Rotator ()

Static Public Member Functions

static Rotator::pointer create (double radian_interval=0.0)
static Rotator::pointer create (const Glib::ustring &id, DrawableSet::pointer drawables, double radian_interval=0.0)
static Rotator::pointer create (const Glib::ustring &id, double radian_interval=0.0)
static Rotator::pointer create (DrawableSet::pointer drawables, double radian_interval=0.0)

Protected Member Functions

 Rotator (const Glib::ustring &id, DrawableSet::pointer drawables, double radian_interval=0.0)
virtual bool on_motion (const Event::Motion &event)
virtual bool on_button_press (const Event::ButtonPress &event)

Protected Attributes

double m_original_position [2]
double m_last_position [2]
double m_centroid [2]
double m_radian_interval
double m_last_angle

Detailed Description

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

Member Typedef Documentation

typedef PapyrusPointer<Rotator> Papyrus::Rotator::pointer

Reimplemented from Papyrus::AffineController.


Constructor & Destructor Documentation

Papyrus::Rotator::Rotator ( const Glib::ustring &  id,
DrawableSet::pointer  drawables,
double  radian_interval = 0.0 
) [protected]
Papyrus::Rotator::~Rotator (  )  [virtual]

Member Function Documentation

Rotator::pointer Papyrus::Rotator::create ( DrawableSet::pointer  drawables,
double  radian_interval = 0.0 
) [static]

References PAPYRUS_CREATE.

Rotator::pointer Papyrus::Rotator::create ( const Glib::ustring &  id,
double  radian_interval = 0.0 
) [static]

References PAPYRUS_CREATE.

Rotator::pointer Papyrus::Rotator::create ( const Glib::ustring &  id,
DrawableSet::pointer  drawables,
double  radian_interval = 0.0 
) [static]

References PAPYRUS_CREATE.

Rotator::pointer Papyrus::Rotator::create ( double  radian_interval = 0.0  )  [static]

References PAPYRUS_CREATE.

bool Papyrus::Rotator::on_button_press ( const Event::ButtonPress event  )  [protected, virtual]
bool Papyrus::Rotator::on_motion ( const Event::Motion event  )  [protected, virtual]

Member Data Documentation

double Papyrus::Rotator::m_centroid[2] [protected]

Referenced by on_button_press(), on_motion(), and Rotator().

double Papyrus::Rotator::m_last_angle [protected]

Referenced by on_button_press(), and on_motion().

double Papyrus::Rotator::m_last_position[2] [protected]

Referenced by on_button_press().

Referenced by on_button_press(), and Rotator().


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

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