Holds our copy of the current transformation matrix. More...
Public Member Functions | |
| PSState () | |
| ~PSState () | |
| void | scale (const float x, const float y) |
| void | translate (const float x, const float y) |
| void | rotate (const float degrees) |
| void | toPoints (const float xin, const float yin, float &xout, float &yout, const Bool absolute=True) const |
| [ x' y' 1 ] = [ x y 1] * CTM | |
| void | fromPoints (const float xin, const float yin, float &xout, float &yout, const Bool absolute=True) const |
| [ x y 1 ] = [ x' y' 1] * inverse(CTM); | |
| void | setIdentity () |
| void | operator= (const PSState &) |
| void | setXY (const float x, const float y, const Bool userCoords=True) |
| Set/Get the current position. | |
| void | getXY (float &x, float &y, const Bool userCoords=True) |
Private Member Functions | |
| void | invert () |
Private Attributes | |
| double | a_ |
| double | b_ |
| double | c_ |
| double | d_ |
| double | tx_ |
| double | ty_ |
| double | ai_ |
| double | bi_ |
| double | ci_ |
| double | di_ |
| double | txi_ |
| double | tyi_ |
| float | currX_ |
| float | currY_ |
Holds our copy of the current transformation matrix.
Used for bounding box computations.
Definition at line 716 of file PSDriver.h.
| casa::PSDriver::PSState::PSState | ( | ) |
| casa::PSDriver::PSState::~PSState | ( | ) |
| void casa::PSDriver::PSState::fromPoints | ( | const float | xin, | |
| const float | yin, | |||
| float & | xout, | |||
| float & | yout, | |||
| const Bool | absolute = True | |||
| ) | const [inline] |
[ x y 1 ] = [ x' y' 1] * inverse(CTM);
Definition at line 736 of file PSDriver.h.
References ai_, bi_, ci_, di_, txi_, and tyi_.
Referenced by casa::PSDriver::fromPoints().
| void casa::PSDriver::PSState::getXY | ( | float & | x, | |
| float & | y, | |||
| const Bool | userCoords = True | |||
| ) |
Referenced by casa::PSDriver::getCurrXY().
| void casa::PSDriver::PSState::invert | ( | ) | [private] |
| void casa::PSDriver::PSState::operator= | ( | const PSState & | ) |
| void casa::PSDriver::PSState::rotate | ( | const float | degrees | ) |
| void casa::PSDriver::PSState::scale | ( | const float | x, | |
| const float | y | |||
| ) |
| void casa::PSDriver::PSState::setIdentity | ( | ) |
| void casa::PSDriver::PSState::setXY | ( | const float | x, | |
| const float | y, | |||
| const Bool | userCoords = True | |||
| ) |
Set/Get the current position.
Referenced by casa::PSDriver::setCurrXY().
| void casa::PSDriver::PSState::toPoints | ( | const float | xin, | |
| const float | yin, | |||
| float & | xout, | |||
| float & | yout, | |||
| const Bool | absolute = True | |||
| ) | const [inline] |
[ x' y' 1 ] = [ x y 1] * CTM
Definition at line 724 of file PSDriver.h.
References a_, b_, c_, d_, tx_, and ty_.
Referenced by casa::PSDriver::toPoints().
| void casa::PSDriver::PSState::translate | ( | const float | x, | |
| const float | y | |||
| ) |
double casa::PSDriver::PSState::a_ [private] |
Definition at line 756 of file PSDriver.h.
Referenced by toPoints().
double casa::PSDriver::PSState::ai_ [private] |
Definition at line 757 of file PSDriver.h.
Referenced by fromPoints().
double casa::PSDriver::PSState::b_ [private] |
Definition at line 756 of file PSDriver.h.
Referenced by toPoints().
double casa::PSDriver::PSState::bi_ [private] |
Definition at line 757 of file PSDriver.h.
Referenced by fromPoints().
double casa::PSDriver::PSState::c_ [private] |
Definition at line 756 of file PSDriver.h.
Referenced by toPoints().
double casa::PSDriver::PSState::ci_ [private] |
Definition at line 757 of file PSDriver.h.
Referenced by fromPoints().
float casa::PSDriver::PSState::currX_ [private] |
Definition at line 758 of file PSDriver.h.
float casa::PSDriver::PSState::currY_ [private] |
Definition at line 758 of file PSDriver.h.
double casa::PSDriver::PSState::d_ [private] |
Definition at line 756 of file PSDriver.h.
Referenced by toPoints().
double casa::PSDriver::PSState::di_ [private] |
Definition at line 757 of file PSDriver.h.
Referenced by fromPoints().
double casa::PSDriver::PSState::tx_ [private] |
Definition at line 756 of file PSDriver.h.
Referenced by toPoints().
double casa::PSDriver::PSState::txi_ [private] |
Definition at line 757 of file PSDriver.h.
Referenced by fromPoints().
double casa::PSDriver::PSState::ty_ [private] |
Definition at line 756 of file PSDriver.h.
Referenced by toPoints().
double casa::PSDriver::PSState::tyi_ [private] |
Definition at line 757 of file PSDriver.h.
Referenced by fromPoints().
1.6.1