peaks information class More...
#include <Peaks.h>


Public Member Functions | |
| Peaks () | |
| constructor | |
| Peaks (const Peaks &peaks) | |
| copy constructor More... | |
| virtual | ~Peaks () |
| destructor | |
| Peaks & | operator= (const Peaks &other) |
| substitution operator More... | |
| int | issueId (PeakElement *peakElement) |
| to issue the peak id More... | |
| PeakElement * | getPeakById (int id) |
| gets peak element by peak id More... | |
| void | clearCharge () |
| clears charge | |
| void | addCharge (const short charge) |
| adds charge More... | |
| unsigned int | getNumberOfCharges () |
| gets the number of charges More... | |
| short | getCharge (const unsigned int index) |
| gets charge More... | |
| void | setPrecursor (const double precursor) |
| sets precursor More... | |
| double | getPrecursor () |
| gets precursor More... | |
| void | calcArea () |
| calculates area | |
| void | setDataPoints (kome::core::XYData &xyData) |
| sets data points More... | |
| PeakElement * | createPeak (const double x, const double y) |
| creates peak More... | |
| PeakElement * | getPeak (const unsigned int index) |
| gets peak More... | |
| void | sort () |
| sorts peaks | |
Public Member Functions inherited from kome::core::XYData | |
| XYData () | |
| constructor | |
| virtual | ~XYData () |
| destructor | |
| double | getMinX () |
| gets minimum x More... | |
| double | getMaxX () |
| gets maximum x More... | |
| double | getMinY () |
| gets minimum y More... | |
| double | getMaxY () |
| gets maximum y More... | |
| void | clearPoints () |
| clear all data points | |
| void | addPoint (const double x, const double y) |
| adds point More... | |
| void | insertPoint (const unsigned int index, const double x, const double y) |
| insertts point More... | |
| void | updatePoint (const unsigned int index, const double x, const double y) |
| updates points More... | |
| void | deletePoint (const unsigned int index) |
| delete point More... | |
| unsigned int | getLength () |
| gets the number of points @return the number of points | |
| double | getX (const unsigned int index) |
| gets x coordinate More... | |
| double | getY (const unsigned int index) |
| gets y coordinate More... | |
| void | reserve (const unsigned int num) |
| reserves enough contiguous memory of array More... | |
| unsigned long | getVersion () |
| gets the version More... | |
| int | searchIndex (const double x) |
| searches index of specified x value. More... | |
| int | getNearestIndex (const double x) |
| gets nearest index More... | |
| void | filter (const double absY=0.0, const double relY=0.0) |
| executes filter More... | |
| void | getPoints (std::vector< Point< double > > &points, const bool ySort, const bool desc) |
| gets points array More... | |
| bool | importData (boost::function< int(void *, int) > readFun) |
| imports data More... | |
| bool | exportData (boost::function< int(void *, int) > writeFun) |
| exports data More... | |
Protected Member Functions | |
| void | arrangePeaks () |
| arrange peaks | |
| virtual bool | onLoadData (boost::function< int(void *, int) > readFun) |
| loads data from file (override method) More... | |
| virtual bool | onSaveData (boost::function< int(void *, int) > writeFun) |
| saves data to file (override method) More... | |
| virtual void | onClearPoints () |
| This method is called by clearPoints method. (override method) | |
| virtual void | onAddPoint (const double x, const double y) |
| This method is called by addPoint method. (override method) More... | |
| virtual void | onInsertPoint (const unsigned int index, const double x, const double y) |
| This method is called by insertPoint method. (override method) More... | |
| virtual void | onDeletePoint (const unsigned int index) |
| This method is called by deletePoint method. (override method) More... | |
| virtual unsigned int | onGetLength () |
| this method is called by getLength method (override method) More... | |
| virtual double | onGetX (const unsigned int index) |
| This method is called by getX method. (override method) More... | |
| virtual double | onGetY (const unsigned int index) |
| This method is called by getY method. (override method) More... | |
| virtual void | onReserve (const unsigned int num) |
| This method is called by reserve method. (override method) More... | |
Protected Member Functions inherited from kome::core::XYData | |
| void | updateRange () |
| updates range | |
Static Protected Member Functions | |
| static bool | lessPeakX (PeakElement *p0, PeakElement *p1) |
| compares to sort peaks by x coordinate More... | |
| static bool | lessPeakY (PeakElement *p0, PeakElement *p1) |
| compares to sort peaks by y coordinate More... | |
Protected Attributes | |
| std::vector< PeakElement * > | m_peaks |
| std::string | m_title |
| std::vector< short > | m_charges |
| double | m_precursor |
| std::string | m_dataFile |
Protected Attributes inherited from kome::core::XYData | |
| bool | m_updated |
| double | m_minX |
| double | m_maxX |
| double | m_minY |
| double | m_maxY |
| unsigned long | m_version |
Additional Inherited Members | |
Static Protected Attributes inherited from kome::core::XYData | |
| static unsigned long | m_currentVersion = 0 |
| version More... | |
| kome::objects::Peaks::Peaks | ( | const Peaks & | peaks | ) |
copy constructor
| [in] | peaks | copy source |
Definition at line 45 of file Peaks.cpp.

| void kome::objects::Peaks::addCharge | ( | const short | charge | ) |
| PeakElement * kome::objects::Peaks::createPeak | ( | const double | x, |
| const double | y | ||
| ) |
| short kome::objects::Peaks::getCharge | ( | const unsigned int | index | ) |
| unsigned int kome::objects::Peaks::getNumberOfCharges | ( | ) |
| PeakElement * kome::objects::Peaks::getPeak | ( | const unsigned int | index | ) |
gets peak
| [in] | index | peak index |
Definition at line 381 of file Peaks.cpp.

| PeakElement * kome::objects::Peaks::getPeakById | ( | int | id | ) |
| double kome::objects::Peaks::getPrecursor | ( | ) |
| int kome::objects::Peaks::issueId | ( | PeakElement * | peakElement | ) |
|
staticprotected |
|
staticprotected |
|
protectedvirtual |
This method is called by addPoint method. (override method)
| [in] | x | x coordinate of point to be added |
| [in] | y | y coordinate of point to be added |
Implements kome::core::XYData.
Definition at line 525 of file Peaks.cpp.

|
protectedvirtual |
This method is called by deletePoint method. (override method)
| [in] | index | point index |
Implements kome::core::XYData.
Definition at line 540 of file Peaks.cpp.
|
protectedvirtual |
this method is called by getLength method (override method)
Implements kome::core::XYData.
Definition at line 546 of file Peaks.cpp.

|
protectedvirtual |
This method is called by getX method. (override method)
| [in] | index | the index of point |
Implements kome::core::XYData.
Definition at line 552 of file Peaks.cpp.

|
protectedvirtual |
This method is called by getY method. (override method)
| [in] | index | the index of point |
Implements kome::core::XYData.
Definition at line 558 of file Peaks.cpp.

|
protectedvirtual |
This method is called by insertPoint method. (override method)
| [in] | index | insert position |
| [in] | x | x coordinate of point |
| [in] | y | y coordinate of point |
Implements kome::core::XYData.
Definition at line 530 of file Peaks.cpp.
|
protectedvirtual |
loads data from file (override method)
| [in] | readFun | read function |
Reimplemented from kome::core::XYData.
Definition at line 429 of file Peaks.cpp.

|
protectedvirtual |
This method is called by reserve method. (override method)
| [in] | num | of points to be reserved |
Implements kome::core::XYData.
Definition at line 564 of file Peaks.cpp.
|
protectedvirtual |
saves data to file (override method)
| [in] | writeFun | write function |
Reimplemented from kome::core::XYData.
Definition at line 476 of file Peaks.cpp.

substitution operator
| [in] | other | source peaks object |
Definition at line 118 of file Peaks.cpp.

| void kome::objects::Peaks::setDataPoints | ( | kome::core::XYData & | xyData | ) |
sets data points
| [in] | xyData | data points |
Definition at line 301 of file Peaks.cpp.

| void kome::objects::Peaks::setPrecursor | ( | const double | precursor | ) |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.6