casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
casa::PSDriver::PSState Class Reference

Holds our copy of the current transformation matrix. More...

List of all members.

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_

Detailed Description

Holds our copy of the current transformation matrix.

Used for bounding box computations.

Definition at line 680 of file PSDriver.h.


Constructor & Destructor Documentation


Member Function Documentation

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 700 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 
)
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::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 688 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 
)

Member Data Documentation

double casa::PSDriver::PSState::a_ [private]

Definition at line 720 of file PSDriver.h.

Referenced by toPoints().

double casa::PSDriver::PSState::ai_ [private]

Definition at line 721 of file PSDriver.h.

Referenced by fromPoints().

double casa::PSDriver::PSState::b_ [private]

Definition at line 720 of file PSDriver.h.

Referenced by toPoints().

double casa::PSDriver::PSState::bi_ [private]

Definition at line 721 of file PSDriver.h.

Referenced by fromPoints().

double casa::PSDriver::PSState::c_ [private]

Definition at line 720 of file PSDriver.h.

Referenced by toPoints().

double casa::PSDriver::PSState::ci_ [private]

Definition at line 721 of file PSDriver.h.

Referenced by fromPoints().

Definition at line 722 of file PSDriver.h.

Definition at line 722 of file PSDriver.h.

double casa::PSDriver::PSState::d_ [private]

Definition at line 720 of file PSDriver.h.

Referenced by toPoints().

double casa::PSDriver::PSState::di_ [private]

Definition at line 721 of file PSDriver.h.

Referenced by fromPoints().

double casa::PSDriver::PSState::tx_ [private]

Definition at line 720 of file PSDriver.h.

Referenced by toPoints().

Definition at line 721 of file PSDriver.h.

Referenced by fromPoints().

double casa::PSDriver::PSState::ty_ [private]

Definition at line 720 of file PSDriver.h.

Referenced by toPoints().

Definition at line 721 of file PSDriver.h.

Referenced by fromPoints().


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