![]()  | 
  
    OpenMS
    
     
   | 
  
OpenGL Canvas for 3D-visualization of map data. More...
#include <OpenMS/VISUAL/Plot3DOpenGLCanvas.h>
Public Types | |
| typedef std::vector< std::vector< double > > | AxisTickVector | 
| Container for axis ticks.  More... | |
Public Member Functions | |
| Plot3DOpenGLCanvas (QWidget *parent, Plot3DCanvas &canvas_3d) | |
| Constructor.  More... | |
| ~Plot3DOpenGLCanvas () override | |
| 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... | |
Friends | |
| class | Plot3DCanvas | 
Different OpenGL display lists | |
| GLuint | stickdata_ | 
| GLuint | axes_ | 
| GLuint | axes_ticks_ | 
| GLuint | gridlines_ | 
| GLuint | ground_ | 
| Plot3DCanvas & | canvas_3d_ | 
| reference to Plot3DCanvas  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_ | 
| void | actionModeChange () | 
| Slot that reacts on action mode changes.  More... | |
Reimplemented QT events | |
| void | mouseMoveEvent (QMouseEvent *e) override | 
| void | mouseReleaseEvent (QMouseEvent *e) override | 
| void | mousePressEvent (QMouseEvent *e) override | 
| void | focusOutEvent (QFocusEvent *e) override | 
| 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... | |
| 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_ (const QColor &color) | 
| helper function to replicate old behaviour of QGLWidget  More... | |
| void | qglClearColor_ (const 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_ (LayerDataBase &layer) | 
| recalculates the dot gradient interpolation values.  More... | |
| void | calculateGridLines_ () | 
| calculate the ticks for the gridlines  More... | |
| void | normalizeAngle (int *angle) | 
| normalize the angle by "angle % 360*16"  More... | |
| void | resetTranslation () | 
| 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... | |
OpenGL Canvas for 3D-visualization of map data.
| typedef std::vector<std::vector<double> > AxisTickVector | 
Container for axis ticks.
| Plot3DOpenGLCanvas | ( | QWidget * | parent, | 
| Plot3DCanvas & | canvas_3d | ||
| ) | 
Constructor.
| parent | The parent widget | 
| canvas_3d | The main 3d canvas | 
      
  | 
  override | 
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
      
  | 
  protected | 
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 angle by "angle % 360*16"
      
  | 
  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.
      
  | 
  protected | 
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)
      
  | 
  protected | 
returns the BB-intensity -coordinate : values --> BB-coordinates
      
  | 
  protected | 
returns the mz-value : BB-coordinates --> value
      
  | 
  protected | 
returns the rt-value : BB-coordinates --> value
      
  | 
  protected | 
returns the BB-mz-coordinate : values --> BB-coordinates
      
  | 
  protected | 
returns the BB-rt-coordinate : value --> 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 | 
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 Plot3DCanvas
      
  | 
  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