casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
casa::PSDriver::PSState Class Reference

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 casacore::Bool absolute=true) const
 [ x' y' 1 ] = [ x y 1] * CTM More...
 
void fromPoints (const float xin, const float yin, float &xout, float &yout, const casacore::Bool absolute=true) const
 [ x y 1 ] = [ x' y' 1] * inverse(CTM); More...
 
void setIdentity ()
 
void operator= (const PSState &)
 
void setXY (const float x, const float y, const casacore::Bool userCoords=true)
 Set/Get the current position. More...
 
void getXY (float &x, float &y, const casacore::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 716 of file PSDriver.h.

Constructor & Destructor Documentation

casa::PSDriver::PSState::PSState ( )
casa::PSDriver::PSState::~PSState ( )

Member Function Documentation

void casa::PSDriver::PSState::fromPoints ( const float  xin,
const float  yin,
float &  xout,
float &  yout,
const casacore::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 casacore::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::setIdentity ( )
void casa::PSDriver::PSState::setXY ( const float  x,
const float  y,
const casacore::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 casacore::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 
)

Member Data Documentation

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


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