38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
40 #include <QOpenGLWidget>
41 #include <QOpenGLFunctions_2_0>
109 GLint
project_(GLdouble objx, GLdouble objy, GLdouble objz, GLdouble * winx, GLdouble * winy);
113 void renderText_(
double x,
double y,
double z,
const QString & text);
191 QPainter* painter_ =
nullptr;
Class that stores the data for one layer.
Definition: LayerDataBase.h:99
Canvas for 3D-visualization of peak map data.
Definition: Plot3DCanvas.h:68
OpenGL Canvas for 3D-visualization of map data.
Definition: Plot3DOpenGLCanvas.h:62
double far_
member variable for the z- axis of the BB
Definition: Plot3DOpenGLCanvas.h:206
GLuint makeDataAsStick_()
Builds up a display list for the 3D view.
void qglClearColor_(QColor clearColor)
helper function to replicate old behaviour of QGLWidget
GLint project_(GLdouble objx, GLdouble objy, GLdouble objz, GLdouble *winx, GLdouble *winy)
helper function to project point to device space
void dataToZoomArray_(double x_1, double y_1, double x_2, double y_2)
calculates the zoom area , which is shown
void resizeGL(int w, int h) override
virtual function provided from QGLWidget
GLuint makeAxesTicks_()
Builds up a display list for axis ticks.
double near_
member variable for the z- axis of the BB
Definition: Plot3DOpenGLCanvas.h:204
Plot3DOpenGLCanvas(QWidget *parent, Plot3DCanvas &canvas_3d)
Constructor.
void setXLabel(const QString &l)
Definition: Plot3DOpenGLCanvas.h:101
void setZLabel(const QString &l)
Definition: Plot3DOpenGLCanvas.h:103
double x_2_
x2 coordinate of the zoomselection
Definition: Plot3DOpenGLCanvas.h:224
GLuint makeGridLines_()
Builds up a display list for grid lines.
int xrot_
member x-variables for the rotation
Definition: Plot3DOpenGLCanvas.h:178
void transformPoint_(GLdouble out[4], const GLdouble m[16], const GLdouble in[4])
helper function to transform point using matrix m (homogeneous coordinates)
void mousePressEvent(QMouseEvent *e) override
GLuint makeAxes_()
Builds up a display list for the axes.
GLuint ground_
Definition: Plot3DOpenGLCanvas.h:171
void mouseMoveEvent(QMouseEvent *e) override
int zrot_
member z-variables for the rotation
Definition: Plot3DOpenGLCanvas.h:182
void mouseReleaseEvent(QMouseEvent *e) override
void actionModeChange()
Slot that reacts on action mode changes.
double scaledRT_(double rt)
returns the BB-rt-coordinate : value –> BB-coordinates
int zrot_tmp_
member z-variable that stores the original angle during zoom mode
Definition: Plot3DOpenGLCanvas.h:189
int yrot_tmp_
member y-variable that stores the original angle during zoom mode
Definition: Plot3DOpenGLCanvas.h:187
AxisTickVector grid_mz_
member gridvectors which contains the data for the mz-axis-ticks
Definition: Plot3DOpenGLCanvas.h:216
void paintGL() override
virtual function provided from QGLWidget
double corner_
member variable for the x and y axis of the BB
Definition: Plot3DOpenGLCanvas.h:197
DRange< 3 > overall_values_
object which contains the min and max values of mz, rt and intensity
Definition: Plot3DOpenGLCanvas.h:212
double y_1_
y1 coordinate of the zoomselection
Definition: Plot3DOpenGLCanvas.h:226
double x_1_
x1 coordinate of the zoomselection
Definition: Plot3DOpenGLCanvas.h:222
~Plot3DOpenGLCanvas() override
Destructor.
GLuint makeDataAsTopView_()
Builds up a display list for the birds-eye view.
void renderText_(double x, double y, double z, const QString &text)
helper function to replicate old behaviour of QGLWidget
double zoom_tmp_
member variable that stores original zoom factor during zoom mode
Definition: Plot3DOpenGLCanvas.h:201
void focusOutEvent(QFocusEvent *e) override
double scaledInversRT_(double mz)
returns the rt-value : BB-coordinates –> value
int xrot_tmp_
member x-variable that stores the original angle during zoom mode
Definition: Plot3DOpenGLCanvas.h:185
void storeRotationAndZoom()
stores the original rotation and zoom factor (e.g. before changing into zoom mode)
double trans_y_
y_translation
Definition: Plot3DOpenGLCanvas.h:232
double scaledIntensity_(float intensity, Size layer_index)
returns the BB-intensity -coordinate : values –> BB-coordinates
GLuint axes_
Definition: Plot3DOpenGLCanvas.h:168
QPoint mouse_move_begin_
Definition: Plot3DOpenGLCanvas.h:194
void restoreRotationAndZoom()
restores the original rotation and zoom factor (e.g. before changing into zoom mode)
GLuint makeGround_()
Builds up a display list for the background.
GLuint axes_ticks_
Definition: Plot3DOpenGLCanvas.h:169
GLuint stickdata_
Definition: Plot3DOpenGLCanvas.h:167
AxisTickVector grid_rt_
member gridvectors which contains the data for the rt-axis-ticks
Definition: Plot3DOpenGLCanvas.h:218
double zoom_
member variable for the zoom mode
Definition: Plot3DOpenGLCanvas.h:199
void computeSelection_()
computes the dataset supposed to be drawn when a section has been selected in zoom mode
DRange< 1 > int_scale_
object which contains the values of the current min and max intensity
Definition: Plot3DOpenGLCanvas.h:214
void qglColor_(QColor color)
helper function to replicate old behaviour of QGLWidget
QString x_label_
Definition: Plot3DOpenGLCanvas.h:234
AxisTickVector grid_intensity_
member gridvectors which contains the data for the intensity-axis-ticks
Definition: Plot3DOpenGLCanvas.h:220
void updateIntensityScale()
updates the min and max values of the intensity
double scaledMZ_(double mz)
returns the BB-mz-coordinate : values –> BB-coordinates
float width_
the width of the viewport
Definition: Plot3DOpenGLCanvas.h:208
void normalizeAngle(int *angle)
normalize the angle by "angle % 360*16"
void calculateGridLines_()
calculate the ticks for the gridlines
GLuint gridlines_
Definition: Plot3DOpenGLCanvas.h:170
double y_2_
y2 coordinate of the zoomselection
Definition: Plot3DOpenGLCanvas.h:228
void initializeGL() override
virtual function provided from QGLWidget
Plot3DCanvas & canvas_3d_
reference to Plot3DCanvas
Definition: Plot3DOpenGLCanvas.h:175
double trans_x_
x- translation
Definition: Plot3DOpenGLCanvas.h:230
double scaledInversMZ_(double mz)
returns the mz-value : BB-coordinates –> value
float height_
the height of the viewport
Definition: Plot3DOpenGLCanvas.h:210
QString z_label_
Definition: Plot3DOpenGLCanvas.h:236
void drawAxesLegend_()
Draws the axis texts.
int yrot_
member y-variables for the rotation
Definition: Plot3DOpenGLCanvas.h:180
QString y_label_
Definition: Plot3DOpenGLCanvas.h:235
void setYLabel(const QString &l)
Definition: Plot3DOpenGLCanvas.h:102
std::vector< std::vector< double > > AxisTickVector
Container for axis ticks.
Definition: Plot3DOpenGLCanvas.h:70
void recalculateDotGradient_(LayerDataBase &layer)
recalculates the dot gradient interpolation values.
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
const double h
Definition: Constants.h:162
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47