38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
83 void showCurrentLayerPreferences()
override;
86 void saveCurrentLayer(
bool visible)
override;
95 void mergeIntoLayer(
Size i, std::vector<PeptideIdentification>& peptides);
98 void recalculateCurrentLayerDotGradient();
106 void showProjectionInfo(
int,
double,
double);
108 void toggleProjections();
110 void showSpectrumAs1D(
int index);
111 void showSpectrumAs1D(std::vector<
int, std::allocator<int> > indices);
113 void showCurrentPeaksAs3D();
117 void activateLayer(
Size layer_index)
override;
119 void removeLayer(
Size layer_index)
override;
121 void updateLayer(
Size i)
override;
123 void horizontalScrollBarChange(
int value)
override;
125 void verticalScrollBarChange(
int value)
override;
136 void updateProjections();
141 void currentLayerParametersChanged_();
145 bool finishAdding_()
override;
148 bool collectFragmentScansInArea(
double rt_min,
double rt_max,
double mz_min,
double mz_max, QAction* a, QMenu * msn_scans, QMenu * msn_meta);
151 void drawCoordinates_(QPainter& painter,
const PeakIndex& peak);
157 void mousePressEvent(QMouseEvent* e)
override;
158 void mouseReleaseEvent(QMouseEvent* e)
override;
159 void mouseMoveEvent(QMouseEvent* e)
override;
160 void paintEvent(QPaintEvent* e)
override;
161 void contextMenuEvent(QContextMenuEvent* e)
override;
162 void keyPressEvent(QKeyEvent* e)
override;
163 void keyReleaseEvent(QKeyEvent* e)
override;
164 void mouseDoubleClickEvent(QMouseEvent* e)
override;
168 void updateScrollbars_()
override;
178 void paintDots_(
Size layer_index, QPainter& p);
180 void paintAllIntensities_(
Size layer_index,
double pen_width, QPainter& painter);
193 void paintMaximumIntensities_(
Size layer_index,
Size rt_pixel_count,
Size mz_pixel_count, QPainter& p);
201 void paintPrecursorPeaks_(
Size layer_index, QPainter& painter);
209 void paintFeatureData_(
Size layer_index, QPainter& p);
217 void paintTraceConvexHulls_(
Size layer_index, QPainter& p);
225 void paintFeatureConvexHulls_(
Size layer_index, QPainter& p);
233 void paintIdentifications_(
Size layer_index, QPainter& p);
241 void paintConsensusElements_(
Size layer_index, QPainter& p);
251 void paintConsensusElement_(
Size layer_index,
const ConsensusFeature& cf, QPainter& p,
bool use_buffer);
267 void paintConvexHulls_(
const std::vector<ConvexHull2D>& hulls,
bool hasIdentifications, QPainter& p);
270 void intensityModeChange_()
override;
272 void recalculateSnapFactor_()
override;
281 float gradientPos = val;
282 switch (intensity_mode_)
289 gradientPos = val * percentage_factor_;
293 gradientPos = val * snap_factor;
297 gradientPos = std::log(val + 1);
325 point.setX(
int((y - visible_area_.minY()) / visible_area_.height() * width()));
326 point.setY(height() -
int((x - visible_area_.minX()) / visible_area_.width() * height()));
330 point.setX(
int((x - visible_area_.minX()) / visible_area_.width() * width()));
331 point.setY(height() -
int((y - visible_area_.minY()) / visible_area_.height() * height()));
346 double adaptPenScaling_(
double ratio_data2pixel,
double& pen_size)
const;
349 void recalculateDotGradient_(
Size layer);
352 void highlightPeak_(QPainter& p,
const PeakIndex& peak);
355 PeakIndex findNearestPeak_(
const QPoint& pos);
358 void paintIcon_(
const QPoint& pos,
const QRgb& color,
const String& icon,
Size s, QPainter& p)
const;
361 virtual void translateVisibleArea_(
double mzShiftRel,
double rtShiftRel);
364 void translateLeft_(Qt::KeyboardModifiers m)
override;
366 void translateRight_(Qt::KeyboardModifiers m)
override;
368 void translateForward_()
override;
370 void translateBackward_()
override;
373 void finishContextMenu_(QMenu* context_menu, QMenu* settings_menu);