Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

LinearMapping Class Reference

#include <OpenMS/ANALYSIS/MAPMATCHING/LinearMapping.h>

List of all members.


Detailed Description

This class represents a linear coordinate transformation.

Public Member Functions

 LinearMapping ()
 Constructor.
 ~LinearMapping ()
 Destructor.
 LinearMapping (const LinearMapping &source)
 Copy constructor.
LinearMappingoperator= (const LinearMapping &source)
 assignment operator
bool operator== (const LinearMapping &rhs) const
 Equality operator.
bool operator!= (const LinearMapping &rhs) const
 Equality operator.
void apply (DPosition< 1 > &pos) const
 Apply transformation to coordinate.
void apply (DoubleReal &pos) const
 Apply transformation to coordinate.
DoubleReal getSlope () const
 Non-mutable access to slope.
void setSlope (DoubleReal sl)
 Set slope.
DoubleReal getIntercept () const
 Non-mutable access to intercept.
void setIntercept (DoubleReal in)
 Set intercept.

Protected Attributes

DoubleReal slope_
 slope of the transform
DoubleReal intercept_
 intercept

Constructor & Destructor Documentation

LinearMapping (  ) 

Constructor.

~LinearMapping (  ) 

Destructor.

LinearMapping ( const LinearMapping source  ) 

Copy constructor.


Member Function Documentation

LinearMapping& operator= ( const LinearMapping source  ) 

assignment operator

bool operator== ( const LinearMapping rhs  )  const

Equality operator.

bool operator!= ( const LinearMapping rhs  )  const

Equality operator.

void apply ( DPosition< 1 > &  pos  )  const

Apply transformation to coordinate.

void apply ( DoubleReal pos  )  const

Apply transformation to coordinate.

DoubleReal getSlope (  )  const [inline]

Non-mutable access to slope.

void setSlope ( DoubleReal  sl  )  [inline]

Set slope.

DoubleReal getIntercept (  )  const [inline]

Non-mutable access to intercept.

void setIntercept ( DoubleReal  in  )  [inline]

Set intercept.


Member Data Documentation

DoubleReal slope_ [protected]

slope of the transform

DoubleReal intercept_ [protected]

intercept


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:42 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1