15 using namespace kome::operation;
20 #define new new( _NORMAL_BLOCK, __FILE__, __LINE__ )
21 #define malloc( s ) _malloc_dbg( s, _NORMAL_BLOCK, __FILE__, __LINE__ )
27 : kome::objects::Spectrum( org.getSample(), org.getName() ), m_org( org ){
70 std::vector< kome::objects::XYDataOperation* > operations;
71 if( sample !=
NULL ) {
78 if( operations.size() == 0 ) {
85 for(
unsigned int i = 0; i < operations.size(); i++ ) {
89 opt->
update( dps, tmp, *
this );
92 for(
unsigned int i = 0; i < tmp.
getLength(); i++ ) {
98 for(
unsigned int i = 0; i < dps.
getLength(); i++ ) {
99 const double x = dps.
getX( i );
100 const double y = dps.
getY( i );
101 if( ( minX < 0.0 || x >= minX ) && ( maxX < 0.0 || x <= maxX ) ) {
119 double intensity = 0.0;
120 for(
unsigned int i = 0; i < pt.
getLength(); i++ ) {
121 intensity += pt.
getY( i );
134 double intensity = 0.0;
135 for(
unsigned int i = 0; i < pt.
getLength(); i++ ) {
136 double y = pt.
getY( i );
137 intensity =
MAX( y, intensity );
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
unsigned int getNumberOfOperation()
get number of operation
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
virtual void onGetXRange(double *minX, double *maxX)
This method is called by getMinX or getMaxX method. (override method)
virtual bool onLoadData(void)
This method is called by loadData method. (abstract method)
ManipulatedSpectrum(ManipulatedSample *sample, kome::objects::Spectrum &org, const bool op=false)
constructor
kome::objects::Spectrum & m_org
double getRt()
gets retention time
double getX(const unsigned int index)
gets x coordinate
virtual void onSetFirstAccess(void)
This method is called by setFirstAccess method. (abstract method)
ManipulatedSample * m_sample
void setMinX(const double minX)
sets min x
const char * getName()
gets spectrum name
virtual void onResetFirstAccess(void)
This method is called by resetFirstAccess method. (abstract method)
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 clearPoints()
clear all data points
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
void update(kome::core::XYData &src, kome::core::XYData &dst, Chromatogram &chrom)
updates xy data
Spectrum * getOrgSpectrum()
gets original spectrum
virtual void onResetRequestLoadData(void)
This method is called by resetRequestLoadData method. (abstract method)
double getResolution()
gets resolution
double getMinX()
gets min x
int getMsStage()
gets ms stage
double getMaxX()
gets max x
Manipulated Spectrum class.
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
ManipulatedSample * getSample()
get sample object
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
virtual void onSetRequestLoadData(void)
This method is called by setRequestLoadData method. (abstract method)
virtual double onGetMaxIntensity(const double minX, const double maxX)
This method is called by getMaxIntensity method. (override method)
void setOrgSpectrum(Spectrum *spec)
sets original spectrum
Spectrum * getParentSpectrum()
gets parent spectrum
spectrum information management class
virtual bool onIsFirstAccess(void)
This method is called by isFirstAccess method. (abstract method)
virtual bool onIsRequestLoadData(void)
This method is called by isRequestLoadData method. (abstract method)
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
virtual double onGetTotalIntensity(const double minX, const double maxX)
This method is called by getTotalIntensity method. (override method)
const char * getSpecType()
gets spectrum type
virtual void onGetXYData(kome::core::XYData *const xyData, const double minX, const double maxX)
This method is called by getXYData method. (override method)
double getPrecursorIntensity(const int stage)
gets the precursor intensity
void setGroup(DataGroupNode *group)
sets spectrum group
Manipulated Sample class.
void setTitle(const char *title)
sets spectrum title
bool isCentroidMode()
judget wheter this spectrum is centroid mode
virtual ~ManipulatedSpectrum()
destructor
void setResolution(const double resolution)
sets resolution
Polarity getPolarity()
gets polarity
kome::objects::XYDataOperation * getOperation(int index)
get operation
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