22 using namespace kome::objects;
27 #define new new( _NORMAL_BLOCK, __FILE__, __LINE__ )
28 #define malloc( s ) _malloc_dbg( s, _NORMAL_BLOCK, __FILE__, __LINE__ )
33 #define DEFAULT_SPEC_X_TITLE "m/z"
34 #define DEFAULT_SPEC_Y_TITLE "intensity"
35 #define DEFAULT_CHROM_X_TITLE "RT"
36 #define DEFAULT_CHROM_Y_TITLE "intensity"
42 LOG_TRACE( FMT(
"Creating spectrum group... (%s)",
NVL( name,
"" ) ) );
70 for(
unsigned int i = 0; i <
m_children.size(); i++ ) {
76 for(
unsigned int i = 0; i <
m_spectra.size(); i++ ) {
82 for(
unsigned int i = 0; i <
m_chroms.size(); i++ ) {
130 for(
int i = 0; i < (int)
m_children.size() && idx < 0; i++ ) {
160 if( dataSet ==
NULL ) {
165 for(
unsigned int i = 0; i <
m_chroms.size(); i++ ) {
170 for(
unsigned int i = 0; i <
m_spectra.size(); i++ ) {
175 for(
unsigned int i = 0; i <
m_children.size(); i++ ) {
259 for(
unsigned int i = 0; i <
m_spectra.size() && cnt < 2; i++ ) {
286 if( spectrum ==
NULL ) {
308 if( chrom ==
NULL ) {
317 for(
int i = (
int)
m_chroms.size() - 1; i >= 0; i-- ) {
void setParentDataGroupNode(DataGroupNode *parent)
sets parent spectrum group
void setAutoScanNumber(const bool autoScanNumber)
sets the auto scan number flag
void setChromXTitle(const char *title)
sets chromatogram x axis title
void setChromYTitle(const char *title)
sets chromatogram y axis title
group of spectrum management class
void setName(const char *name)
sets group name
void getDataSet(DataSet *dataSet)
gets spectra that contains this group. (getSpectrum method cannot get spectra that belong to child gr...
virtual ~DataGroupNode()
destructor
interfaces of Chromatogram class
DataGroupNode * getChild(const unsigned int index)
gets child group
void setGroup(DataGroupNode *group)
sets spectrum group
void removeChildGroup(DataGroupNode *child)
removes child group
sample information management class
const char * getName()
gets group name
keys and values management class
virtual void addChromatogram(Chromatogram *chrom)
adds chromatogram
void createDefaultChromatogram()
creates default chromatogram
unsigned int getLevel()
gets group level
const char * getChromYTitle()
gets chromatogram y axis title
void setSpecYTitle(const char *title)
sets spectrum y axis title
void setId(int id)
sets group id
std::string m_chromYTitle
DataGroupNode(Sample *sample, const char *name)
constructor
interfaces of Spectrum class
kome::core::Properties & getProperties()
gets properties
void setIcon(const char *icon)
sets icon name
void setName(const char *name)
sets chromatogram name
interfaces of DataGroupNode class
void setAutoCreated(const bool autoCreated=true)
sets auto created flag
interfaces of Sample class
const char * getSpecXTitle()
gets spectrum x axis title
const char * getSpecYTitle()
gets spectrum y axis title
int getScanNumber()
gets scan number
DataGroupNode * getParentGroup()
get parent spectrum group
#define NVL(checkVal, replaceVal)
interfaces of SpectraChromatogram class
DataGroupNode * createChildGroup(const char *name)
creates new child group object
virtual void sortSpectra()
sorts spectra in retention time order
std::vector< DataGroupNode * > m_children
bool isAutoCreated()
gets auto created flag value
kome::core::Properties & getUserProperties()
gets user properties
std::vector< Spectrum * > m_spectra
void setScanNumber(const int scan)
sets scan number
int getGroupIndex()
gets group index
spectrum information management class
std::string m_chromXTitle
virtual void insertSpectrum(Spectrum *spectrum, const int idx)
adds spectrum to group (override method )
one or more spectra management class
int issueGroupId(Sample *sample)
to issue the group id
chromatogram information management class
void setGroup(DataGroupNode *group)
sets spectrum group
kome::core::Properties m_properties
std::vector< Chromatogram * > m_chroms
virtual void insertChromatogram(Chromatogram *chrom, const int idx)
adds chromatogram (override method)
spectrum group chromatogram class
virtual void sortSpectra()
sorts spectra in retention time order (override method)
void setSpecXTitle(const char *title)
sets spectrum x axis title
kome::core::Properties m_userProperties
unsigned int getNumberOfChildren()
gets the number of children
bool isAutoScanNumber()
gets the auto scan number flag
virtual void addSpectrum(Spectrum *spec)
adds spectrum to group
bool hasChromatogram()
judges whether this spectrum has chromatogram
const char * getChromXTitle()
gets chromatogram x axis title
void setGroupIndex(const int index)
sets group index