Mass++ Common Libraries v2.7.5
 All Classes Namespaces Files Functions Variables Enumerations Macros
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
kome::objects::Chromatogram Class Referenceabstract

chromatogram information management class More...

#include <Chromatogram.h>

Inheritance diagram for kome::objects::Chromatogram:
Inheritance graph
[legend]
Collaboration diagram for kome::objects::Chromatogram:
Collaboration graph
[legend]

Public Member Functions

 Chromatogram (Sample *sample)
 constructor More...
 
virtual ~Chromatogram ()
 destructor
 
void setOperationFlag (const bool op)
 sets the operation flag value More...
 
bool getOperationFlag ()
 gets the operation flag value More...
 
void setId (int id)
 sets chromatogram id More...
 
int getId ()
 gets chromatogram id More...
 
SamplegetSample ()
 gets sample More...
 
void setName (const char *name)
 sets chromatogram name More...
 
const char * getName ()
 gets chromatogram name More...
 
void setMz (const double mz)
 sets m/z More...
 
double getMz ()
 gets m/z More...
 
void setGroup (DataGroupNode *group)
 sets spectrum group More...
 
DataGroupNodegetGroup ()
 gets spectrum group More...
 
void setIcon (const char *icon)
 sets icon name More...
 
const char * getIcon ()
 gets icon name More...
 
void setTitle (const char *title)
 sets title More...
 
const char * getTitle ()
 gets title More...
 
kome::core::PropertiesgetProperties ()
 gets properties More...
 
kome::core::PropertiesgetUserProperties ()
 gets user properties More...
 
void setAutoCreated (const bool autoCreated=true)
 sets auto created flag More...
 
bool isAutoCreated ()
 gets auto created flag value More...
 
void setVisible (const bool visible)
 sets the visible flag More...
 
bool isVisible ()
 gets the visible flag value More...
 
void setOrgChromatogram (Chromatogram *chrom)
 sets original chromatogram More...
 
ChromatogramgetOrgChromatogram ()
 gets original chromatogram More...
 
void setQ1 (const double q1)
 sets the Q1 Mass More...
 
double getQ1 ()
 gets the Q1 Mass More...
 
void setQ3 (const double q3)
 sets the Q3 Mass More...
 
double getQ3 ()
 gets the Q3 Mass More...
 
kome::core::XYDatagetXYData ()
 gets xy data from data manager More...
 
void deleteXYData ()
 deletes xy data of data manager
 
void getXYData (kome::core::XYData *const xyData, const bool op)
 gets chromatogram data points More...
 
SpectrumsearchSpectrum (const double rt, const SearchType search=SEARCH_NEAR)
 searches spectrum More...
 
void getSpectra (DataSet &dataSet, const double startRt, const double endRt, const SearchType startSearch=SEARCH_NEAR, const SearchType endSearch=SEARCH_NEAR)
 get spectra in specified RT range More...
 
double getMass (const unsigned int index)
 gets mass More...
 
int getMsStage (const unsigned int index)
 gets MS stage More...
 
double getPrecursor (const unsigned int index)
 gets precursor mass More...
 
void getProperties (kome::core::Properties &properties)
 gets spectrum and spectrum group properties More...
 
void getUserProperties (kome::core::Properties &userProperties)
 gets chromatogram and chromatogram group user properties More...
 

Static Public Member Functions

static bool isCommonProperty (const char *key)
 check whther the specified property key is common property or not More...
 

Protected Member Functions

virtual void onGetXYData (kome::core::XYData *const xyData)=0
 This method is called by getXYData method (abstract method) More...
 
virtual void onGetSpectra (DataSet &dataSet, const double startRt, const double endRt, const SearchType startSearch, const SearchType endSearch)=0
 This method is called by searchSpectrum or getDataSet method (abstract method) More...
 
virtual double onGetMass (const unsigned int index)=0
 This method is called by getMass method (abstract method) More...
 
virtual int onGetMsStage (const unsigned int index)=0
 This method is called by getMsStage method (abstract method) More...
 
virtual double onGetPrecursor (const unsigned int index)=0
 This method is called by getPrecursor method (abstract method) More...
 

Protected Attributes

Samplem_sample
 
DataGroupNodem_group
 
std::string m_name
 
double m_mz
 
std::string m_icon
 
std::string m_title
 
kome::core::Properties m_props
 
kome::core::Properties m_userProps
 
bool m_autoCreated
 
bool m_visible
 
Chromatogramm_orgChrom
 
bool m_op
 
int m_chromId
 
double m_q1
 
double m_q3
 

Static Protected Attributes

static std::vector< std::string > m_commonProps
 

Detailed Description

chromatogram information management class

Definition at line 33 of file Chromatogram.h.

Constructor & Destructor Documentation

kome::objects::Chromatogram::Chromatogram ( Sample sample)

constructor

Parameters
[in]sample

Definition at line 45 of file Chromatogram.cpp.

45  {
46  // initialize
47  m_mz = -1.0;
48  m_sample = sample;
49  m_group = NULL;
50  m_icon = "chromatogram";
51 
52  m_autoCreated = false;
53  m_visible = true;
54 
55  m_orgChrom = NULL;
56  m_op = false;
57 
58  m_q1 = -1.0;
59  m_q3 = -1.0;
60 
61  // issue chrom id
62  if( sample != NULL ){
63  m_chromId = sample->issueChromId( sample );
64  }
65 }
#define NULL
Definition: CoreMacros.h:18
int issueChromId(Sample *sample)
to issue the chromatogram id
Definition: Sample.cpp:493

Here is the call graph for this function:

Member Function Documentation

DataGroupNode * kome::objects::Chromatogram::getGroup ( )

gets spectrum group

Returns
spectrum group

Definition at line 114 of file Chromatogram.cpp.

114  {
115  return m_group;
116 }
const char * kome::objects::Chromatogram::getIcon ( )

gets icon name

Returns
icon name

Definition at line 124 of file Chromatogram.cpp.

124  {
125  return m_icon.c_str();
126 }
int kome::objects::Chromatogram::getId ( )

gets chromatogram id

Returns
chromatogram id

Definition at line 389 of file Chromatogram.cpp.

389  {
390  return m_chromId;
391 }
double kome::objects::Chromatogram::getMass ( const unsigned int  index)

gets mass

Parameters
[in]indexdata index
Returns
mass

Definition at line 298 of file Chromatogram.cpp.

298  {
299  return onGetMass( index );
300 }
virtual double onGetMass(const unsigned int index)=0
This method is called by getMass method (abstract method)

Here is the call graph for this function:

int kome::objects::Chromatogram::getMsStage ( const unsigned int  index)

gets MS stage

Parameters
[in]indexdata index
Returns
MS stage.

Definition at line 303 of file Chromatogram.cpp.

303  {
304  return onGetMsStage( index );
305 }
virtual int onGetMsStage(const unsigned int index)=0
This method is called by getMsStage method (abstract method)

Here is the call graph for this function:

double kome::objects::Chromatogram::getMz ( )

gets m/z

Returns
m/z

Definition at line 103 of file Chromatogram.cpp.

103  {
104  return m_mz;
105 }
const char * kome::objects::Chromatogram::getName ( )

gets chromatogram name

Returns
chromatogram name

Definition at line 93 of file Chromatogram.cpp.

93  {
94  return m_name.c_str();
95 }
bool kome::objects::Chromatogram::getOperationFlag ( )
inline

gets the operation flag value

Returns
operation flag value

Definition at line 111 of file Chromatogram.h.

111 { return m_op; }
Chromatogram * kome::objects::Chromatogram::getOrgChromatogram ( )

gets original chromatogram

Returns
original chromatogram

Definition at line 174 of file Chromatogram.cpp.

174  {
175  if( m_orgChrom == NULL ) {
176  m_orgChrom = this;
177  }
178 
179  return m_orgChrom;
180 }
#define NULL
Definition: CoreMacros.h:18
double kome::objects::Chromatogram::getPrecursor ( const unsigned int  index)

gets precursor mass

Parameters
[in]indexdata index
Returns
precursor mass

Definition at line 308 of file Chromatogram.cpp.

308  {
309  return onGetPrecursor( index );
310 }
virtual double onGetPrecursor(const unsigned int index)=0
This method is called by getPrecursor method (abstract method)

Here is the call graph for this function:

kome::core::Properties & kome::objects::Chromatogram::getProperties ( )

gets properties

Returns
properties object

Definition at line 139 of file Chromatogram.cpp.

139  {
140  return m_props;
141 }
kome::core::Properties m_props
Definition: Chromatogram.h:68
void kome::objects::Chromatogram::getProperties ( kome::core::Properties properties)

gets spectrum and spectrum group properties

Parameters
[out]propertiesproperties object to store properties

Definition at line 313 of file Chromatogram.cpp.

313  {
314  // get spectrum properties
315  for( unsigned int i = 0; i < m_props.getNumberOfProperties(); i++ ) {
316  properties.setValue( m_props.getKey( i ), m_props.getValue( i ) );
317  }
318 
319  // get peak information
321  Peaks* peaks = pkMgr.getPeaks( this );
322  if( peaks != NULL ) {
323  int peakNum = peaks->getLength();
324  properties.setIntValue( "Peaks Count", peakNum );
325  }
326 
327  // get group properties
328  DataGroupNode* group = m_group;
329 
330  while( group != NULL ) {
331  for( unsigned int i = 0; i < group->getProperties().getNumberOfProperties(); i++ ) {
332  properties.setValue(
333  group->getProperties().getKey( i ),
334  group->getProperties().getValue( i )
335  );
336  }
337  group = group->getParentGroup();
338  }
339 }
group of spectrum management class
Definition: DataGroupNode.h:33
Peaks * getPeaks(Spectrum *spec)
gets peaks of specified spectrum
void setValue(const char *key, const char *value)
sets parameter value
Definition: Properties.cpp:39
void setIntValue(const char *key, int value)
sets parameter value
Definition: Properties.cpp:57
peaks management class
Definition: PeaksManager.h:41
const char * getValue(const unsigned int index)
gets the parameter value
Definition: Properties.cpp:175
kome::core::Properties & getProperties()
gets properties
unsigned int getNumberOfProperties()
gets the number of Properties
Definition: Properties.cpp:160
DataGroupNode * getParentGroup()
get parent spectrum group
#define NULL
Definition: CoreMacros.h:18
const char * getKey(const unsigned int index)
gets the name of parameter
Definition: Properties.cpp:165
peaks information class
Definition: Peaks.h:35
kome::core::Properties m_props
Definition: Chromatogram.h:68
static PeaksManager & getInstance()
get peaks manager object (This is the only object.)
unsigned int getLength()
gets the number of points @return the number of points
Definition: XYData.cpp:216

Here is the call graph for this function:

double kome::objects::Chromatogram::getQ1 ( )

gets the Q1 Mass

Returns
Q1 Mass

Definition at line 195 of file Chromatogram.cpp.

195  {
196  if( m_q1 < 0.0 ) {
197  m_q1 = m_props.getDoubleValue( "Q1 Mass", -1.0 );
198  }
199 
200  return m_q1;
201 }
kome::core::Properties m_props
Definition: Chromatogram.h:68
double getDoubleValue(const char *key, double defaultValue)
gets parameter value converted to double
Definition: Properties.cpp:128

Here is the call graph for this function:

double kome::objects::Chromatogram::getQ3 ( )

gets the Q3 Mass

Returns
Q3 Mass

Definition at line 216 of file Chromatogram.cpp.

216  {
217  if( m_q3 < 0.0 ) {
218  m_q3 = m_props.getDoubleValue( "Q3 Mass", -1.0 );
219  }
220 
221  return m_q3;
222 }
kome::core::Properties m_props
Definition: Chromatogram.h:68
double getDoubleValue(const char *key, double defaultValue)
gets parameter value converted to double
Definition: Properties.cpp:128

Here is the call graph for this function:

Sample * kome::objects::Chromatogram::getSample ( )

gets sample

Returns
sample

Definition at line 83 of file Chromatogram.cpp.

83  {
84  return m_sample;
85 }
void kome::objects::Chromatogram::getSpectra ( DataSet dataSet,
const double  startRt,
const double  endRt,
const SearchType  startSearch = SEARCH_NEAR,
const SearchType  endSearch = SEARCH_NEAR 
)

get spectra in specified RT range

Parameters
[out]dataSetdata set object to store spectra
[in]startRtstart RT
[in]endRtend RT
[in]startSearchstart search type
[in]endSearchend search type

Definition at line 287 of file Chromatogram.cpp.

293  {
294  onGetSpectra( dataSet, startRt, endRt, startSearch, endSearch );
295 }
virtual void onGetSpectra(DataSet &dataSet, const double startRt, const double endRt, const SearchType startSearch, const SearchType endSearch)=0
This method is called by searchSpectrum or getDataSet method (abstract method)

Here is the call graph for this function:

const char * kome::objects::Chromatogram::getTitle ( )

gets title

Returns
title

Definition at line 134 of file Chromatogram.cpp.

134  {
135  return m_title.c_str();
136 }
kome::core::Properties & kome::objects::Chromatogram::getUserProperties ( )

gets user properties

Returns
properties object

Definition at line 144 of file Chromatogram.cpp.

144  {
145  return m_userProps;
146 }
kome::core::Properties m_userProps
Definition: Chromatogram.h:71
void kome::objects::Chromatogram::getUserProperties ( kome::core::Properties userProperties)

gets chromatogram and chromatogram group user properties

Parameters
[out]userPropertiesproperties object to store user properties

Definition at line 342 of file Chromatogram.cpp.

342  {
343  // get spectrum user properties
344  for( unsigned int i = 0; i < m_userProps.getNumberOfProperties(); i++ ) {
345  userProperties.setValue( m_userProps.getKey( i ), m_userProps.getValue( i ) );
346  }
347 
348  // get group user properties
349  DataGroupNode* group = m_group;
350 
351  while( group != NULL ) {
352  for( unsigned int i = 0; i < group->getUserProperties().getNumberOfProperties(); i++ ) {
353  userProperties.setValue(
354  group->getUserProperties().getKey( i ),
355  group->getUserProperties().getValue( i )
356  );
357  }
358  group = group->getParentGroup();
359  }
360 }
group of spectrum management class
Definition: DataGroupNode.h:33
void setValue(const char *key, const char *value)
sets parameter value
Definition: Properties.cpp:39
const char * getValue(const unsigned int index)
gets the parameter value
Definition: Properties.cpp:175
unsigned int getNumberOfProperties()
gets the number of Properties
Definition: Properties.cpp:160
DataGroupNode * getParentGroup()
get parent spectrum group
#define NULL
Definition: CoreMacros.h:18
kome::core::Properties m_userProps
Definition: Chromatogram.h:71
const char * getKey(const unsigned int index)
gets the name of parameter
Definition: Properties.cpp:165
kome::core::Properties & getUserProperties()
gets user properties

Here is the call graph for this function:

kome::core::XYData * kome::objects::Chromatogram::getXYData ( )

gets xy data from data manager

Returns
xy data object

Definition at line 225 of file Chromatogram.cpp.

225  {
227 
228  return ptMgr.getXYData( this );
229 }
static PointsManager & getInstance()
get data points manager object (This is the only object.)
data points management class
Definition: PointsManager.h:36
kome::core::XYData * getXYData(Spectrum *spec)
gets xy data of specified spectrum

Here is the call graph for this function:

void kome::objects::Chromatogram::getXYData ( kome::core::XYData *const  xyData,
const bool  op 
)

gets chromatogram data points

Parameters
[out]xyDataobject to store data points
[in]opIf true, getting operated data points

Definition at line 239 of file Chromatogram.cpp.

239  {
240  // check parameter
241  if( xyData == NULL ) {
242  return;
243  }
244 
245  // get xy data
247  tm.start();
248 
249  onGetXYData( xyData );
250 
251  tm.stop();
252  LOG_DEBUG(
253  FMT(
254  "Getting Chromatogram [%s] ... %.2f sec",
255  m_title.c_str(),
256  tm.getTotalTime()
257  )
258  );
259 
260  // operation
261  if( op ) {
262  // get operations
264 
265  // update
266  for( unsigned int i = 0; i < ptMgr.getNumberOfOperations( this ); i++ ) {
267  XYDataOperation* operation = ptMgr.getOperation( this, i );
268  operation->update( *xyData, *xyData, *this );
269  }
270  }
271 }
unsigned int getNumberOfOperations(Spectrum *spec)
gets the number of operations of specified spectrum
timer class
Definition: Timer.h:26
static PointsManager & getInstance()
get data points manager object (This is the only object.)
void start()
starts timer
Definition: Timer.cpp:46
data points management class
Definition: PointsManager.h:36
virtual void onGetXYData(kome::core::XYData *const xyData)=0
This method is called by getXYData method (abstract method)
void update(kome::core::XYData &src, kome::core::XYData &dst, Chromatogram &chrom)
updates xy data
#define NULL
Definition: CoreMacros.h:18
double getTotalTime()
gets total time
Definition: Timer.cpp:83
double stop()
stops timer
Definition: Timer.cpp:52
XYDataOperation * getOperation(Spectrum *spec, const unsigned int index)
gets operation of specified spectrum
xy data operation class

Here is the call graph for this function:

bool kome::objects::Chromatogram::isAutoCreated ( )

gets auto created flag value

Returns
auto created flag value

Definition at line 154 of file Chromatogram.cpp.

154  {
155  return m_autoCreated;
156 }
static bool kome::objects::Chromatogram::isCommonProperty ( const char *  key)
static

check whther the specified property key is common property or not

Parameters
[in]keyparameter key
Returns
If true, specified key is common property key

Definition at line 363 of file Chromatogram.cpp.

363  {
364  // create array
365  if( m_commonProps.size() == 0 ) {
366  return false;
367  }
368 
369  // check the key
370  if( key == NULL ) {
371  return false;
372  }
373 
374  for( unsigned int i = 0; i < m_commonProps.size(); i++ ) {
375  if( m_commonProps[ i ].compare( key ) == 0 ) {
376  return true;
377  }
378  }
379 
380  return false;
381 }
static std::vector< std::string > m_commonProps
Definition: Chromatogram.h:96
#define NULL
Definition: CoreMacros.h:18
bool kome::objects::Chromatogram::isVisible ( )

gets the visible flag value

Returns
visible flag value

Definition at line 164 of file Chromatogram.cpp.

164  {
165  return m_visible;
166 }
double kome::objects::Chromatogram::onGetMass ( const unsigned int  index)
protectedpure virtual

This method is called by getMass method (abstract method)

Parameters
[in]indexdata index
Returns
mass

Implemented in kome::objects::SpectraChromatogram, kome::operation::TransformedChromatogram, kome::objects::OverlappingChromatogram, and kome::operation::AlignedChromatogram.

int kome::objects::Chromatogram::onGetMsStage ( const unsigned int  index)
protectedpure virtual

This method is called by getMsStage method (abstract method)

Parameters
[in]indexdata index
Returns
MS stage.

Implemented in kome::objects::SpectraChromatogram, kome::operation::TransformedChromatogram, kome::objects::OverlappingChromatogram, and kome::operation::AlignedChromatogram.

double kome::objects::Chromatogram::onGetPrecursor ( const unsigned int  index)
protectedpure virtual

This method is called by getPrecursor method (abstract method)

Parameters
[in]indexdata index
Returns
precursor mass

Implemented in kome::objects::SpectraChromatogram, kome::operation::TransformedChromatogram, kome::objects::OverlappingChromatogram, and kome::operation::AlignedChromatogram.

void kome::objects::Chromatogram::onGetSpectra ( DataSet dataSet,
const double  startRt,
const double  endRt,
const SearchType  startSearch,
const SearchType  endSearch 
)
protectedpure virtual

This method is called by searchSpectrum or getDataSet method (abstract method)

Parameters
[out]dataSetdata set object to store spectra
[in]startRtstart RT
[in]endRtend RT
[in]startSearchstart search type
[in]endSearchend search type

Implemented in kome::objects::SpectraChromatogram, kome::operation::TransformedChromatogram, kome::objects::OverlappingChromatogram, and kome::operation::AlignedChromatogram.

void kome::objects::Chromatogram::onGetXYData ( kome::core::XYData *const  xyData)
protectedpure virtual

This method is called by getXYData method (abstract method)

Parameters
[out]xyDataobject to store data points

Implemented in kome::objects::SpectraChromatogram, kome::operation::TransformedChromatogram, kome::objects::OverlappingChromatogram, and kome::operation::AlignedChromatogram.

Spectrum * kome::objects::Chromatogram::searchSpectrum ( const double  rt,
const SearchType  search = SEARCH_NEAR 
)

searches spectrum

Parameters
[in]rtRT
[in]searchsearch type
Returns
searched spectrum (If specified spectrum is not found, this method returns NULL.)

Definition at line 274 of file Chromatogram.cpp.

274  {
275  // spectra
276  DataSet dataSet( m_group );
277  getSpectra( dataSet, rt, rt, search, search );
278 
279  // spectrum
280  if( dataSet.getNumberOfSpectra() == 0 ) {
281  return NULL;
282  }
283  return dataSet.getSpectrum( 0 );
284 }
#define NULL
Definition: CoreMacros.h:18
void getSpectra(DataSet &dataSet, const double startRt, const double endRt, const SearchType startSearch=SEARCH_NEAR, const SearchType endSearch=SEARCH_NEAR)
get spectra in specified RT range
one or more spectra management class
Definition: DataSet.h:31

Here is the call graph for this function:

void kome::objects::Chromatogram::setAutoCreated ( const bool  autoCreated = true)

sets auto created flag

Parameters
[in]autoCreatedauto created flag value

Definition at line 149 of file Chromatogram.cpp.

149  {
150  m_autoCreated = autoCreated;
151 }
void kome::objects::Chromatogram::setGroup ( DataGroupNode group)

sets spectrum group

Returns
spectrum group

Definition at line 108 of file Chromatogram.cpp.

108  {
109  m_group = group;
110  m_sample = ( group == NULL ) ? NULL : group->getSample();
111 }
#define NULL
Definition: CoreMacros.h:18
Sample * getSample()
gets sample
Definition: DataSet.cpp:49

Here is the call graph for this function:

void kome::objects::Chromatogram::setIcon ( const char *  icon)

sets icon name

Returns
icon name

Definition at line 119 of file Chromatogram.cpp.

119  {
120  m_icon = NVL( icon, "" );
121 }
#define NVL(checkVal, replaceVal)
Definition: CoreMacros.h:99
void kome::objects::Chromatogram::setId ( int  id)

sets chromatogram id

Parameters
[in]idchromatogram id

Definition at line 384 of file Chromatogram.cpp.

384  {
385  m_chromId = id;
386 }
void kome::objects::Chromatogram::setMz ( const double  mz)

sets m/z

Parameters
[in]mzm/z

Definition at line 98 of file Chromatogram.cpp.

98  {
99  m_mz = mz;
100 }
void kome::objects::Chromatogram::setName ( const char *  name)

sets chromatogram name

Parameters
[in]namechromatogram name

Definition at line 88 of file Chromatogram.cpp.

88  {
89  m_name = std::string( NVL( name, "" ) );
90 }
#define NVL(checkVal, replaceVal)
Definition: CoreMacros.h:99
void kome::objects::Chromatogram::setOperationFlag ( const bool  op)
inline

sets the operation flag value

Parameters
[in]opoperation flag value

Definition at line 104 of file Chromatogram.h.

104 { m_op = op; }
void kome::objects::Chromatogram::setOrgChromatogram ( Chromatogram chrom)

sets original chromatogram

Parameters
[in]chromoriginal chromatogram

Definition at line 169 of file Chromatogram.cpp.

169  {
170  m_orgChrom = chrom;
171 }
void kome::objects::Chromatogram::setQ1 ( const double  q1)

sets the Q1 Mass

Parameters
[in]q1Q1 Mass

Definition at line 183 of file Chromatogram.cpp.

183  {
184  m_q1 = q1;
185 
186  if( q1 < 0.0 ) {
187  m_props.setValue( "Q1 Mass", "" );
188  }
189  else {
190  m_props.setDoubleValue( "Q1 Mass", q1 );
191  }
192 }
void setValue(const char *key, const char *value)
sets parameter value
Definition: Properties.cpp:39
kome::core::Properties m_props
Definition: Chromatogram.h:68
void setDoubleValue(const char *key, double value)
sets parameter value
Definition: Properties.cpp:62

Here is the call graph for this function:

void kome::objects::Chromatogram::setQ3 ( const double  q3)

sets the Q3 Mass

Parameters
[in]q3Q3 Mass

Definition at line 204 of file Chromatogram.cpp.

204  {
205  m_q3 = q3;
206 
207  if( q3 < 0.0 ) {
208  m_props.setValue( "Q3 Mass", "" );
209  }
210  else {
211  m_props.setDoubleValue( "Q3 Mass", q3 );
212  }
213 }
void setValue(const char *key, const char *value)
sets parameter value
Definition: Properties.cpp:39
kome::core::Properties m_props
Definition: Chromatogram.h:68
void setDoubleValue(const char *key, double value)
sets parameter value
Definition: Properties.cpp:62

Here is the call graph for this function:

void kome::objects::Chromatogram::setTitle ( const char *  title)

sets title

Parameters
[in]titletitle

Definition at line 129 of file Chromatogram.cpp.

129  {
130  m_title = NVL( title, "" );
131 }
#define NVL(checkVal, replaceVal)
Definition: CoreMacros.h:99
void kome::objects::Chromatogram::setVisible ( const bool  visible)

sets the visible flag

Parameters
[in]visiblevisible flag value

Definition at line 159 of file Chromatogram.cpp.

159  {
160  m_visible = visible;
161 }

Member Data Documentation

bool kome::objects::Chromatogram::m_autoCreated
protected

auto created flag

Definition at line 74 of file Chromatogram.h.

int kome::objects::Chromatogram::m_chromId
protected

chromatogram id

Definition at line 86 of file Chromatogram.h.

std::vector< std::string > Chromatogram::m_commonProps
staticprotected

common properties

Definition at line 96 of file Chromatogram.h.

DataGroupNode* kome::objects::Chromatogram::m_group
protected

group

Definition at line 53 of file Chromatogram.h.

std::string kome::objects::Chromatogram::m_icon
protected

icon name

Definition at line 62 of file Chromatogram.h.

double kome::objects::Chromatogram::m_mz
protected

m/z

Definition at line 59 of file Chromatogram.h.

std::string kome::objects::Chromatogram::m_name
protected

name

Definition at line 56 of file Chromatogram.h.

bool kome::objects::Chromatogram::m_op
protected

operation flag

Definition at line 83 of file Chromatogram.h.

Chromatogram* kome::objects::Chromatogram::m_orgChrom
protected

original chromatogram

Definition at line 80 of file Chromatogram.h.

kome::core::Properties kome::objects::Chromatogram::m_props
protected

properties

Definition at line 68 of file Chromatogram.h.

double kome::objects::Chromatogram::m_q1
protected

Q1 Mass

Definition at line 89 of file Chromatogram.h.

double kome::objects::Chromatogram::m_q3
protected

Q3 Mass

Definition at line 92 of file Chromatogram.h.

Sample* kome::objects::Chromatogram::m_sample
protected

sample

Definition at line 50 of file Chromatogram.h.

std::string kome::objects::Chromatogram::m_title
protected

title

Definition at line 65 of file Chromatogram.h.

kome::core::Properties kome::objects::Chromatogram::m_userProps
protected

user properties

Definition at line 71 of file Chromatogram.h.

bool kome::objects::Chromatogram::m_visible
protected

visible

Definition at line 77 of file Chromatogram.h.


The documentation for this class was generated from the following files: