24 using namespace kome::objects;
29 #define new new( _NORMAL_BLOCK, __FILE__, __LINE__ )
30 #define malloc( s ) _malloc_dbg( s, _NORMAL_BLOCK, __FILE__, __LINE__ )
42 for( std::map< XYDataOperation*, int >::iterator it =
m_countMap.begin();
110 if( spec ==
NULL || operation ==
NULL ) {
139 if( chrom ==
NULL || operation ==
NULL ) {
167 if( sample ==
NULL || operation ==
NULL ){
191 if( spec ==
NULL || operation ==
NULL ) {
202 for(
int i = 0; i < (int)operations.size() && idx < 0; i++ ) {
203 if( operations[ i ] == operation ) {
212 operations.erase( operations.begin() + idx );
215 if( operations.size() == 0 ) {
225 if( chrom ==
NULL || operation ==
NULL ) {
236 for(
int i = 0; i < (int)operations.size() && idx < 0; i++ ) {
237 if( operations[ i ] == operation ) {
246 operations.erase( operations.begin() + idx );
247 if( operations.size() == 0 ) {
257 if( sample ==
NULL || operation ==
NULL ){
268 for(
int i=0; i < (int)operations.size() && idx < 0; i++ ){
269 if( operations[ i ] == operation ){
278 operations.erase( operations.begin() + idx );
279 if( operations.size() == 0 ){
301 for(
unsigned int i = 0; i < operations.size(); i++ ) {
313 if( chrom ==
NULL ) {
324 for(
unsigned int i = 0; i < operations.size(); i++ ) {
336 if( sample ==
NULL ){
347 for(
unsigned int i=0; i < operations.size(); i++ ){
373 if( chrom ==
NULL ) {
387 if( sample ==
NULL ){
412 if( index >= operations.size() ) {
415 return operations[ index ];
421 if( chrom ==
NULL ) {
432 if( index >= operations.size() ) {
435 return operations[ index ];
441 if( sample ==
NULL ){
452 if( index >= operations.size() ){
455 return operations[ index ];
480 std::set< Spectrum* > specSet;
481 for( std::map< Spectrum*, kome::core::DataPoints >::iterator it =
m_specPointsMap.begin();
485 specSet.insert( spec );
492 specSet.insert( spec );
497 for( std::set< Spectrum* >::iterator it = specSet.begin(); it != specSet.end(); it++ ) {
504 for(
unsigned int i = 0; i < operations.size(); i++ ) {
518 std::set< Chromatogram* > chromSet;
519 for( std::map< Chromatogram*, kome::core::DataPoints >::iterator it =
m_chromPointsMap.begin();
523 chromSet.insert( chrom );
530 chromSet.insert( chrom );
535 for( std::set< Chromatogram* >::iterator it = chromSet.begin(); it != chromSet.end(); it++ ) {
542 for(
unsigned int i = 0; i < operations.size(); i++ ) {
abstraction class of two dimention coordinate data
virtual ~PointsManager()
destructor
Sample * getSample()
gets the sample that has this spectrum
data points data of profile management class
interfaces of PointsManager class
unsigned int getNumberOfOperations(Spectrum *spec)
gets the number of operations of specified spectrum
interfaces of Chromatogram class
virtual void onCloseChromatogram(Chromatogram *chrom, const bool deleting)
This method is called when a chromatogram is closed. (override method)
sample information management class
Sample * getSample()
gets sample
std::map< Spectrum *, kome::core::DataPoints > m_specPointsMap
std::map< Spectrum *, std::vector< XYDataOperation * > > m_specOperationMap
void deleteOperation(XYDataOperation *operation)
deletes operation object
void clearOperations(Spectrum *spec)
clears data operation of specified spectrum
std::map< Sample *, std::vector< XYDataOperation * > > m_sampleOperationMap
void clearPoints()
clear all data points
static PointsManager & getInstance()
get data points manager object (This is the only object.)
data points management class
interfaces of Spectrum class
virtual void onCloseSpectrum(Spectrum *spec, const bool deleting)
This method is called when a spectrum is closed. (override method)
interfaces of XYDataOperation class
interfaces of Sample class
static bool lessOperation(XYDataOperation *opt0, XYDataOperation *opt1)
compare index of XYDataOperation to sort
interfaces of GraphInfo class
std::map< Chromatogram *, std::vector< XYDataOperation * > > m_chromOperationMap
kome::core::XYData * getXYData()
gets xy data from data manager
PointsManager()
constructor
kome::core::XYData * getXYData()
gets xy data from data manager
void removeOperation(Spectrum *spec, XYDataOperation *operation)
removes data operation from specified spectrum
virtual void onCloseSample(Sample *sample, const bool deleting)
This method is called when a sample is closed. (override method)
void addOperation(Spectrum *spec, XYDataOperation *operation)
adds data operation to specified spectrum
std::map< XYDataOperation *, int > m_countMap
kome::core::XYData * getXYData(Spectrum *spec)
gets xy data of specified spectrum
spectrum information management class
void deleteXYData(Spectrum *spec)
deletes xy data of specified spectrum
std::map< Chromatogram *, kome::core::DataPoints > m_chromPointsMap
XYDataOperation * getOperation(Spectrum *spec, const unsigned int index)
gets operation of specified spectrum
chromatogram information management class
unsigned int getLength()
gets the number of points @return the number of points