38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h> 40 #include <QOpenGLWidget> 47 class Spectrum3DCanvas;
84 void initializeGL()
override;
86 void resizeGL(
int w,
int h)
override;
88 void paintGL()
override;
92 void mouseMoveEvent(QMouseEvent * e)
override;
93 void mouseReleaseEvent(QMouseEvent * e)
override;
94 void mousePressEvent(QMouseEvent * e)
override;
95 void focusOutEvent(QFocusEvent * e)
override;
99 void updateIntensityScale();
102 GLint project_(GLdouble objx, GLdouble objy, GLdouble objz, GLdouble * winx, GLdouble * winy);
104 void transformPoint_(GLdouble out[4],
const GLdouble m[16],
const GLdouble in[4]);
106 void renderText_(
double x,
double y,
double z,
const QString & text);
108 void qglColor_(QColor color);
110 void qglClearColor_(QColor clearColor);
112 GLuint makeDataAsStick_();
116 GLuint makeAxesTicks_();
118 GLuint makeDataAsTopView_();
120 GLuint makeGround_();
122 GLuint makeGridLines_();
124 void drawAxesLegend_();
127 void computeSelection_();
130 void dataToZoomArray_(
double x_1,
double y_1,
double x_2,
double y_2);
133 double scaledRT_(
double rt);
135 double scaledInversRT_(
double mz);
137 double scaledMZ_(
double mz);
139 double scaledInversMZ_(
double mz);
141 double scaledIntensity_(
float intensity,
Size layer_index);
144 void recalculateDotGradient_(
Size layer);
146 void calculateGridLines_();
149 void normalizeAngle(
int * angle);
151 void resetTranslation();
156 void storeRotationAndZoom();
158 void restoreRotationAndZoom();
186 QPainter* painter_ =
nullptr;
231 void actionModeChange();
OpenGL Canvas for 3D-visualization of map data.
Definition: Spectrum3DOpenGLCanvas.h:57
double near_
member variable for the z- axis of the BB
Definition: Spectrum3DOpenGLCanvas.h:199
double x_1_
x1 coordinate of the zoomselection
Definition: Spectrum3DOpenGLCanvas.h:217
std::vector< std::vector< double > > AxisTickVector
Container for axis ticks.
Definition: Spectrum3DOpenGLCanvas.h:67
float width_
the width of the viewport
Definition: Spectrum3DOpenGLCanvas.h:203
double x_2_
x2 coordinate of the zoomselection
Definition: Spectrum3DOpenGLCanvas.h:219
DRange< 1 > int_scale_
object which contains the values of the current min and max intensity
Definition: Spectrum3DOpenGLCanvas.h:209
double trans_y_
y_translation
Definition: Spectrum3DOpenGLCanvas.h:227
int yrot_
member y-variables for the rotation
Definition: Spectrum3DOpenGLCanvas.h:175
double far_
member variable for the z- axis of the BB
Definition: Spectrum3DOpenGLCanvas.h:201
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
double y_1_
y1 coordinate of the zoomselection
Definition: Spectrum3DOpenGLCanvas.h:221
AxisTickVector grid_rt_
member gridvectors which contains the data for the rt-axis-ticks
Definition: Spectrum3DOpenGLCanvas.h:213
double zoom_tmp_
member variable that stores original zoom factor during zoom mode
Definition: Spectrum3DOpenGLCanvas.h:196
GLuint axes_
Definition: Spectrum3DOpenGLCanvas.h:163
double zoom_
member variable for the zoom mode
Definition: Spectrum3DOpenGLCanvas.h:194
AxisTickVector grid_mz_
member gridvectors which contains the data for the mz-axis-ticks
Definition: Spectrum3DOpenGLCanvas.h:211
GLuint axes_ticks_
Definition: Spectrum3DOpenGLCanvas.h:164
double corner_
member variable for the x and y axis of the BB
Definition: Spectrum3DOpenGLCanvas.h:192
AxisTickVector grid_intensity_
member gridvectors which contains the data for the intensity-axis-ticks
Definition: Spectrum3DOpenGLCanvas.h:215
int zrot_tmp_
member z-variable that stores the original angle during zoom mode
Definition: Spectrum3DOpenGLCanvas.h:184
double y_2_
y2 coordinate of the zoomselection
Definition: Spectrum3DOpenGLCanvas.h:223
float height_
the height of the viewport
Definition: Spectrum3DOpenGLCanvas.h:205
int yrot_tmp_
member y-variable that stores the original angle during zoom mode
Definition: Spectrum3DOpenGLCanvas.h:182
int xrot_
member x-variables for the rotation
Definition: Spectrum3DOpenGLCanvas.h:173
DRange< 3 > overall_values_
object which contains the min and max values of mz, rt and intensity
Definition: Spectrum3DOpenGLCanvas.h:207
GLuint stickdata_
Definition: Spectrum3DOpenGLCanvas.h:162
QPoint mouse_move_end_
member variables for the zoom-mode
Definition: Spectrum3DOpenGLCanvas.h:189
Canvas for 3D-visualization of peak map data.
Definition: Spectrum3DCanvas.h:66
GLuint ground_
Definition: Spectrum3DOpenGLCanvas.h:166
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Spectrum3DCanvas & canvas_3d_
reference to Spectrum3DCanvas
Definition: Spectrum3DOpenGLCanvas.h:170
double trans_x_
x- translation
Definition: Spectrum3DOpenGLCanvas.h:225
GLuint gridlines_
Definition: Spectrum3DOpenGLCanvas.h:165
int xrot_tmp_
member x-variable that stores the original angle during zoom mode
Definition: Spectrum3DOpenGLCanvas.h:180
int zrot_
member z-variables for the rotation
Definition: Spectrum3DOpenGLCanvas.h:177