Visualization in OpenMS is based on Qt.
All types of peak or feature visualization share a common interface. So here only an example how to visualize a single spectrum is given (Tutorial_GUI_Spectrum1D.cpp).
First we need to create a QApplication in order to be able to use Qt widgets in out application.
Then we load a DTA file (the first command line argument of our application).
Then we create a widget for 1D visualization and hand over the data.
Finally we start the application.
Param objects are used to set algorithm parameters in OpenMS. In order to be able to visually edit them, the ParamEditor class can be used. The following example (Tutorial_GUI_ParamEditor.cpp) show how to use it.
We need to create a QApplication, load the data from a file (e.g. the parameters file of any TOPP tool), create the ParamEditor and execute the application:
When it is closed, we store the result back to the Param object and then to the file.
OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:05 using doxygen 1.8.13 |