23 using namespace kome::objects;
28 #define new new( _NORMAL_BLOCK, __FILE__, __LINE__ )
29 #define malloc( s ) _malloc_dbg( s, _NORMAL_BLOCK, __FILE__, __LINE__ )
109 if( chrom ==
NULL ) {
115 if( peaks ==
NULL ) {
128 if( group ==
NULL ) {
134 if( peaks ==
NULL ) {
184 std::vector< Spectrum* > spectra;
185 for( std::map< Spectrum*, Peaks >::iterator it =
m_specPeaksMap.begin();
190 spectra.push_back( spec );
195 for(
unsigned int i = 0; i < spectra.size(); i++ ) {
202 std::vector< Chromatogram* > chroms;
203 for( std::map< Chromatogram*, Peaks >::iterator it =
m_chromPeaksMap.begin();
208 chroms.push_back( chrom );
213 for(
unsigned int i = 0; i < chroms.size(); i++ ) {
220 std::vector< DataGroupNode* > groups;
221 for( std::map< DataGroupNode*, Peaks2D >::iterator it =
m_2dPeaksMap.begin();
226 groups.push_back( group );
231 for(
unsigned int i = 0; i < groups.size(); i++ ) {
244 if( peaks ==
NULL ) {
251 for(
unsigned int i=0; i < addPeaks.size(); i++ ){
253 if( peakElement !=
NULL ){
254 peakElement->
setLeft( addPeaks[i].getLeftX(), addPeaks[i].getLeftY() );
255 peakElement->
setRight( addPeaks[i].getRightX(), addPeaks[i].getRightY() );
256 peakElement->
setApex( addPeaks[i].getApexX(), addPeaks[i].getApexY() );
257 peakElement->
setId( addPeaks[i].getId() );
group of spectrum management class
Sample * getSample()
gets the sample that has this spectrum
PeaksManager()
constructor
double getPrecursor(const int stage)
gets precursor
interfaces of Chromatogram class
interfaces of PeaksManager class
void setPrecursor(const double precursor)
sets precursor
Peaks * getPeaks(Spectrum *spec)
gets peaks of specified spectrum
void setRight(const double x, const double y)
sets peak right
Peaks * createPeaks(Spectrum *spec)
creates peaks of specified spectrum
sample information management class
Sample * getSample()
gets sample
std::map< Chromatogram *, Peaks > m_chromPeaksMap
void clearPoints()
clear all data points
void updatePeaks(Spectrum &spec, Peaks *peaks, std::vector< PeakElement > &addPeaks)
update peaks
interfaces of SampleSet class
std::map< DataGroupNode *, Peaks2D > m_2dPeaksMap
interfaces of Spectrum class
interfaces of DataGroupNode class
interfaces of Sample class
interfaces of GraphInfo class
void deletePeaks(Spectrum *spec)
deletes peaks of specified spectrum
std::map< Spectrum *, Peaks > m_specPeaksMap
bool hasPeaks(Spectrum *spec)
judges whether peaks object of specified spectrum exists
void setId(int id)
sets peak ID
void setApex(const double x, const double y)
sets peak apex
spectrum information management class
void setLeft(const double x, const double y)
sets peak left
virtual void onCloseSample(Sample *sample, const bool deleting)
This method is called when a sample is closed. (override method)
Sample * getSample()
gets sample
void clearClusters()
clears clusters
void clearPeaks()
clears peaks
chromatogram information management class
virtual ~PeaksManager()
destructor
static PeaksManager & getInstance()
get peaks manager object (This is the only object.)
PeakElement * createPeak(const double x, const double y)
creates peak