Mass++ Common Libraries v2.7.5
 All Classes Namespaces Files Functions Variables Enumerations Macros
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
kome::operation::Alignment Class Referenceabstract

alignment class More...

#include <Alignment.h>

Inheritance diagram for kome::operation::Alignment:
Inheritance graph
[legend]
Collaboration diagram for kome::operation::Alignment:
Collaboration graph
[legend]

Public Member Functions

 Alignment ()
 constructor
 
virtual ~Alignment ()
 destructor
 
void prepare (kome::objects::Sample *standard, kome::objects::Sample *treatment, kome::core::Progress *progress)
 prepares alignment More...
 
double convertRt (const double rt, const double mz)
 gets aligned RT More...
 
double convertMz (const double rt, const double mz)
 gets aligned m/z More...
 
double invertRt (const double rt, const double mz)
 gets RT before alignment More...
 
double invertMz (const double rt, const double mz)
 gets m/z before alignment More...
 

Static Public Member Functions

static AlignmentgetDefaultAlignment ()
 gets default alignment More...
 

Protected Member Functions

kome::objects::SamplegetStandardSample ()
 gets the standard sample More...
 
kome::objects::SamplegetTreatmentSample ()
 gets the treatment sample More...
 
virtual void onPrepare (kome::objects::Sample *standard, kome::objects::Sample *treatment, kome::core::Progress *progress)=0
 This method is called by prepare method. (abstract method) More...
 
virtual double onConvertRt (const double rt, const double mz)=0
 This method is called by convertRt method. (abstract method) More...
 
virtual double onConvertMz (const double rt, const double mz)=0
 This method is called by convertMz method. (abstract method) More...
 
virtual double onInvertRt (const double rt, const double mz)=0
 This method is called by invertRt method. (abstract method) More...
 
virtual double onInvertMz (const double rt, const double mz)=0
 This method is called by invertMz method. (abstract method) More...
 

Protected Attributes

kome::objects::Samplem_standard
 
kome::objects::Samplem_treatment
 

Detailed Description

alignment class

Definition at line 26 of file Alignment.h.

Member Function Documentation

double kome::operation::Alignment::convertMz ( const double  rt,
const double  mz 
)

gets aligned m/z

Parameters
[in]rtRT before alignment
[in]mzm/z before alignment
Returns
aligned m/z

Definition at line 83 of file Alignment.cpp.

83  {
84  // samples
87  if( standard == treatment || standard == NULL || treatment == NULL ) {
88  return mz;
89  }
90 
91  return onConvertMz( rt, mz );
92 }
virtual double onConvertMz(const double rt, const double mz)=0
This method is called by convertMz method. (abstract method)
kome::objects::Sample * getTreatmentSample()
gets the treatment sample
Definition: Alignment.cpp:51
sample information management class
Definition: Sample.h:34
kome::objects::Sample * getStandardSample()
gets the standard sample
Definition: Alignment.cpp:46
#define NULL
Definition: CoreMacros.h:18

Here is the call graph for this function:

double kome::operation::Alignment::convertRt ( const double  rt,
const double  mz 
)

gets aligned RT

Parameters
[in]rtRT before alignment
[in]mzm/z before alignment
Returns
aligned RT

Definition at line 71 of file Alignment.cpp.

71  {
72  // samples
75  if( standard == treatment || standard == NULL || treatment == NULL ) {
76  return rt;
77  }
78 
79  return onConvertRt( rt, mz );
80 }
kome::objects::Sample * getTreatmentSample()
gets the treatment sample
Definition: Alignment.cpp:51
sample information management class
Definition: Sample.h:34
virtual double onConvertRt(const double rt, const double mz)=0
This method is called by convertRt method. (abstract method)
kome::objects::Sample * getStandardSample()
gets the standard sample
Definition: Alignment.cpp:46
#define NULL
Definition: CoreMacros.h:18

Here is the call graph for this function:

static Alignment & kome::operation::Alignment::getDefaultAlignment ( )
static

gets default alignment

Returns
default alignment

Definition at line 119 of file Alignment.cpp.

119  {
120  // create object
121  static DefaultAlignment align;
122 
123  // remove from set
125  mgr.removeAlignment( &align );
126 
127  return align;
128 }
default alignment class
Definition: Alignment.h:167
alignment object management class
Definition: Alignment.h:233
void removeAlignment(Alignment *align)
removes alignment object
Definition: Alignment.cpp:192
static AlignmentManager & getInstance()
gets alignment manager object (This is the only object.)
Definition: Alignment.cpp:199

Here is the call graph for this function:

kome::objects::Sample * kome::operation::Alignment::getStandardSample ( )
protected

gets the standard sample

Returns
standard sample

Definition at line 46 of file Alignment.cpp.

46  {
47  return m_standard;
48 }
kome::objects::Sample * m_standard
Definition: Alignment.h:42
kome::objects::Sample * kome::operation::Alignment::getTreatmentSample ( )
protected

gets the treatment sample

Returns
treatment sample

Definition at line 51 of file Alignment.cpp.

51  {
52  return m_treatment;
53 }
kome::objects::Sample * m_treatment
Definition: Alignment.h:45
double kome::operation::Alignment::invertMz ( const double  rt,
const double  mz 
)

gets m/z before alignment

Parameters
[in]rtaligned RT
[in]mzaligned m/z
Returns
m/z before alignemtn

Definition at line 107 of file Alignment.cpp.

107  {
108  // samples
111  if( standard == treatment || standard == NULL || treatment == NULL ) {
112  return mz;
113  }
114 
115  return onInvertMz( rt, mz );
116 }
virtual double onInvertMz(const double rt, const double mz)=0
This method is called by invertMz method. (abstract method)
kome::objects::Sample * getTreatmentSample()
gets the treatment sample
Definition: Alignment.cpp:51
sample information management class
Definition: Sample.h:34
kome::objects::Sample * getStandardSample()
gets the standard sample
Definition: Alignment.cpp:46
#define NULL
Definition: CoreMacros.h:18

Here is the call graph for this function:

double kome::operation::Alignment::invertRt ( const double  rt,
const double  mz 
)

gets RT before alignment

Parameters
[in]rtaligned RT
[in]mzaligned m/z
Returns
RT before alignment

Definition at line 95 of file Alignment.cpp.

95  {
96  // samples
99  if( standard == treatment || standard == NULL || treatment == NULL ) {
100  return rt;
101  }
102 
103  return onInvertRt( rt, mz );
104 }
kome::objects::Sample * getTreatmentSample()
gets the treatment sample
Definition: Alignment.cpp:51
sample information management class
Definition: Sample.h:34
kome::objects::Sample * getStandardSample()
gets the standard sample
Definition: Alignment.cpp:46
#define NULL
Definition: CoreMacros.h:18
virtual double onInvertRt(const double rt, const double mz)=0
This method is called by invertRt method. (abstract method)

Here is the call graph for this function:

double kome::operation::Alignment::onConvertMz ( const double  rt,
const double  mz 
)
protectedpure virtual

This method is called by convertMz method. (abstract method)

Parameters
[in]rtRT before alignment
[in]mzm/z before alignment
Returns
aligned m/z

Implemented in kome::operation::DefaultAlignment.

double kome::operation::Alignment::onConvertRt ( const double  rt,
const double  mz 
)
protectedpure virtual

This method is called by convertRt method. (abstract method)

Parameters
[in]rtRT before alignment
[in]mzm/z before alignment
Returns
aligned RT

Implemented in kome::operation::DefaultAlignment.

double kome::operation::Alignment::onInvertMz ( const double  rt,
const double  mz 
)
protectedpure virtual

This method is called by invertMz method. (abstract method)

Parameters
[in]rtaligned RT
[in]mzaligned m/z
Returns
m/z before alignemtn

Implemented in kome::operation::DefaultAlignment.

double kome::operation::Alignment::onInvertRt ( const double  rt,
const double  mz 
)
protectedpure virtual

This method is called by invertRt method. (abstract method)

Parameters
[in]rtaligned RT
[in]mzaligned m/z
Returns
RT before alignment

Implemented in kome::operation::DefaultAlignment.

void kome::operation::Alignment::onPrepare ( kome::objects::Sample standard,
kome::objects::Sample treatment,
kome::core::Progress progress 
)
protectedpure virtual

This method is called by prepare method. (abstract method)

Parameters
[in]standardstandard sample
[in]treatmenttreatment sample
[in,out]progressthe object to show the progress

Implemented in kome::operation::DefaultAlignment.

void kome::operation::Alignment::prepare ( kome::objects::Sample standard,
kome::objects::Sample treatment,
kome::core::Progress progress 
)

prepares alignment

Parameters
[in]standardstandard sample
[in]treatmenttreatment sample
[in,out]progressthe object to show the progress

Definition at line 56 of file Alignment.cpp.

56  {
57  // set
58  m_standard = standard;
59  m_treatment = treatment;
60 
61  // progress
62  if( progress == NULL ) {
64  }
65 
66  // prepare
67  onPrepare( standard, treatment, progress );
68 }
static Progress & getIgnoringProgress()
gets progress object. But this object does nothing even if a method is called.
Definition: Progress.cpp:343
kome::objects::Sample * m_standard
Definition: Alignment.h:42
#define NULL
Definition: CoreMacros.h:18
kome::objects::Sample * m_treatment
Definition: Alignment.h:45
virtual void onPrepare(kome::objects::Sample *standard, kome::objects::Sample *treatment, kome::core::Progress *progress)=0
This method is called by prepare method. (abstract method)

Here is the call graph for this function:

Member Data Documentation

kome::objects::Sample* kome::operation::Alignment::m_standard
protected

standard sample

Definition at line 42 of file Alignment.h.

kome::objects::Sample* kome::operation::Alignment::m_treatment
protected

treatment sample

Definition at line 45 of file Alignment.h.


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