38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h> 40 #include <QOpenGLWidget> 41 #include <QOpenGLFunctions_2_0> 87 void initializeGL()
override;
89 void resizeGL(
int w,
int h)
override;
91 void paintGL()
override;
95 void mouseMoveEvent(QMouseEvent * e)
override;
96 void mouseReleaseEvent(QMouseEvent * e)
override;
97 void mousePressEvent(QMouseEvent * e)
override;
98 void focusOutEvent(QFocusEvent * e)
override;
106 void updateIntensityScale();
109 GLint project_(GLdouble objx, GLdouble objy, GLdouble objz, GLdouble * winx, GLdouble * winy);
111 void transformPoint_(GLdouble out[4],
const GLdouble m[16],
const GLdouble in[4]);
113 void renderText_(
double x,
double y,
double z,
const QString & text);
115 void qglColor_(
const QColor& color);
117 void qglClearColor_(
const QColor& clearColor);
119 GLuint makeDataAsStick_();
123 GLuint makeAxesTicks_();
125 GLuint makeDataAsTopView_();
127 GLuint makeGround_();
129 GLuint makeGridLines_();
131 void drawAxesLegend_();
134 void computeSelection_();
137 void dataToZoomArray_(
double x_1,
double y_1,
double x_2,
double y_2);
140 double scaledRT_(
double rt);
142 double scaledInversRT_(
double mz);
144 double scaledMZ_(
double mz);
146 double scaledInversMZ_(
double mz);
148 double scaledIntensity_(
float intensity,
Size layer_index);
153 void calculateGridLines_();
156 void normalizeAngle(
int* angle);
158 void resetTranslation();
161 void storeRotationAndZoom();
163 void restoreRotationAndZoom();
191 QPainter* painter_ =
nullptr;
240 void actionModeChange();
AxisTickVector grid_mz_
member gridvectors which contains the data for the mz-axis-ticks
Definition: Plot3DOpenGLCanvas.h:216
DRange< 1 > int_scale_
object which contains the values of the current min and max intensity
Definition: Plot3DOpenGLCanvas.h:214
QString z_label_
Definition: Plot3DOpenGLCanvas.h:236
std::vector< std::vector< double > > AxisTickVector
Container for axis ticks.
Definition: Plot3DOpenGLCanvas.h:70
AxisTickVector grid_rt_
member gridvectors which contains the data for the rt-axis-ticks
Definition: Plot3DOpenGLCanvas.h:218
GLuint stickdata_
Definition: Plot3DOpenGLCanvas.h:167
double zoom_
member variable for the zoom mode
Definition: Plot3DOpenGLCanvas.h:199
int yrot_tmp_
member y-variable that stores the original angle during zoom mode
Definition: Plot3DOpenGLCanvas.h:187
int xrot_
member x-variables for the rotation
Definition: Plot3DOpenGLCanvas.h:178
DRange< 3 > overall_values_
object which contains the min and max values of mz, rt and intensity
Definition: Plot3DOpenGLCanvas.h:212
float width_
the width of the viewport
Definition: Plot3DOpenGLCanvas.h:208
double y_2_
y2 coordinate of the zoomselection
Definition: Plot3DOpenGLCanvas.h:228
OpenGL Canvas for 3D-visualization of map data.
Definition: Plot3DOpenGLCanvas.h:59
int zrot_
member z-variables for the rotation
Definition: Plot3DOpenGLCanvas.h:182
int yrot_
member y-variables for the rotation
Definition: Plot3DOpenGLCanvas.h:180
GLuint axes_ticks_
Definition: Plot3DOpenGLCanvas.h:169
double corner_
member variable for the x and y axis of the BB
Definition: Plot3DOpenGLCanvas.h:197
GLuint axes_
Definition: Plot3DOpenGLCanvas.h:168
Canvas for 3D-visualization of peak map data.
Definition: Plot3DCanvas.h:66
double zoom_tmp_
member variable that stores original zoom factor during zoom mode
Definition: Plot3DOpenGLCanvas.h:201
float height_
the height of the viewport
Definition: Plot3DOpenGLCanvas.h:210
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
double trans_y_
y_translation
Definition: Plot3DOpenGLCanvas.h:232
GLuint gridlines_
Definition: Plot3DOpenGLCanvas.h:170
double x_1_
x1 coordinate of the zoomselection
Definition: Plot3DOpenGLCanvas.h:222
AxisTickVector grid_intensity_
member gridvectors which contains the data for the intensity-axis-ticks
Definition: Plot3DOpenGLCanvas.h:220
double trans_x_
x- translation
Definition: Plot3DOpenGLCanvas.h:230
int zrot_tmp_
member z-variable that stores the original angle during zoom mode
Definition: Plot3DOpenGLCanvas.h:189
QString x_label_
Definition: Plot3DOpenGLCanvas.h:234
Plot3DCanvas & canvas_3d_
reference to Plot3DCanvas
Definition: Plot3DOpenGLCanvas.h:175
double far_
member variable for the z- axis of the BB
Definition: Plot3DOpenGLCanvas.h:206
const double h
Definition: Constants.h:167
double x_2_
x2 coordinate of the zoomselection
Definition: Plot3DOpenGLCanvas.h:224
int xrot_tmp_
member x-variable that stores the original angle during zoom mode
Definition: Plot3DOpenGLCanvas.h:185
void setZLabel(const QString &l)
Definition: Plot3DOpenGLCanvas.h:103
void setYLabel(const QString &l)
Definition: Plot3DOpenGLCanvas.h:102
QString y_label_
Definition: Plot3DOpenGLCanvas.h:235
double y_1_
y1 coordinate of the zoomselection
Definition: Plot3DOpenGLCanvas.h:226
void setXLabel(const QString &l)
Definition: Plot3DOpenGLCanvas.h:101
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
GLuint ground_
Definition: Plot3DOpenGLCanvas.h:171
QPoint mouse_move_end_
member variables for the zoom-mode
Definition: Plot3DOpenGLCanvas.h:194
double near_
member variable for the z- axis of the BB
Definition: Plot3DOpenGLCanvas.h:204
Class that stores the data for one layer.
Definition: LayerDataBase.h:194