Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Types | Public Member Functions | Public Attributes | Protected Slots | Friends | List of all members
Spectrum3DOpenGLCanvas Class Reference

OpenGL Canvas for 3D-visualization of map data. More...

#include <OpenMS/VISUAL/Spectrum3DOpenGLCanvas.h>

Inheritance diagram for Spectrum3DOpenGLCanvas:
QGLWidget

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

Spectrum3DCanvascanvas_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
 

Detailed Description

OpenGL Canvas for 3D-visualization of map data.

Note
Do not use this class directly. Use Spectrum3DCanvas instead!

Member Typedef Documentation

◆ AxisTickVector

typedef std::vector<std::vector<double> > AxisTickVector

Container for axis ticks.

Constructor & Destructor Documentation

◆ Spectrum3DOpenGLCanvas()

Spectrum3DOpenGLCanvas ( QWidget parent,
Spectrum3DCanvas canvas_3d 
)

Constructor.

Parameters
parentThe parent widget
canvas_3dThe main 3d canvas

◆ ~Spectrum3DOpenGLCanvas()

virtual ~Spectrum3DOpenGLCanvas ( )
virtual

Destructor.

Destroys the OpenGLWidget and all associated data.

Member Function Documentation

◆ actionModeChange

void actionModeChange ( )
protectedslot

Slot that reacts on action mode changes.

◆ calculateGridLines_()

void calculateGridLines_ ( )

calculate the ticks for the gridlines

◆ computeSelection()

void computeSelection ( )

computes the dataset supposed to be drawn when a section has been selected in zoom mode

◆ dataToZoomArray()

void dataToZoomArray ( double  x_1,
double  y_1,
double  x_2,
double  y_2 
)

calculates the zoom area , which is shown

◆ drawAxesLegend()

void drawAxesLegend ( )

Draws the axis texts (since Qt 4.3 these cannot be put into display lists anymore...)

◆ focusOutEvent()

void focusOutEvent ( QFocusEvent *  e)

◆ height()

float height ( ) const
inline

◆ initializeGL()

void initializeGL ( )

virtual function provided from QGLWidget

◆ makeAxes()

GLuint makeAxes ( )

Builds up a display list for the axes.

◆ makeAxesTicks()

GLuint makeAxesTicks ( )

Builds up a display list for axis ticks.

◆ makeDataAsStick()

GLuint makeDataAsStick ( )

Builds up a display list for the 3D view.

◆ makeDataAsTopView()

GLuint makeDataAsTopView ( )

Builds up a display list for the birds-eye view.

◆ makeGridLines()

GLuint makeGridLines ( )

Builds up a display list for grid lines.

◆ makeGround()

GLuint makeGround ( )

Builds up a display list for the background.

◆ mouseMoveEvent()

void mouseMoveEvent ( QMouseEvent *  e)

◆ mousePressEvent()

void mousePressEvent ( QMouseEvent *  e)

◆ mouseReleaseEvent()

void mouseReleaseEvent ( QMouseEvent *  e)

◆ normalizeAngle()

void normalizeAngle ( int *  angle)

normalize the angel

◆ paintGL()

void paintGL ( )

virtual function provided from QGLWidget

◆ recalculateDotGradient_()

void recalculateDotGradient_ ( Size  layer)

recalculates the dot gradient interpolation values.

◆ resetTranslation()

void resetTranslation ( )

◆ resizeGL()

void resizeGL ( int  w,
int  h 
)

virtual function provided from QGLWidget

◆ restoreRotationAndZoom()

void restoreRotationAndZoom ( )

restores the original rotation and zoom factor (e.g. before changing into zoom mode)

◆ scaledIntensity()

double scaledIntensity ( float  intensity,
Size  layer_index 
)

returns the BB-intensity -coordinate : values –> BB-coordinates

◆ scaledInversMZ()

double scaledInversMZ ( double  mz)

returns the mz-value : BB-coordinates –> value

◆ scaledInversRT()

double scaledInversRT ( double  mz)

returns the rt-value : BB-coordinates –> value

◆ scaledMZ()

double scaledMZ ( double  mz)

returns the BB-mz-coordinate : values –> BB-coordinates

◆ scaledRT()

double scaledRT ( double  rt)

returns the BB-rt-coordinate : value –> BB-coordinates

◆ setAngels()

void setAngels ( int  xrot,
int  yrot,
int  zrot 
)

◆ storeRotationAndZoom()

void storeRotationAndZoom ( )

stores the original rotation and zoom factor (e.g. before changing into zoom mode)

◆ timeMessure()

void timeMessure ( )

◆ updateIntensityScale()

void updateIntensityScale ( )

updates the min and max values of the intensity

◆ width()

float width ( ) const
inline

return width

◆ xRotation()

int xRotation ( ) const
inline

return xRot_

◆ yRotation()

int yRotation ( ) const
inline

return yRot_

◆ zRotation()

int zRotation ( ) const
inline

return zRot_

Friends And Related Function Documentation

◆ Spectrum3DCanvas

friend class Spectrum3DCanvas
friend

Member Data Documentation

◆ axes_

GLuint axes_

◆ axes_ticks_

GLuint axes_ticks_

◆ canvas_3d_

Spectrum3DCanvas& canvas_3d_

reference to Spectrum3DCanvas

◆ corner_

double corner_

member variable for the x and y axis of the BB

◆ far_

double far_

member variable for the z- axis of the BB

◆ grid_intensity_

AxisTickVector grid_intensity_

member gridvectors which contains the data for the intensity-axis-ticks

◆ grid_mz_

AxisTickVector grid_mz_

member gridvectors which contains the data for the mz-axis-ticks

◆ grid_rt_

AxisTickVector grid_rt_

member gridvectors which contains the data for the rt-axis-ticks

◆ gridlines_

GLuint gridlines_

◆ ground_

GLuint ground_

◆ height_

float height_

the height of the viewport

◆ int_scale_

DRange<1> int_scale_

object which contains the values of the current min and max intensity

◆ mouse_move_begin_

QPoint mouse_move_begin_

◆ mouse_move_end_

QPoint mouse_move_end_

member variables for the zoom-mode

◆ near_

double near_

member variable for the z- axis of the BB

◆ overall_values_

DRange<3> overall_values_

object which contains the min and max values of mz, rt and intensity

◆ stickdata_

GLuint stickdata_

◆ trans_x_

double trans_x_

x- translation

◆ trans_y_

double trans_y_

y_translation

◆ width_

float width_

the width of the viewport

◆ x_1_

double x_1_

x1 coordinate of the zoomselection

◆ x_2_

double x_2_

x2 coordinate of the zoomselection

◆ xrot_

int xrot_

member x-variables for the rotation

◆ xrot_tmp_

int xrot_tmp_

member x-variable that stores the original angle during zoom mode

◆ y_1_

double y_1_

y1 coordinate of the zoomselection

◆ y_2_

double y_2_

y2 coordinate of the zoomselection

◆ yrot_

int yrot_

member y-variables for the rotation

◆ yrot_tmp_

int yrot_tmp_

member y-variable that stores the original angle during zoom mode

◆ zoom_

double zoom_

member variable for the zoom mode

◆ zoom_tmp_

double zoom_tmp_

member variable that stores original zoom factor during zoom mode

◆ zrot_

int zrot_

member z-variables for the rotation

◆ zrot_tmp_

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