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 () |
virtual function provided from QGLWidget More... | |
void | resizeGL (int w, int h) |
virtual function provided from QGLWidget More... | |
void | paintGL () |
virtual function provided from 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 (since Qt 4.3 these cannot be put into display lists anymore...) More... | |
void | computeSelection () |
computes the dataset supposed to be drawn when a section has been selected in zoom mode More... | |
void | updateIntensityScale () |
updates the min and max values of the intensity 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... | |
float | width () const |
return width More... | |
float | height () const |
int | xRotation () const |
return xRot_ More... | |
int | yRotation () const |
return yRot_ More... | |
int | zRotation () const |
return zRot_ More... | |
void | normalizeAngle (int *angle) |
normalize the angel More... | |
void | setAngels (int xrot, int yrot, int zrot) |
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... | |
Reimplemented QT events | |
void | mouseMoveEvent (QMouseEvent *e) |
void | mouseReleaseEvent (QMouseEvent *e) |
void | mousePressEvent (QMouseEvent *e) |
void | focusOutEvent (QFocusEvent *e) |
Public 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... | |
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... | |
Different OpenGL display lists | |
GLuint | stickdata_ |
GLuint | axes_ |
GLuint | axes_ticks_ |
GLuint | gridlines_ |
GLuint | ground_ |
Protected Slots | |
void | actionModeChange () |
Slot that reacts on action mode changes. More... | |
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.
void calculateGridLines_ | ( | ) |
calculate the ticks for the gridlines
void computeSelection | ( | ) |
computes the dataset supposed to be drawn when a section has been selected in zoom mode
calculates the zoom area , which is shown
void drawAxesLegend | ( | ) |
Draws the axis texts (since Qt 4.3 these cannot be put into display lists anymore...)
void focusOutEvent | ( | QFocusEvent * | e | ) |
|
inline |
void initializeGL | ( | ) |
virtual function provided from QGLWidget
GLuint makeAxes | ( | ) |
Builds up a display list for the axes.
GLuint makeAxesTicks | ( | ) |
Builds up a display list for axis ticks.
GLuint makeDataAsStick | ( | ) |
Builds up a display list for the 3D view.
GLuint makeDataAsTopView | ( | ) |
Builds up a display list for the birds-eye view.
GLuint makeGridLines | ( | ) |
Builds up a display list for grid lines.
GLuint makeGround | ( | ) |
Builds up a display list for the background.
void mouseMoveEvent | ( | QMouseEvent * | e | ) |
void mousePressEvent | ( | QMouseEvent * | e | ) |
void mouseReleaseEvent | ( | QMouseEvent * | e | ) |
void normalizeAngle | ( | int * | angle | ) |
normalize the angel
void paintGL | ( | ) |
virtual function provided from QGLWidget
void recalculateDotGradient_ | ( | Size | layer | ) |
recalculates the dot gradient interpolation values.
void resetTranslation | ( | ) |
void resizeGL | ( | int | w, |
int | h | ||
) |
virtual function provided from QGLWidget
void restoreRotationAndZoom | ( | ) |
restores the original rotation and zoom factor (e.g. before changing into zoom mode)
returns the BB-intensity -coordinate : values –> BB-coordinates
void setAngels | ( | int | xrot, |
int | yrot, | ||
int | zrot | ||
) |
void storeRotationAndZoom | ( | ) |
stores the original rotation and zoom factor (e.g. before changing into zoom mode)
void timeMessure | ( | ) |
void updateIntensityScale | ( | ) |
updates the min and max values of the intensity
|
inline |
return width
|
inline |
return xRot_
|
inline |
return yRot_
|
inline |
return zRot_
|
friend |
GLuint axes_ |
GLuint axes_ticks_ |
Spectrum3DCanvas& canvas_3d_ |
reference to Spectrum3DCanvas
double corner_ |
member variable for the x and y axis of the BB
double far_ |
member variable for the z- axis of the BB
AxisTickVector grid_intensity_ |
member gridvectors which contains the data for the intensity-axis-ticks
AxisTickVector grid_mz_ |
member gridvectors which contains the data for the mz-axis-ticks
AxisTickVector grid_rt_ |
member gridvectors which contains the data for the rt-axis-ticks
GLuint gridlines_ |
GLuint ground_ |
float height_ |
the height of the viewport
DRange<1> int_scale_ |
object which contains the values of the current min and max intensity
QPoint mouse_move_begin_ |
QPoint mouse_move_end_ |
member variables for the zoom-mode
double near_ |
member variable for the z- axis of the BB
DRange<3> overall_values_ |
object which contains the min and max values of mz, rt and intensity
GLuint stickdata_ |
double trans_x_ |
x- translation
double trans_y_ |
y_translation
float width_ |
the width of the viewport
double x_1_ |
x1 coordinate of the zoomselection
double x_2_ |
x2 coordinate of the zoomselection
int xrot_ |
member x-variables for the rotation
int xrot_tmp_ |
member x-variable that stores the original angle during zoom mode
double y_1_ |
y1 coordinate of the zoomselection
double y_2_ |
y2 coordinate of the zoomselection
int yrot_ |
member y-variables for the rotation
int yrot_tmp_ |
member y-variable that stores the original angle during zoom mode
double zoom_ |
member variable for the zoom mode
double zoom_tmp_ |
member variable that stores original zoom factor during zoom mode
int zrot_ |
member z-variables for the rotation
int zrot_tmp_ |
member z-variable that stores the original angle during zoom mode
OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:13 using doxygen 1.8.13 |