38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h> 86 void showCurrentLayerPreferences()
override;
95 void mergeIntoLayer(
Size i, std::vector<PeptideIdentification>& peptides);
98 void recalculateCurrentLayerDotGradient();
104 void toggleProjections();
106 void showSpectrumAsNew1D(
int index);
107 void showChromatogramsAsNew1D(std::vector<
int, std::allocator<int> > indices);
109 void showCurrentPeaksAs3D();
113 void activateLayer(
Size layer_index)
override;
115 void removeLayer(
Size layer_index)
override;
117 void updateLayer(
Size i)
override;
119 void horizontalScrollBarChange(
int value)
override;
121 void verticalScrollBarChange(
int value)
override;
124 void pickProjectionLayer();
129 void currentLayerParametersChanged_();
133 bool finishAdding_()
override;
136 bool collectFragmentScansInArea_(
const RangeType& range, QAction* a, QMenu* msn_scans, QMenu* msn_meta);
139 void drawCoordinates_(QPainter& painter,
const PeakIndex& peak);
145 void mousePressEvent(QMouseEvent* e)
override;
146 void mouseReleaseEvent(QMouseEvent* e)
override;
147 void mouseMoveEvent(QMouseEvent* e)
override;
148 void paintEvent(QPaintEvent* e)
override;
149 void contextMenuEvent(QContextMenuEvent* e)
override;
150 void keyPressEvent(QKeyEvent* e)
override;
151 void keyReleaseEvent(QKeyEvent* e)
override;
152 void mouseDoubleClickEvent(QMouseEvent* e)
override;
156 void updateScrollbars_()
override;
159 void intensityModeChange_()
override;
161 void recalculateSnapFactor_()
override;
170 float gradientPos = val;
171 switch (intensity_mode_)
178 gradientPos = val * percentage_factor_;
182 gradientPos = val * snap_factor;
186 gradientPos = std::log(val + 1);
213 double adaptPenScaling_(
double ratio_data2pixel,
double& pen_size)
const;
216 void recalculateDotGradient_(
Size layer);
219 void highlightPeak_(QPainter& p,
const PeakIndex& peak);
222 PeakIndex findNearestPeak_(
const QPoint& pos);
225 void paintIcon_(
const QPoint& pos,
const QRgb& color,
const String& icon,
Size s, QPainter& p)
const;
228 void translateVisibleArea_(
double x_axis_rel,
double y_axis_rel);
241 const auto& xy = visible_area_.getAreaXY();
242 point.setX(
int((x - xy.minX()) / xy.width() * width()));
243 point.setY(
int((xy.maxY() - y) / xy.height() * height()));
249 return dataToWidget_(xy.
getX(), xy.
getY());
253 void translateLeft_(Qt::KeyboardModifiers m)
override;
255 void translateRight_(Qt::KeyboardModifiers m)
override;
257 void translateForward_()
override;
259 void translateBackward_()
override;
262 void finishContextMenu_(QMenu* context_menu, QMenu* settings_menu);
Painter2D for ion mobilograms.
Definition: Painter2DBase.h:172
A more convenient string class.
Definition: String.h:58
Painter2D for Features.
Definition: Painter2DBase.h:188
QPoint dataToWidget_(double x, double y) const
Convert chart to widget coordinates.
Definition: Plot2DCanvas.h:238
Int precalculatedColorIndex(double position) const
index of color in precalculated table by position in gradient
Definition: MultiGradient.h:136
double pen_size_min_
minimum number of pixels for one data point
Definition: Plot2DCanvas.h:280
PeakIndex measurement_start_
start peak/feature of measuring mode
Definition: Plot2DCanvas.h:275
CoordinateType getY() const
Name accessor for the second dimension. Only for DPosition<2>, for visualization. ...
Definition: DPosition.h:175
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
QColor precalculatedColorByIndex(Int index) const
precalculated color by its index in the table
Definition: MultiGradient.h:147
Painter2D for spectra.
Definition: Painter2DBase.h:119
double pen_size_max_
maximum number of pixels for one data point
Definition: Plot2DCanvas.h:281
CoordinateType getX() const
Name accessor for the first dimension. Only for DPosition<2>, for visualization.
Definition: DPosition.h:168
MultiGradient linear_gradient_
stores the linear color gradient for non-log modes
Definition: Plot2DCanvas.h:278
LayerDataBase::FeatureMapSharedPtrType FeatureMapSharedPtrType
Main managed data type (features)
Definition: PlotCanvas.h:162
LayerDataBase::ConsensusMapSharedPtrType ConsensusMapSharedPtrType
Main managed data type (consensus features)
Definition: PlotCanvas.h:166
Management and storage of parameters / INI files.
Definition: Param.h:69
Painter2D for chromatograms.
Definition: Painter2DBase.h:156
Painter2D for ConsensusFeatures.
Definition: Painter2DBase.h:216
A base class for painting all items from a data layer (as supported by class derived from here) onto ...
Definition: Painter2DBase.h:67
Canvas for 2D-visualization of peak map, feature map and consensus map data.
Definition: Plot2DCanvas.h:70
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Int precalculatedColorIndex_(float val, const MultiGradient &gradient, double snap_factor)
Returns the position on color gradient associated with given intensity.
Definition: Plot2DCanvas.h:168
QPoint dataToWidget_(const DPosition< 2 > &xy)
Definition: Plot2DCanvas.h:247
Base class for visualization canvas classes.
Definition: PlotCanvas.h:145
A gradient of multiple colors and arbitrary distances between colors.
Definition: MultiGradient.h:67
double canvas_coverage_min_
minimum coverage of the canvas required; if lower, points are upscaled in size
Definition: Plot2DCanvas.h:282
int Int
Signed integer type.
Definition: Types.h:102
QColor heightColor_(float val, const MultiGradient &gradient, double snap_factor)
Returns the color associated with val for the gradient gradient.
Definition: Plot2DCanvas.h:197
PeakIndex selected_peak_
the nearest peak/feature to the mouse cursor
Definition: Plot2DCanvas.h:273
Class that stores the data for one layer.
Definition: LayerDataBase.h:194
Index of a peak or feature.
Definition: PeakIndex.h:50
Painter2D for Identifications.
Definition: Painter2DBase.h:261