OpenMS
2.4.0
|
OpenGL Canvas for 3D-visualization of map data. More...
#include <OpenMS/VISUAL/Spectrum3DOpenGLCanvas.h>
Public Types | |
typedef std::vector< std::vector< double > > | AxisTickVector |
Container for axis ticks. More... | |
Public Member Functions | |
Spectrum3DOpenGLCanvas (QWidget *parent, Spectrum3DCanvas &canvas_3d) | |
Constructor. More... | |
virtual | ~Spectrum3DOpenGLCanvas () |
Destructor. More... | |
void | initializeGL () override |
virtual function provided from QGLWidget More... | |
void | resizeGL (int w, int h) override |
virtual function provided from QGLWidget More... | |
void | paintGL () override |
virtual function provided from QGLWidget More... | |
void | setXLabel (const QString &l) |
void | setYLabel (const QString &l) |
void | setZLabel (const QString &l) |
void | updateIntensityScale () |
updates the min and max values of the intensity More... | |
Reimplemented QT events | |
void | mouseMoveEvent (QMouseEvent *e) override |
void | mouseReleaseEvent (QMouseEvent *e) override |
void | mousePressEvent (QMouseEvent *e) override |
void | focusOutEvent (QFocusEvent *e) override |
Protected Slots | |
void | actionModeChange () |
Slot that reacts on action mode changes. More... | |
Protected Member Functions | |
GLint | project_ (GLdouble objx, GLdouble objy, GLdouble objz, GLdouble *winx, GLdouble *winy) |
helper function to project point to device space More... | |
void | transformPoint_ (GLdouble out[4], const GLdouble m[16], const GLdouble in[4]) |
helper function to transform point using matrix m (homogeneous coordinates) More... | |
void | renderText_ (double x, double y, double z, const QString &text) |
helper function to replicate old behaviour of QGLWidget More... | |
void | qglColor_ (QColor color) |
helper function to replicate old behaviour of QGLWidget More... | |
void | qglClearColor_ (QColor clearColor) |
helper function to replicate old behaviour of QGLWidget More... | |
GLuint | makeDataAsStick_ () |
Builds up a display list for the 3D view. More... | |
GLuint | makeAxes_ () |
Builds up a display list for the axes. More... | |
GLuint | makeAxesTicks_ () |
Builds up a display list for axis ticks. More... | |
GLuint | makeDataAsTopView_ () |
Builds up a display list for the birds-eye view. More... | |
GLuint | makeGround_ () |
Builds up a display list for the background. More... | |
GLuint | makeGridLines_ () |
Builds up a display list for grid lines. More... | |
void | drawAxesLegend_ () |
Draws the axis texts. More... | |
void | computeSelection_ () |
computes the dataset supposed to be drawn when a section has been selected in zoom mode More... | |
void | dataToZoomArray_ (double x_1, double y_1, double x_2, double y_2) |
calculates the zoom area , which is shown More... | |
double | scaledRT_ (double rt) |
returns the BB-rt-coordinate : value –> BB-coordinates More... | |
double | scaledInversRT_ (double mz) |
returns the rt-value : BB-coordinates –> value More... | |
double | scaledMZ_ (double mz) |
returns the BB-mz-coordinate : values –> BB-coordinates More... | |
double | scaledInversMZ_ (double mz) |
returns the mz-value : BB-coordinates –> value More... | |
double | scaledIntensity_ (float intensity, Size layer_index) |
returns the BB-intensity -coordinate : values –> BB-coordinates More... | |
void | recalculateDotGradient_ (Size layer) |
recalculates the dot gradient interpolation values. More... | |
void | calculateGridLines_ () |
calculate the ticks for the gridlines More... | |
void | normalizeAngle (int *angle) |
normalize the angel More... | |
void | resetTranslation () |
void | timeMessure () |
void | storeRotationAndZoom () |
stores the original rotation and zoom factor (e.g. before changing into zoom mode) More... | |
void | restoreRotationAndZoom () |
restores the original rotation and zoom factor (e.g. before changing into zoom mode) More... | |
Protected Attributes | |
Spectrum3DCanvas & | canvas_3d_ |
reference to Spectrum3DCanvas More... | |
int | xrot_ |
member x-variables for the rotation More... | |
int | yrot_ |
member y-variables for the rotation More... | |
int | zrot_ |
member z-variables for the rotation More... | |
int | xrot_tmp_ |
member x-variable that stores the original angle during zoom mode More... | |
int | yrot_tmp_ |
member y-variable that stores the original angle during zoom mode More... | |
int | zrot_tmp_ |
member z-variable that stores the original angle during zoom mode More... | |
QPainter * | painter_ = nullptr |
QPoint | mouse_move_end_ |
member variables for the zoom-mode More... | |
QPoint | mouse_move_begin_ |
double | corner_ |
member variable for the x and y axis of the BB More... | |
double | zoom_ |
member variable for the zoom mode More... | |
double | zoom_tmp_ |
member variable that stores original zoom factor during zoom mode More... | |
double | near_ |
member variable for the z- axis of the BB More... | |
double | far_ |
member variable for the z- axis of the BB More... | |
float | width_ |
the width of the viewport More... | |
float | height_ |
the height of the viewport More... | |
DRange< 3 > | overall_values_ |
object which contains the min and max values of mz, rt and intensity More... | |
DRange< 1 > | int_scale_ |
object which contains the values of the current min and max intensity More... | |
AxisTickVector | grid_mz_ |
member gridvectors which contains the data for the mz-axis-ticks More... | |
AxisTickVector | grid_rt_ |
member gridvectors which contains the data for the rt-axis-ticks More... | |
AxisTickVector | grid_intensity_ |
member gridvectors which contains the data for the intensity-axis-ticks More... | |
double | x_1_ |
x1 coordinate of the zoomselection More... | |
double | x_2_ |
x2 coordinate of the zoomselection More... | |
double | y_1_ |
y1 coordinate of the zoomselection More... | |
double | y_2_ |
y2 coordinate of the zoomselection More... | |
double | trans_x_ |
x- translation More... | |
double | trans_y_ |
y_translation More... | |
QString | x_label_ |
QString | y_label_ |
QString | z_label_ |
Different OpenGL display lists | |
GLuint | stickdata_ |
GLuint | axes_ |
GLuint | axes_ticks_ |
GLuint | gridlines_ |
GLuint | ground_ |
Friends | |
class | Spectrum3DCanvas |
OpenGL Canvas for 3D-visualization of map data.
typedef std::vector<std::vector<double> > AxisTickVector |
Container for axis ticks.
Spectrum3DOpenGLCanvas | ( | QWidget * | parent, |
Spectrum3DCanvas & | canvas_3d | ||
) |
Constructor.
parent | The parent widget |
canvas_3d | The main 3d canvas |
|
virtual |
Destructor.
Destroys the OpenGLWidget and all associated data.
|
protectedslot |
Slot that reacts on action mode changes.
|
protected |
calculate the ticks for the gridlines
|
protected |
computes the dataset supposed to be drawn when a section has been selected in zoom mode
calculates the zoom area , which is shown
|
protected |
Draws the axis texts.
|
override |
|
override |
virtual function provided from QGLWidget
|
protected |
Builds up a display list for the axes.
|
protected |
Builds up a display list for axis ticks.
|
protected |
Builds up a display list for the 3D view.
|
protected |
Builds up a display list for the birds-eye view.
|
protected |
Builds up a display list for grid lines.
|
protected |
Builds up a display list for the background.
|
override |
|
override |
|
override |
|
protected |
normalize the angel
|
override |
virtual function provided from QGLWidget
|
protected |
helper function to project point to device space
|
protected |
helper function to replicate old behaviour of QGLWidget
|
protected |
helper function to replicate old behaviour of QGLWidget
|
protected |
recalculates the dot gradient interpolation values.
helper function to replicate old behaviour of QGLWidget
|
protected |
|
override |
virtual function provided from QGLWidget
|
protected |
restores the original rotation and zoom factor (e.g. before changing into zoom mode)
returns the BB-intensity -coordinate : values –> BB-coordinates
|
inline |
|
inline |
Referenced by TOPPViewBase::showCurrentPeaksAs3D().
|
inline |
|
protected |
stores the original rotation and zoom factor (e.g. before changing into zoom mode)
|
protected |
|
protected |
helper function to transform point using matrix m (homogeneous coordinates)
void updateIntensityScale | ( | ) |
updates the min and max values of the intensity
|
friend |
|
protected |
|
protected |
|
protected |
reference to Spectrum3DCanvas
|
protected |
member variable for the x and y axis of the BB
|
protected |
member variable for the z- axis of the BB
|
protected |
member gridvectors which contains the data for the intensity-axis-ticks
|
protected |
member gridvectors which contains the data for the mz-axis-ticks
|
protected |
member gridvectors which contains the data for the rt-axis-ticks
|
protected |
|
protected |
|
protected |
the height of the viewport
|
protected |
object which contains the values of the current min and max intensity
|
protected |
|
protected |
member variables for the zoom-mode
|
protected |
member variable for the z- axis of the BB
|
protected |
object which contains the min and max values of mz, rt and intensity
|
protected |
|
protected |
|
protected |
x- translation
|
protected |
y_translation
|
protected |
the width of the viewport
|
protected |
x1 coordinate of the zoomselection
|
protected |
x2 coordinate of the zoomselection
|
protected |
|
protected |
member x-variables for the rotation
|
protected |
member x-variable that stores the original angle during zoom mode
|
protected |
y1 coordinate of the zoomselection
|
protected |
y2 coordinate of the zoomselection
|
protected |
|
protected |
member y-variables for the rotation
|
protected |
member y-variable that stores the original angle during zoom mode
|
protected |
|
protected |
member variable for the zoom mode
|
protected |
member variable that stores original zoom factor during zoom mode
|
protected |
member z-variables for the rotation
|
protected |
member z-variable that stores the original angle during zoom mode