OpenMS  2.4.0
Public Member Functions | Private Attributes | List of all members
Spectrum2DGoToDialog Class Reference

GoTo dialog used to zoom to a m/z and retention time range or to a feature. More...

#include <OpenMS/VISUAL/DIALOGS/Spectrum2DGoToDialog.h>

Inheritance diagram for Spectrum2DGoToDialog:
QDialog

Public Member Functions

 Spectrum2DGoToDialog (QWidget *parent=nullptr)
 Constructor. More...
 
 ~Spectrum2DGoToDialog () override
 Destructor. More...
 
bool showRange () const
 Returns if a range should be display (true) or if a feature should be displayed (false) More...
 
void fixRange ()
 Fixes the currently stored range (i.e. ensure correct order of min-max; enforce minimum of 1 Da (or 1 sec for RT) window IFF min==max. More...
 
bool checked ()
 
Methods for ranges
void setRange (float min_rt, float max_rt, float min_mz, float max_mz)
 Sets the data range to display initially. More...
 
void setMinMaxOfRange (float min_rt, float max_rt, float min_mz, float max_mz)
 Sets the data range of the complete experiment for better navigation with the dialog. More...
 
float getMinRT () const
 Returns the lower RT bound. More...
 
float getMaxRT () const
 Returns the upper RT bound. More...
 
float getMinMZ () const
 Returns the lower m/z bound. More...
 
float getMaxMZ () const
 Returns the upper m/z bound. More...
 
Methods for feature numbers
String getFeatureNumber () const
 Returns the selected feature numbers. If a number is returned, the feature rather than the range should be displayed. More...
 
void enableFeatureNumber (bool)
 Disables the feature number field. More...
 

Private Attributes

Ui::Spectrum2DGoToDialogTemplate * ui_
 

Detailed Description

GoTo dialog used to zoom to a m/z and retention time range or to a feature.

Constructor & Destructor Documentation

◆ Spectrum2DGoToDialog()

Spectrum2DGoToDialog ( QWidget parent = nullptr)

Constructor.

◆ ~Spectrum2DGoToDialog()

~Spectrum2DGoToDialog ( )
override

Destructor.

Member Function Documentation

◆ checked()

bool checked ( )

◆ enableFeatureNumber()

void enableFeatureNumber ( bool  )

Disables the feature number field.

◆ fixRange()

void fixRange ( )

Fixes the currently stored range (i.e. ensure correct order of min-max; enforce minimum of 1 Da (or 1 sec for RT) window IFF min==max.

◆ getFeatureNumber()

String getFeatureNumber ( ) const

Returns the selected feature numbers. If a number is returned, the feature rather than the range should be displayed.

◆ getMaxMZ()

float getMaxMZ ( ) const

Returns the upper m/z bound.

◆ getMaxRT()

float getMaxRT ( ) const

Returns the upper RT bound.

◆ getMinMZ()

float getMinMZ ( ) const

Returns the lower m/z bound.

◆ getMinRT()

float getMinRT ( ) const

Returns the lower RT bound.

◆ setMinMaxOfRange()

void setMinMaxOfRange ( float  min_rt,
float  max_rt,
float  min_mz,
float  max_mz 
)

Sets the data range of the complete experiment for better navigation with the dialog.

◆ setRange()

void setRange ( float  min_rt,
float  max_rt,
float  min_mz,
float  max_mz 
)

Sets the data range to display initially.

◆ showRange()

bool showRange ( ) const

Returns if a range should be display (true) or if a feature should be displayed (false)

Member Data Documentation

◆ ui_

Ui::Spectrum2DGoToDialogTemplate* ui_
private