Public Member Functions | Static Public Member Functions | Private Attributes

GR_Transform Class Reference

#include <gr_Transform.h>

List of all members.

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_Transformoperator= (const GR_Transform &op2)
GR_Transform operator+ (const GR_Transform &op2) const
GR_Transformoperator+= (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

Constructor & Destructor Documentation

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


Member Function Documentation

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

Affine multiply operation

References GR_Transform(), m_A, m_B, m_C, m_D, m_E, and m_F.

GR_Transform & GR_Transform::operator+= ( const GR_Transform op2  ) 

Affine multiply operation

GR_Transform & GR_Transform::operator= ( const GR_Transform op2  ) 

Assignment operator

References m_A, m_B, m_C, m_D, m_E, and m_F.

bool GR_Transform::operator== ( const GR_Transform op2  )  const

Equality test

References m_A, m_B, m_C, m_D, m_E, and m_F.

GR_Transform GR_Transform::rotate ( double  theta  )  [static]

Static rotate constructor

Parameters:
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

Parameters:
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]

Static translate constructor

Parameters:
x,: X offset
y,: Y offset

References GR_Transform().


Member Data Documentation

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==().


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