16 using namespace kome::operation;
21 #define new new( _NORMAL_BLOCK, __FILE__, __LINE__ )
22 #define malloc( s ) _malloc_dbg( s, _NORMAL_BLOCK, __FILE__, __LINE__ )
29 : kome::objects::Spectrum( org.getSample(), org.getName() ), m_org( org ) {
66 m_scX = std::max( sc, 1.0e-10 );
86 m_scY = std::max( sc, 1.0e-10 );
115 for(
unsigned int i = 0; i < dps.
getLength(); i++ ) {
119 if( ( minX < 0.0 || x >= minX ) && ( maxX < 0.0 || x <= maxX ) ) {
143 double orgMinX = minX;
144 if( orgMinX >= 0.0 ) {
145 orgMinX = std::max( ( minX -
m_trX ) /
m_scX, 0.0 );
148 double orgMaxX = maxX;
149 if( orgMaxX >= 0.0 ) {
150 orgMaxX = std::max( ( maxX -
m_trX ) /
m_scX, 0.0 );
163 double orgMinX = minX;
164 if( orgMinX >= 0.0 ) {
165 orgMinX = std::max( ( minX -
m_trX ) /
m_scX, 0.0 );
168 double orgMaxX = maxX;
169 if( orgMaxX >= 0.0 ) {
170 orgMaxX = std::max( ( maxX -
m_trX ) /
m_scX, 0.0 );
double getStartRt()
gets the start of retention time
abstraction class of two dimention coordinate data
void setTotalIntensity(const double intensity)
sets total intensity of spectrum
virtual bool onIsFirstAccess(void)
This method is called by isFirstAccess method. (abstract method)
data points data of profile management class
double getPrecursor(const int stage)
gets precursor
double getRt()
gets retention time
double getX(const unsigned int index)
gets x coordinate
void setMinX(const double minX)
sets min x
const char * getName()
gets spectrum name
void setRt(const double rt)
sets retention time
void setPrecursor(const int stage, const double precursor)
sets precursor
void setPolarity(Polarity polarity)
sets polarity
void setPrecursorIntensity(const int stage, const double intensity)
sets precursor intensity
void setMaxX(const double maxX)
sets max x
const char * getIcon()
gets icon name
void setIcon(const char *icon)
sets icon name
void setEndRt(const double rt)
sets end retention time
void setName(const char *name)
sets spectrum name
void setParentSpectrum(Spectrum *const parent)
sets parent spectrum
void setCentroidMode(const bool centroidMode)
sets centroid mode or not
double getY(const unsigned int index)
gets y coordinate
Spectrum * getOrgSpectrum()
gets original spectrum
double getResolution()
gets resolution
double getMinX()
gets min x
int getMsStage()
gets ms stage
double getMaxX()
gets max x
void setHasChromatogram(const bool chromatogram)
sets wheher this spectrum has chromatogram
int getScanNumber()
gets scan number
double getTotalIntensity(const double minX=-1.0, const double maxX=-1.0)
gets total intensity in specified range
virtual bool onIsRequestLoadData(void)
This method is called by isRequestLoadData method. (abstract method)
kome::core::XYData * getXYData()
gets xy data from data manager
virtual bool onLoadData(void)
This method is called by loadData method. (abstract method)
void setMsStage(const int stage)
sets ms stage
DataGroupNode * getGroup()
gets spectrum group
void setStartRt(const double rt)
sets start retention time
void setScanNumber(const int scan)
sets scan number
void setBasePeakMass(const double mass)
sets base peak mass
const char * getTitle()
gets spectrum title
void setOrgSpectrum(Spectrum *spec)
sets original spectrum
Spectrum * getParentSpectrum()
gets parent spectrum
spectrum information management class
double getEndRt()
gets the end of retention time
void addPoint(const double x, const double y)
adds point
void setSpecType(const char *type)
sets spectrum type
const char * getSpecType()
gets spectrum type
double getPrecursorIntensity(const int stage)
gets the precursor intensity
void setGroup(DataGroupNode *group)
sets spectrum group
void setTitle(const char *title)
sets spectrum title
bool isCentroidMode()
judget wheter this spectrum is centroid mode
void setResolution(const double resolution)
sets resolution
double getMaxIntensity(const double minX=-1.0, const double maxX=-1.0)
gets max intensity in specified range
Polarity getPolarity()
gets polarity
double getBasePeakMass()
gets base peak mass
unsigned int getLength()
gets the number of points @return the number of points
bool hasChromatogram()
judges whether this spectrum has chromatogram