35 #ifndef OPENMS_VISUAL_SPECTRUM3DOPENGLCANVAS_H 36 #define OPENMS_VISUAL_SPECTRUM3DOPENGLCANVAS_H 39 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h> 41 #include <QtOpenGL/QGLWidget> 48 class Spectrum3DCanvas;
86 void resizeGL(
int w,
int h);
90 GLuint makeDataAsStick();
94 GLuint makeAxesTicks();
96 GLuint makeDataAsTopView();
100 GLuint makeGridLines();
102 void drawAxesLegend();
106 void mouseMoveEvent(QMouseEvent * e);
107 void mouseReleaseEvent(QMouseEvent * e);
108 void mousePressEvent(QMouseEvent * e);
109 void focusOutEvent(QFocusEvent * e);
113 void computeSelection();
116 void updateIntensityScale();
119 void dataToZoomArray(
double x_1,
double y_1,
double x_2,
double y_2);
122 double scaledRT(
double rt);
124 double scaledInversRT(
double mz);
126 double scaledMZ(
double mz);
128 double scaledInversMZ(
double mz);
130 double scaledIntensity(
float intensity,
Size layer_index);
133 void recalculateDotGradient_(
Size layer);
135 void calculateGridLines_();
138 float width()
const {
return width_; }
148 void normalizeAngle(
int * angle);
150 void setAngels(
int xrot,
int yrot,
int zrot);
152 void resetTranslation();
157 void storeRotationAndZoom();
159 void restoreRotationAndZoom();
232 void actionModeChange();
OpenGL Canvas for 3D-visualization of map data.
Definition: Spectrum3DOpenGLCanvas.h:58
double near_
member variable for the z- axis of the BB
Definition: Spectrum3DOpenGLCanvas.h:200
double x_1_
x1 coordinate of the zoomselection
Definition: Spectrum3DOpenGLCanvas.h:218
int zRotation() const
return zRot_
Definition: Spectrum3DOpenGLCanvas.h:146
int yRotation() const
return yRot_
Definition: Spectrum3DOpenGLCanvas.h:144
std::vector< std::vector< double > > AxisTickVector
Container for axis ticks.
Definition: Spectrum3DOpenGLCanvas.h:68
float width_
the width of the viewport
Definition: Spectrum3DOpenGLCanvas.h:204
double x_2_
x2 coordinate of the zoomselection
Definition: Spectrum3DOpenGLCanvas.h:220
DRange< 1 > int_scale_
object which contains the values of the current min and max intensity
Definition: Spectrum3DOpenGLCanvas.h:210
double trans_y_
y_translation
Definition: Spectrum3DOpenGLCanvas.h:228
int yrot_
member y-variables for the rotation
Definition: Spectrum3DOpenGLCanvas.h:176
double far_
member variable for the z- axis of the BB
Definition: Spectrum3DOpenGLCanvas.h:202
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
double y_1_
y1 coordinate of the zoomselection
Definition: Spectrum3DOpenGLCanvas.h:222
AxisTickVector grid_rt_
member gridvectors which contains the data for the rt-axis-ticks
Definition: Spectrum3DOpenGLCanvas.h:214
double zoom_tmp_
member variable that stores original zoom factor during zoom mode
Definition: Spectrum3DOpenGLCanvas.h:197
GLuint axes_
Definition: Spectrum3DOpenGLCanvas.h:164
double zoom_
member variable for the zoom mode
Definition: Spectrum3DOpenGLCanvas.h:195
AxisTickVector grid_mz_
member gridvectors which contains the data for the mz-axis-ticks
Definition: Spectrum3DOpenGLCanvas.h:212
GLuint axes_ticks_
Definition: Spectrum3DOpenGLCanvas.h:165
double corner_
member variable for the x and y axis of the BB
Definition: Spectrum3DOpenGLCanvas.h:193
AxisTickVector grid_intensity_
member gridvectors which contains the data for the intensity-axis-ticks
Definition: Spectrum3DOpenGLCanvas.h:216
float width() const
return width
Definition: Spectrum3DOpenGLCanvas.h:138
int zrot_tmp_
member z-variable that stores the original angle during zoom mode
Definition: Spectrum3DOpenGLCanvas.h:185
double y_2_
y2 coordinate of the zoomselection
Definition: Spectrum3DOpenGLCanvas.h:224
float height_
the height of the viewport
Definition: Spectrum3DOpenGLCanvas.h:206
int yrot_tmp_
member y-variable that stores the original angle during zoom mode
Definition: Spectrum3DOpenGLCanvas.h:183
int xrot_
member x-variables for the rotation
Definition: Spectrum3DOpenGLCanvas.h:174
DRange< 3 > overall_values_
object which contains the min and max values of mz, rt and intensity
Definition: Spectrum3DOpenGLCanvas.h:208
GLuint stickdata_
Definition: Spectrum3DOpenGLCanvas.h:163
QPoint mouse_move_end_
member variables for the zoom-mode
Definition: Spectrum3DOpenGLCanvas.h:190
Canvas for 3D-visualization of peak map data.
Definition: Spectrum3DCanvas.h:67
GLuint ground_
Definition: Spectrum3DOpenGLCanvas.h:167
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:128
int xRotation() const
return xRot_
Definition: Spectrum3DOpenGLCanvas.h:142
Spectrum3DCanvas & canvas_3d_
reference to Spectrum3DCanvas
Definition: Spectrum3DOpenGLCanvas.h:171
float height() const
Definition: Spectrum3DOpenGLCanvas.h:139
double trans_x_
x- translation
Definition: Spectrum3DOpenGLCanvas.h:226
GLuint gridlines_
Definition: Spectrum3DOpenGLCanvas.h:166
int xrot_tmp_
member x-variable that stores the original angle during zoom mode
Definition: Spectrum3DOpenGLCanvas.h:181
int zrot_
member z-variables for the rotation
Definition: Spectrum3DOpenGLCanvas.h:178