#include <affinetrans.h>
Public Member Functions | |
AffineTrans (double scale=1.0) | |
AffineTrans (const double aff[6]) | |
AffineTrans (const AffineTrans &src) | |
AffineTrans & | operator= (const AffineTrans &src) |
~AffineTrans () | |
double & | operator[] (unsigned int idx) |
const double & | operator[] (unsigned int idx) const |
double * | gobj () |
const double * | gobj () const |
Point | apply_to (const Point &p) const |
Point | operator* (const Point &p) const |
AffineTrans | operator* (const AffineTrans &aff2) |
AffineTrans const & | operator*= (AffineTrans &other) |
bool | operator== (const AffineTrans &other) const |
bool | operator!= (const AffineTrans &other) const |
void | invert () |
void | flip (bool horiz, bool vert) |
bool | rectilinear () const |
double | expansion () const |
Glib::ustring | to_string () const |
Static Public Member Functions | |
static AffineTrans | identity () |
static AffineTrans | scaling (double s) |
static AffineTrans | scaling (double sx, double sy) |
static AffineTrans | rotation (double theta) |
static AffineTrans | shearing (double theta) |
static AffineTrans | translation (double dx, double dy) |
static AffineTrans | translation (const Point &p) |
Protected Attributes | |
double | trans_ [6] |
Gnome::Art::AffineTrans::AffineTrans | ( | double | scale = 1.0 |
) |
Gnome::Art::AffineTrans::AffineTrans | ( | const double | aff[6] | ) | [explicit] |
Gnome::Art::AffineTrans::AffineTrans | ( | const AffineTrans & | src | ) |
Gnome::Art::AffineTrans::~AffineTrans | ( | ) |
double Gnome::Art::AffineTrans::expansion | ( | ) | const |
void Gnome::Art::AffineTrans::flip | ( | bool | horiz, | |
bool | vert | |||
) |
const double* Gnome::Art::AffineTrans::gobj | ( | ) | const |
double* Gnome::Art::AffineTrans::gobj | ( | ) |
static AffineTrans Gnome::Art::AffineTrans::identity | ( | ) | [static] |
void Gnome::Art::AffineTrans::invert | ( | ) |
bool Gnome::Art::AffineTrans::operator!= | ( | const AffineTrans & | other | ) | const |
AffineTrans Gnome::Art::AffineTrans::operator* | ( | const AffineTrans & | aff2 | ) |
AffineTrans const& Gnome::Art::AffineTrans::operator*= | ( | AffineTrans & | other | ) |
AffineTrans& Gnome::Art::AffineTrans::operator= | ( | const AffineTrans & | src | ) |
bool Gnome::Art::AffineTrans::operator== | ( | const AffineTrans & | other | ) | const |
const double& Gnome::Art::AffineTrans::operator[] | ( | unsigned int | idx | ) | const |
double& Gnome::Art::AffineTrans::operator[] | ( | unsigned int | idx | ) |
bool Gnome::Art::AffineTrans::rectilinear | ( | ) | const |
static AffineTrans Gnome::Art::AffineTrans::rotation | ( | double | theta | ) | [static] |
static AffineTrans Gnome::Art::AffineTrans::scaling | ( | double | sx, | |
double | sy | |||
) | [static] |
static AffineTrans Gnome::Art::AffineTrans::scaling | ( | double | s | ) | [static] |
static AffineTrans Gnome::Art::AffineTrans::shearing | ( | double | theta | ) | [static] |
Glib::ustring Gnome::Art::AffineTrans::to_string | ( | ) | const |
static AffineTrans Gnome::Art::AffineTrans::translation | ( | const Point & | p | ) | [static] |
static AffineTrans Gnome::Art::AffineTrans::translation | ( | double | dx, | |
double | dy | |||
) | [static] |
double Gnome::Art::AffineTrans::trans_[6] [protected] |