OpenMS
Plot3DWidget.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg$
6 // $Authors: Cornelia Friedle $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 // OpenMS_GUI config
12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
13 
16 
17 namespace OpenMS
18 {
19  class Plot3DCanvas;
27  class OPENMS_GUI_DLLAPI Plot3DWidget :
28  public PlotWidget
29  {
30  Q_OBJECT
31 
32 public:
34  Plot3DWidget(const Param & preferences, QWidget * parent = nullptr);
35 
37  ~Plot3DWidget() override;
38 
39  // docu in base class
40  Plot3DCanvas* canvas() const override
41  {
42  return static_cast<Plot3DCanvas*>(canvas_);
43  }
44 
45  // Docu in base class
46  void setMapper(const DimMapper<2>& /*mapper*/) override
47  { // 3D widget currently only handles MSExperiment. That's it.
48  throw Exception::NotImplemented(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION);
49  }
50 
51  // Docu in base class
52  void recalculateAxes_() override;
53 
54  //docu in base class
55  bool isLegendShown() const override;
56  //docu in base class
57  void showLegend(bool show) override;
58 
59 signals:
62 
63 public slots:
64  // Docu in base class
65  void showGoToDialog() override;
66  };
67 
68 } //namespace
69 
Not implemented exception.
Definition: Exception.h:399
Management and storage of parameters / INI files.
Definition: Param.h:44
Canvas for 3D-visualization of peak map data.
Definition: Plot3DCanvas.h:42
Widget for 3D-visualization of map data.
Definition: Plot3DWidget.h:29
void recalculateAxes_() override
recalculates the Axis ticks
~Plot3DWidget() override
Destructor.
void showCurrentPeaksAs2D()
Requests to display all spectra in 2D plot.
void setMapper(const DimMapper< 2 > &) override
Set a new mapper for the canvas and axis. Internally, all dependent components are updated (e....
Definition: Plot3DWidget.h:46
bool isLegendShown() const override
Returns if the axis labels are shown.
void showGoToDialog() override
Plot3DCanvas * canvas() const override
Returns a pointer to canvas object.
Definition: Plot3DWidget.h:40
void showLegend(bool show) override
Shows/hides axis labels.
Plot3DWidget(const Param &preferences, QWidget *parent=nullptr)
Constructor.
Base class for spectrum widgets.
Definition: PlotWidget.h:57
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19