#include <gr_Transform.h>
Public Member Functions | |
GR_Transform () | |
GR_Transform (double a, double b, double c, double d, double e, double f) | |
GR_Transform (const GR_Transform &op2) | |
double | getA () const |
double | getB () const |
double | getC () const |
double | getD () const |
double | getE () const |
double | getF () const |
bool | operator== (const GR_Transform &op2) const |
bool | operator!= (const GR_Transform &op2) const |
GR_Transform & | operator= (const GR_Transform &op2) |
GR_Transform | operator+ (const GR_Transform &op2) const |
GR_Transform & | operator+= (const GR_Transform &op2) |
Static Public Member Functions | |
static GR_Transform | scale (double x, double y) |
static GR_Transform | linearScale (double p) |
static GR_Transform | rotate (double theta) |
static GR_Transform | translate (double x, double y) |
Private Attributes | |
double | m_A |
double | m_B |
double | m_C |
double | m_D |
double | m_E |
double | m_F |
GR_Transform::GR_Transform | ( | ) |
Creates a new identity transform
Referenced by operator+(), rotate(), scale(), and translate().
GR_Transform::GR_Transform | ( | double | a, | |
double | b, | |||
double | c, | |||
double | d, | |||
double | e, | |||
double | f | |||
) |
Create a new transform from these 6 entries
GR_Transform::GR_Transform | ( | const GR_Transform & | op2 | ) |
Copy constructor
double GR_Transform::getA | ( | ) | const [inline] |
double GR_Transform::getB | ( | ) | const [inline] |
double GR_Transform::getC | ( | ) | const [inline] |
double GR_Transform::getD | ( | ) | const [inline] |
double GR_Transform::getE | ( | ) | const [inline] |
double GR_Transform::getF | ( | ) | const [inline] |
static GR_Transform GR_Transform::linearScale | ( | double | p | ) | [inline, static] |
bool GR_Transform::operator!= | ( | const GR_Transform & | op2 | ) | const |
Test for non-equality
GR_Transform GR_Transform::operator+ | ( | const GR_Transform & | op2 | ) | const |
GR_Transform & GR_Transform::operator+= | ( | const GR_Transform & | op2 | ) |
Affine multiply operation
GR_Transform & GR_Transform::operator= | ( | const GR_Transform & | op2 | ) |
bool GR_Transform::operator== | ( | const GR_Transform & | op2 | ) | const |
GR_Transform GR_Transform::rotate | ( | double | theta | ) | [static] |
Static rotate constructor
theta,: | Rotation angle in degrees |
References GR_Transform(), M_PI, and s.
GR_Transform GR_Transform::scale | ( | double | x, | |
double | y | |||
) | [static] |
Static scale constructor
x,: | X scale factor (1.0 == 100%, 2.0 == 200%) | |
y,: | Y scale factor (1.0 == 100%, 2.0 == 200%) |
References GR_Transform().
GR_Transform GR_Transform::translate | ( | double | x, | |
double | y | |||
) | [static] |
double GR_Transform::m_A [private] |
Referenced by operator+(), operator=(), and operator==().
double GR_Transform::m_B [private] |
Referenced by operator+(), operator=(), and operator==().
double GR_Transform::m_C [private] |
Referenced by operator+(), operator=(), and operator==().
double GR_Transform::m_D [private] |
Referenced by operator+(), operator=(), and operator==().
double GR_Transform::m_E [private] |
Referenced by operator+(), operator=(), and operator==().
double GR_Transform::m_F [private] |
Referenced by operator+(), operator=(), and operator==().