data points management class More...
#include <PointsManager.h>


Public Member Functions | |
| kome::core::XYData * | getXYData (Spectrum *spec) |
| gets xy data of specified spectrum More... | |
| kome::core::XYData * | getXYData (Chromatogram *chrom) |
| gets xy data of specified chromatogram More... | |
| void | deleteXYData (Spectrum *spec) |
| deletes xy data of specified spectrum More... | |
| void | deleteXYData (Chromatogram *chrom) |
| deletes xy data of specified chromatogram More... | |
| void | addOperation (Spectrum *spec, XYDataOperation *operation) |
| adds data operation to specified spectrum More... | |
| void | addOperation (Chromatogram *chrom, XYDataOperation *operation) |
| adds data operatin to specified chromatogram More... | |
| void | addOperation (Sample *sample, XYDataOperation *operation) |
| adds data operatin to specified sample More... | |
| void | removeOperation (Spectrum *spec, XYDataOperation *operation) |
| removes data operation from specified spectrum More... | |
| void | removeOperation (Chromatogram *chrom, XYDataOperation *operation) |
| removes data operation from specified chromtogram More... | |
| void | removeOperation (Sample *sample, XYDataOperation *operation) |
| removes data operation from specified sample More... | |
| void | clearOperations (Spectrum *spec) |
| clears data operation of specified spectrum More... | |
| void | clearOperations (Chromatogram *chrom) |
| clears data operation of specified chromatogram More... | |
| void | clearOperations (Sample *sample) |
| clears data operation of specified sample More... | |
| unsigned int | getNumberOfOperations (Spectrum *spec) |
| gets the number of operations of specified spectrum More... | |
| unsigned int | getNumberOfOperations (Chromatogram *chrom) |
| gets the number of operations of specified chromatogram More... | |
| unsigned int | getNumberOfOperations (Sample *sample) |
| gets the number of operations of specified sample More... | |
| XYDataOperation * | getOperation (Spectrum *spec, const unsigned int index) |
| gets operation of specified spectrum More... | |
| XYDataOperation * | getOperation (Chromatogram *chrom, const unsigned int index) |
| gets operation of specified chromatogram More... | |
| XYDataOperation * | getOperation (Sample *sample, const unsigned int index) |
| gets operation of specified sample More... | |
Static Public Member Functions | |
| static PointsManager & | getInstance () |
| get data points manager object (This is the only object.) More... | |
Static Public Member Functions inherited from kome::objects::DataManager | |
| static void | openSample (Sample *sample) |
| This method is called when a sample is opened. More... | |
| static void | closeSample (Sample *sample, const bool deleting) |
| This method is called when a sample is closed. More... | |
| static void | openSpectrum (Spectrum *spec) |
| This method is called when a spectrum is opened. More... | |
| static void | closeSpectrum (Spectrum *spec, const bool deleting) |
| This method is called when a spectrum is closed. More... | |
| static void | openChromatogram (Chromatogram *chrom) |
| This method is called when a chromaogram is opened. More... | |
| static void | closeChromatogram (Chromatogram *chrom, const bool deleting) |
| This method is called when a chromatogram is closed. More... | |
| static void | openDataMap (DataMapInfo *dataMap) |
| This method is called when a data map is opened. More... | |
| static void | closeDataMap (DataMapInfo *dataMap, const bool deleting) |
| This method is called when a data map is closed. More... | |
Protected Member Functions | |
| PointsManager () | |
| constructor | |
| virtual | ~PointsManager () |
| destructor | |
| void | deleteOperation (XYDataOperation *operation) |
| deletes operation object More... | |
| virtual void | onCloseSample (Sample *sample, const bool deleting) |
| This method is called when a sample is closed. (override method) More... | |
| virtual void | onCloseSpectrum (Spectrum *spec, const bool deleting) |
| This method is called when a spectrum is closed. (override method) More... | |
| virtual void | onCloseChromatogram (Chromatogram *chrom, const bool deleting) |
| This method is called when a chromatogram is closed. (override method) More... | |
Protected Member Functions inherited from kome::objects::DefaultDataManager | |
| DefaultDataManager () | |
| constructor | |
| virtual | ~DefaultDataManager () |
| destructor | |
| virtual void | onOpenSample (Sample *sample) |
| This method is called when a sample is opened. (override method) More... | |
| virtual void | onOpenSpectrum (Spectrum *spec) |
| This method is called when a spectrum is opened. (override method) More... | |
| virtual void | onOpenChromatogram (Chromatogram *chrom) |
| This method is called when a chromatogram is opened. (override method) More... | |
| virtual void | onOpenDataMap (DataMapInfo *dataMap) |
| This method is called when a data map is opened. (override method) More... | |
| virtual void | onCloseDataMap (DataMapInfo *dataMap, const bool deleting) |
| This method is called when a data map is closed. (override method) More... | |
Protected Member Functions inherited from kome::objects::DataManager | |
| DataManager () | |
| constructor | |
| virtual | ~DataManager () |
| destructor | |
Static Protected Member Functions | |
| static bool | lessOperation (XYDataOperation *opt0, XYDataOperation *opt1) |
| compare index of XYDataOperation to sort More... | |
Static Protected Member Functions inherited from kome::objects::DataManager | |
| static bool | lessManager (DataManager *dm0, DataManager *dm1) |
| conmapred data managers to sort More... | |
| static void | sortDataManagers () |
| sorts data managers | |
Protected Attributes | |
| std::map< XYDataOperation *, int > | m_countMap |
| std::map< Spectrum *, kome::core::DataPoints > | m_specPointsMap |
| std::map< Chromatogram *, kome::core::DataPoints > | m_chromPointsMap |
| std::map< Sample *, kome::core::DataPoints > | m_samplePointsMap |
| std::map< Spectrum *, std::vector < XYDataOperation * > > | m_specOperationMap |
| std::map< Chromatogram *, std::vector < XYDataOperation * > > | m_chromOperationMap |
| std::map< Sample *, std::vector < XYDataOperation * > > | m_sampleOperationMap |
Protected Attributes inherited from kome::objects::DataManager | |
| int | m_order |
Additional Inherited Members | |
Static Protected Attributes inherited from kome::objects::DataManager | |
| static std::vector< DataManager * > | m_dataMgrs |
| static bool | m_sorted = true |
data points management class
Definition at line 36 of file PointsManager.h.
| void kome::objects::PointsManager::addOperation | ( | Spectrum * | spec, |
| XYDataOperation * | operation | ||
| ) |
adds data operation to specified spectrum
| [in] | spec | spectrum |
| [in] | operation | data operation object |
Definition at line 108 of file PointsManager.cpp.

| void kome::objects::PointsManager::addOperation | ( | Chromatogram * | chrom, |
| XYDataOperation * | operation | ||
| ) |
adds data operatin to specified chromatogram
| [in] | chrom | chromatogram |
| [in] | operation | data operation object |
Definition at line 137 of file PointsManager.cpp.

| void kome::objects::PointsManager::addOperation | ( | Sample * | sample, |
| XYDataOperation * | operation | ||
| ) |
adds data operatin to specified sample
| [in] | sample | sample object |
| [in] | operation | data operation object |
Definition at line 165 of file PointsManager.cpp.

| void kome::objects::PointsManager::clearOperations | ( | Spectrum * | spec | ) |
clears data operation of specified spectrum
| [in] | spec | spectrum |
Definition at line 288 of file PointsManager.cpp.

| void kome::objects::PointsManager::clearOperations | ( | Chromatogram * | chrom | ) |
clears data operation of specified chromatogram
| [in] | chrom | chromatogram |
Definition at line 311 of file PointsManager.cpp.

| void kome::objects::PointsManager::clearOperations | ( | Sample * | sample | ) |
clears data operation of specified sample
| [in] | sample | sample object |
Definition at line 334 of file PointsManager.cpp.

|
protected |
deletes operation object
| [in] | operation | operation object to be deleted |
Definition at line 459 of file PointsManager.cpp.
| void kome::objects::PointsManager::deleteXYData | ( | Spectrum * | spec | ) |
deletes xy data of specified spectrum
| [in] | spec | spectrum |
Definition at line 77 of file PointsManager.cpp.

| void kome::objects::PointsManager::deleteXYData | ( | Chromatogram * | chrom | ) |
deletes xy data of specified chromatogram
| [in] | chrom | chromatogram |
Definition at line 92 of file PointsManager.cpp.

|
static |
get data points manager object (This is the only object.)
Definition at line 573 of file PointsManager.cpp.
| unsigned int kome::objects::PointsManager::getNumberOfOperations | ( | Spectrum * | spec | ) |
gets the number of operations of specified spectrum
| [in] | spec | spectrum |
Definition at line 357 of file PointsManager.cpp.
| unsigned int kome::objects::PointsManager::getNumberOfOperations | ( | Chromatogram * | chrom | ) |
gets the number of operations of specified chromatogram
| [in] | chrom | chromatogram |
Definition at line 371 of file PointsManager.cpp.
| unsigned int kome::objects::PointsManager::getNumberOfOperations | ( | Sample * | sample | ) |
gets the number of operations of specified sample
| [in] | sample | sample object |
Definition at line 385 of file PointsManager.cpp.
| XYDataOperation * kome::objects::PointsManager::getOperation | ( | Spectrum * | spec, |
| const unsigned int | index | ||
| ) |
gets operation of specified spectrum
| [in] | spec | spectrum |
| [in] | index | operation index |
Definition at line 399 of file PointsManager.cpp.
| XYDataOperation * kome::objects::PointsManager::getOperation | ( | Chromatogram * | chrom, |
| const unsigned int | index | ||
| ) |
gets operation of specified chromatogram
| [in] | chrom | chromatogram |
| [in] | index | chromatogram index |
Definition at line 419 of file PointsManager.cpp.
| XYDataOperation * kome::objects::PointsManager::getOperation | ( | Sample * | sample, |
| const unsigned int | index | ||
| ) |
gets operation of specified sample
| [in] | sample | sample object |
| [in] | index | sample index |
Definition at line 439 of file PointsManager.cpp.
| kome::core::XYData * kome::objects::PointsManager::getXYData | ( | Spectrum * | spec | ) |
gets xy data of specified spectrum
| [in] | spec | spectrum |
Definition at line 50 of file PointsManager.cpp.

| kome::core::XYData * kome::objects::PointsManager::getXYData | ( | Chromatogram * | chrom | ) |
gets xy data of specified chromatogram
| [in] | chrom | chromatogram |
Definition at line 63 of file PointsManager.cpp.

|
staticprotected |
compare index of XYDataOperation to sort
| [in] | opt0 | XYDataOperation to be compared |
| [in] | opt1 | XYDataOperation to compare |
Definition at line 567 of file PointsManager.cpp.

|
protectedvirtual |
This method is called when a chromatogram is closed. (override method)
| [in] | chrom | chromatogram object to be closed |
| [in] | deleting | If true, the specified object is being deleted now. |
Reimplemented from kome::objects::DefaultDataManager.
Definition at line 562 of file PointsManager.cpp.

|
protectedvirtual |
This method is called when a sample is closed. (override method)
| [in] | sample | sample object to be closed |
| [in] | deleting | If true, the specified object is being deleted now. |
Reimplemented from kome::objects::DefaultDataManager.
Definition at line 478 of file PointsManager.cpp.

|
protectedvirtual |
This method is called when a spectrum is closed. (override method)
| [in] | spec | spectrum object to be opened |
| [in] | deleting | If true, the specified object is being deleted now. |
Reimplemented from kome::objects::DefaultDataManager.
Definition at line 557 of file PointsManager.cpp.

| void kome::objects::PointsManager::removeOperation | ( | Spectrum * | spec, |
| XYDataOperation * | operation | ||
| ) |
removes data operation from specified spectrum
| [in] | spec | spectrum |
| [in] | operation | data operation object |
Definition at line 189 of file PointsManager.cpp.

| void kome::objects::PointsManager::removeOperation | ( | Chromatogram * | chrom, |
| XYDataOperation * | operation | ||
| ) |
removes data operation from specified chromtogram
| [in] | chrom | chromatogram |
| [in] | operation | data operation object |
Definition at line 223 of file PointsManager.cpp.

| void kome::objects::PointsManager::removeOperation | ( | Sample * | sample, |
| XYDataOperation * | operation | ||
| ) |
removes data operation from specified sample
| [in] | sample | sample object |
| [in] | operation | data operation object |
Definition at line 255 of file PointsManager.cpp.

|
protected |
chromatogram operatin map
Definition at line 67 of file PointsManager.h.
|
protected |
chromatogram data map
Definition at line 58 of file PointsManager.h.
|
protected |
operation count map
Definition at line 52 of file PointsManager.h.
|
protected |
sample operation map
Definition at line 70 of file PointsManager.h.
|
protected |
sample data map
Definition at line 61 of file PointsManager.h.
|
protected |
spectrum operation map
Definition at line 64 of file PointsManager.h.
|
protected |
spectrum data map
Definition at line 55 of file PointsManager.h.
1.8.6